/****************************************************************************/ /* Program: Graph It II (The C Program) */ /* SubModule: graph.h 1-20-87 */ /* CopyRight By Flynn D. Fishman January 1987 */ /* Feel Free to copy and alter this source */ /****************************************************************************/ /* This is the include file for graph it. It includes all the needed constants */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* this is close enough */ #define INFINITY 932768; /* number of elements to allocate for formula */ #define PARAMETERS 90 #define FSIZE 50 #define CONSTANTS 50 /* types of characters */ #define ALPHA 1 #define NUMERIC 2 #define OTHER 3 #define END 4 /* i.e. \r, \n or a semicolon */ #define BITMASK 0xff #define HIGHBIT 0x80 #define LOWMASK 0x7f /* types of formula errors */ #define UNKNOWN 2 #define INVALID 3 #define WINDOW 4 #define ever (;;) struct Formula_Master { char *equation; double *constants; int position; int error; }; struct Graph_Parameters { struct Formula_Master *x1; struct Formula_Master *y1; struct Formula_Master *z1; int yon; int xon; int zon; int end; int hidden; double xstart; double ystart; double zstart; double tstart; double xend; double yend; double zend; double tend; double xlabels; double ylabels; double zlabels; double detail; int error; }; double x, y, t, z; double Value(), Solve(), GetNum(); char *AllocateFunction(); #define INTUITION_REV 1l #define GRAPHICS_REV 1l #define XSIZE 640l #define YSIZE 200l #define min(x,y) (x