X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/b1c8e14afd5a078ca925fe471733a693ca4a8076..3c48fe193d2fb7c927c2c9d1dbf76707e657a9fd:/larn/header.h?ds=sidebyside diff --git a/larn/header.h b/larn/header.h index 66823741..f2a4cf70 100644 --- a/larn/header.h +++ b/larn/header.h @@ -1,4 +1,4 @@ -/* $NetBSD: header.h,v 1.13 2001/02/05 00:57:33 christos Exp $ */ +/* $NetBSD: header.h,v 1.15 2005/02/03 02:23:02 perry Exp $ */ /* header.h Larn is copyrighted 1986 by Noah Morgan. */ @@ -321,7 +321,9 @@ struct sphere { #define DEMONLORD 57 #define DEMONPRINCE 64 +#ifndef NULL #define NULL 0 +#endif #define BUFBIG 4096 /* size of the output buffer */ #define MAXIBUF 4096 /* size of the input buffer */ #define LOGNAMESIZE 40 /* max size of the players name */ @@ -427,7 +429,7 @@ extern int rmst, maxitm, lasttime; #define lprc(ch) ((lpnt>=lpend)?(*lpnt++ =(ch), lflush()):(*lpnt++ =(ch))) /* macro to seed the random number generator */ -#define srand(x) (randx=x) +#define seedrand(x) (randx=x) #ifdef MACRORND /* macros to generate random numbers 1<=rnd(N)<=N 0<=rund(N)<=N-1 */ #define rnd(x) ((((randx=randx*1103515245+12345)>>7)%(x))+1)