139983Sbostic #ifndef NONSTD_H 239983Sbostic 339983Sbostic #define NONSTD_H 439983Sbostic 539983Sbostic #ifndef lint 639983Sbostic #ifndef NOID 739983Sbostic static char nonstdhid[] = "@(#)nonstd.h 4.2"; 839983Sbostic #endif /* !defined NOID */ 939983Sbostic #endif /* !defined lint */ 1039983Sbostic 1139983Sbostic #ifdef __STDC__ 1239983Sbostic 1339983Sbostic #define P(s) s 1439983Sbostic 1539983Sbostic #ifdef __TURBOC__ 1639983Sbostic /* 1739983Sbostic ** Cover for stupid Turbo C 1839983Sbostic */ 1939983Sbostic #define genericptr_t void * 2039983Sbostic #else /* !defined __TURBOC__ */ 2139983Sbostic typedef void * genericptr_t; 2239983Sbostic #endif /* !defined __TURBOC__ */ 2339983Sbostic 2439983Sbostic #define alloc_size_t size_t 2539983Sbostic #define qsort_size_t size_t 2639983Sbostic #define fread_size_t size_t 2739983Sbostic #define fwrite_size_t size_t 2839983Sbostic 2939983Sbostic #else /* !defined __STDC__ */ 3039983Sbostic 31*40177Sdonn #define P(s) () 3239983Sbostic 3339983Sbostic #ifndef genericptr_t 3439983Sbostic typedef char * genericptr_t; 3539983Sbostic #endif /* !defined genericptr_t */ 3639983Sbostic 3739983Sbostic #ifndef alloc_size_t 3839983Sbostic typedef unsigned alloc_size_t; 3939983Sbostic #endif /* !defined alloc_size_t */ 4039983Sbostic 4139983Sbostic #ifndef qsort_size_t 4239983Sbostic #ifdef unix 4339983Sbostic #include "sys/param.h" 4439983Sbostic #endif /* defined unix */ 4539983Sbostic #ifdef BSD 4639983Sbostic typedef int qsort_size_t; 4739983Sbostic #else /* !defined BSD */ 4839983Sbostic typedef unsigned qsort_size_t; 4939983Sbostic #endif /* !defined BSD */ 5039983Sbostic #endif /* !defined qsort_size_t */ 5139983Sbostic 5239983Sbostic #ifndef fread_size_t 5339983Sbostic typedef int fread_size_t; 5439983Sbostic #endif /* !defined fread_size_t */ 5539983Sbostic 5639983Sbostic #ifndef fwrite_size_t 5739983Sbostic typedef int fwrite_size_t; 5839983Sbostic #endif /* !defined fwrite_size_t */ 5939983Sbostic 6039983Sbostic #define const 6139983Sbostic #define volatile 6239983Sbostic 6339983Sbostic #endif /* !defined __STDC__ */ 6439983Sbostic 6539983Sbostic #endif /* !defined NONSTD_H */ 6639983Sbostic 6739983Sbostic /* 6839983Sbostic ** UNIX is a registered trademark of AT&T. 6939983Sbostic */ 70