/*
 *  xgif.h  -  header file for xgif, but you probably already knew as much
 */

/*
 *  This file was included with the motifgif example which is provided by HP
 *  along with the HP-UX 8.05 Motif development fileset (if I remember it
 *  correctly) and was modified for use with Xm++ by B. Strassl (July 1992)
 */

#define REVDATE   "Rev: 2/13/89"
#define MAXEXPAND 16

#ifndef XmObject_included

/* include files */
#include <stdio.h>
#include <math.h>
#include <ctype.h>

#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>

#define XT

#else

extern int LoadGIF(char*);

#define XT extern

#endif

typedef unsigned char byte;

/* X stuff */

XT Display *theDisp;	/* must be set before calling gifload !!! */

XT int 				theScreen; 
XT int				dispcells;
XT Colormap			theCmap;
XT Window			rootW;
XT GC				theGC;
XT unsigned long	fcol;
XT unsigned long	bcol;
XT Visual			*theVisual;
XT XImage			*theImage, *expImage;


/* global vars */

XT int				expand,numcols;
XT int 				strip;
XT int				nostrip;
XT int				loadOk;
XT unsigned long	cols[256];
XT XColor			defs[256];
XT char				*cmd;

