*** INTRO~ Wed Nov 16 18:46:53 1994 --- INTRO Thu Nov 17 17:11:48 1994 *************** *** 185,191 **** The main SIRDS archive is katz (address above), this holds lots of pictures, programs, the alt.3d SIRDS FAQ and a paper on SIRDS. ! Also, with popularity of the WWW, there now many SIRDS web pages. The pages maintained by the author are at http://h2.ph.man.ac.uk/gareth/sirds.html which holds a copy of the FAQ, a gallery of SIRDS and SIS produced using --- 185,191 ---- The main SIRDS archive is katz (address above), this holds lots of pictures, programs, the alt.3d SIRDS FAQ and a paper on SIRDS. ! Also, with popularity of the WWW, there are now many SIRDS web pages. The pages maintained by the author are at http://h2.ph.man.ac.uk/gareth/sirds.html which holds a copy of the FAQ, a gallery of SIRDS and SIS produced using *** misc.h~ Wed Nov 16 18:20:49 1994 --- misc.h Thu Nov 17 17:17:49 1994 *************** *** 38,43 **** --- 38,44 ---- * */ + /* some cures for non-ANSI C header files and functions */ #ifndef EXIT_FAILURE #define EXIT_FAILURE 1 #endif *************** *** 44,49 **** --- 45,60 ---- #ifndef EXIT_SUCCESS #define EXIT_SUCCESS 0 #endif + + #ifndef RAND_MAX + #include + #define RAND_MAX INT_MAX + #endif + + #if defined(__sun__) + #define srand(s) srandom(s) + #define rand() random() + #endif /* __sun__ */ #define NLEN 60 #define LLEN 120 *** pgs.h~ Wed Nov 16 18:20:50 1994 --- pgs.h Thu Nov 17 17:18:01 1994 *************** *** 45,67 **** #define OX (width/2) #define OY (height/2) ! #ifndef RAND_MAX ! # include ! # define RAND_MAX INT_MAX ! #endif - #if defined(__sun__) - # define srand(s) srandom(s) - # define rand() random() - #endif /* __sun__ */ - #ifdef SILLYRAND #define MYRAND (rand()/7) /* dodgy random number generator */ #else #define MYRAND (rand()) #endif - - #include "misc.h" extern int width, height; extern float pmm; --- 45,57 ---- #define OX (width/2) #define OY (height/2) ! #include "misc.h" #ifdef SILLYRAND #define MYRAND (rand()/7) /* dodgy random number generator */ #else #define MYRAND (rand()) #endif extern int width, height; extern float pmm;