1*39983Sbostic #ifndef NONSTD_H 2*39983Sbostic 3*39983Sbostic #define NONSTD_H 4*39983Sbostic 5*39983Sbostic #ifndef lint 6*39983Sbostic #ifndef NOID 7*39983Sbostic static char nonstdhid[] = "@(#)nonstd.h 4.2"; 8*39983Sbostic #endif /* !defined NOID */ 9*39983Sbostic #endif /* !defined lint */ 10*39983Sbostic 11*39983Sbostic #ifdef __STDC__ 12*39983Sbostic 13*39983Sbostic #define P(s) s 14*39983Sbostic 15*39983Sbostic #ifdef __TURBOC__ 16*39983Sbostic /* 17*39983Sbostic ** Cover for stupid Turbo C 18*39983Sbostic */ 19*39983Sbostic #define genericptr_t void * 20*39983Sbostic #else /* !defined __TURBOC__ */ 21*39983Sbostic typedef void * genericptr_t; 22*39983Sbostic #endif /* !defined __TURBOC__ */ 23*39983Sbostic 24*39983Sbostic #define alloc_size_t size_t 25*39983Sbostic #define qsort_size_t size_t 26*39983Sbostic #define fread_size_t size_t 27*39983Sbostic #define fwrite_size_t size_t 28*39983Sbostic 29*39983Sbostic #else /* !defined __STDC__ */ 30*39983Sbostic 31*39983Sbostic #define ASTERISK * 32*39983Sbostic #define P(s) (/ASTERISK s ASTERISK/) 33*39983Sbostic 34*39983Sbostic #ifndef genericptr_t 35*39983Sbostic typedef char * genericptr_t; 36*39983Sbostic #endif /* !defined genericptr_t */ 37*39983Sbostic 38*39983Sbostic #ifndef alloc_size_t 39*39983Sbostic typedef unsigned alloc_size_t; 40*39983Sbostic #endif /* !defined alloc_size_t */ 41*39983Sbostic 42*39983Sbostic #ifndef qsort_size_t 43*39983Sbostic #ifdef unix 44*39983Sbostic #include "sys/param.h" 45*39983Sbostic #endif /* defined unix */ 46*39983Sbostic #ifdef BSD 47*39983Sbostic typedef int qsort_size_t; 48*39983Sbostic #else /* !defined BSD */ 49*39983Sbostic typedef unsigned qsort_size_t; 50*39983Sbostic #endif /* !defined BSD */ 51*39983Sbostic #endif /* !defined qsort_size_t */ 52*39983Sbostic 53*39983Sbostic #ifndef fread_size_t 54*39983Sbostic typedef int fread_size_t; 55*39983Sbostic #endif /* !defined fread_size_t */ 56*39983Sbostic 57*39983Sbostic #ifndef fwrite_size_t 58*39983Sbostic typedef int fwrite_size_t; 59*39983Sbostic #endif /* !defined fwrite_size_t */ 60*39983Sbostic 61*39983Sbostic #define const 62*39983Sbostic #define volatile 63*39983Sbostic 64*39983Sbostic #endif /* !defined __STDC__ */ 65*39983Sbostic 66*39983Sbostic #endif /* !defined NONSTD_H */ 67*39983Sbostic 68*39983Sbostic /* 69*39983Sbostic ** UNIX is a registered trademark of AT&T. 70*39983Sbostic */ 71