--- ray/src/common/standard.h 2003/03/04 05:49:21 2.18 +++ ray/src/common/standard.h 2003/03/27 04:16:33 2.20 @@ -1,4 +1,4 @@ -/* RCSid $Id: standard.h,v 2.18 2003/03/04 05:49:21 greg Exp $ */ +/* RCSid $Id: standard.h,v 2.20 2003/03/27 04:16:33 greg Exp $ */ /* * Miscellaneous definitions required by many routines. */ @@ -87,11 +87,11 @@ extern double tcos(); /* table-based cosine approxim #define ttan(x) (tsin(x)/tcos(x)) #endif /* custom version of assert(3) */ -#define CHECK(be,et,em) ((be) ? error(et,em) : 0) +#define CHECK(be,et,em) if (be) error(et,em) else #ifdef DEBUG #define DCHECK CHECK #else -#define DCHECK(be,et,em) 0 +#define DCHECK(be,et,em) (void)0 #endif /* memory operations */ #ifdef NOSTRUCTASS @@ -223,7 +223,7 @@ extern int readbuf(int fd, char *bpos, int siz); extern int writebuf(int fd, char *bpos, int siz); /* defined in rexpr.c */ extern int ecompile(char *sp, int iflg, int wflag); -extern char *expsave(); +extern char *expsave(void); extern void expset(char *ep); extern char *eindex(char *sp); /* defined in savestr.c */