--- ray/src/common/standard.h 2003/06/08 12:03:09 2.26 +++ ray/src/common/standard.h 2003/06/20 00:25:49 2.27 @@ -1,4 +1,4 @@ -/* RCSid $Id: standard.h,v 2.26 2003/06/08 12:03:09 schorsch Exp $ */ +/* RCSid $Id: standard.h,v 2.27 2003/06/20 00:25:49 greg Exp $ */ /* * Miscellaneous definitions required by many routines. */ @@ -18,13 +18,10 @@ extern "C" { #include #include +#include "tifftypes.h" + #include "mat4.h" - -#ifndef NULL -#define NULL 0 -#endif - /* regular transformation */ typedef struct { MAT4 xfm; /* transform matrix */ @@ -52,13 +49,6 @@ typedef struct { #define F_OK 0 /* exists */ #endif -#ifndef int2 -#define int2 short /* two-byte integer */ -#endif -#ifndef int4 -#define int4 int /* four-byte integer */ -#endif - /* error codes */ #define WARNING 0 /* non-fatal error */ #define USER 1 /* fatal user-caused error */ @@ -200,10 +190,10 @@ extern int fullxf(FULLXF *fx, int ac, char *av[]); /* defined in zeroes.c */ extern int quadtratic(double *r, double a, double b, double c); /* defined in dircode.c */ -extern int4 encodedir(FVECT dv); -extern void decodedir(FVECT dv, int4 dc); -extern double dir2diff(int4 dc1, int4 dc2); -extern double fdir2diff(int4 dc1, FVECT v2); +extern int32 encodedir(FVECT dv); +extern void decodedir(FVECT dv, int32 dc); +extern double dir2diff(int32 dc1, int32 dc2); +extern double fdir2diff(int32 dc1, FVECT v2); /* defined in lamp.c */ extern float * matchlamp(char *s); extern int loadlamps(char *file);