--- OLD/pbmplus.h Thu Jan 1 00:00:00 1970 +++ NEW/pbmplus.h Thu Jan 1 00:00:00 1970 @@ -29,6 +29,7 @@ ** System V site, set the SYSV option; if you're IBM-compatible, set MSDOS; ** and if you run on an Amiga, set AMIGA. If your compiler is ANSI C, you're ** probably better off setting SYSV - all it affects is string handling. +** THIS IS A LIE - if nothing else, SYSV does #define random rand. */ #define BSD /* #define SYSV */ @@ -42,7 +43,8 @@ ** hex and decimal forms to specify colors (see ppm/pgmtoppm.1 for details). */ #ifndef RGB_DB -#define RGB_DB "/usr/lib/X11/rgb" +#define RGB_DB "/local/.lib/X11-R6.1p1/X11/rgb" +/*#define RGB_DB "/usr/lib/X11/rgb"*/ /*#define RGB_DB "/usr/openwin/lib/rgb.txt"*/ #ifdef VMS #define RGB_DB "PBMplus_Dir:RGB.TXT" @@ -64,7 +66,7 @@ ** then define this symbol. Unless your computer is very slow or you are short ** of memory, there is no reason why you should not set this symbol. */ -/* #define PGM_BIGGRAYS */ +#define PGM_BIGGRAYS /* CONFIGURE: Normally, PPM handles a pixel as a struct of three grays. ** If grays are stored in bytes, that's 24 bits per color pixel; if @@ -84,7 +86,7 @@ /* #define PPM_PACKCOLORS */ /* CONFIGURE: uncomment this to enable debugging checks. */ -/* #define DEBUG */ +#define DEBUG #if ( defined(SYSV) || defined(AMIGA) ) @@ -117,12 +119,10 @@ #include #else #ifndef VMS +#include #include +#include #endif -extern int atoi(); -extern void exit(); -extern long time(); -extern int write(); #endif /* CONFIGURE: On most BSD systems, malloc() gets declared in stdlib.h, on @@ -173,7 +173,7 @@ /* CONFIGURE: Set this option if your compiler uses strerror(errno) ** instead of sys_errlist[errno] for error messages. */ -/* #define A_STRERROR */ +#define A_STRERROR /* CONFIGURE: On small systems without VM it is possible that there is ** enough memory for a large array, but it is fragmented. So the usual