-/* $NetBSD: header.h,v 1.11 1997/10/18 20:03:22 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. */
#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 */
extern u_char alpha[], beenhere[], boldon, cheat, ckpflag;
extern u_char *class[], course[];
extern char diagfile[], helpfile[], ckpfile[], larnlevels[],
- playerids[], optsfile[], psname[], savefilename[],
+ playerids[], optsfile[1024], psname[], savefilename[],
scorefile[];
extern u_char *inbuffer, is_alpha[], is_digit[];
extern u_char item[MAXX][MAXY], iven[], know[MAXX][MAXY];
extern int dayplay, enable_scroll, srcount, yrepcount, userid, wisid,
lfd, fd;
extern uid_t uid, euid;
-extern long initialtime, outstanding_taxes, skill[], gltime, c[], cbak[];
+extern long outstanding_taxes, skill[], gltime, c[], cbak[];
+extern time_t initialtime;
extern unsigned long randx;
extern struct cel *cell;
extern struct monst monster[];
extern struct sphere *spheres;
extern struct _itm itm[];
-extern long initialtime;
extern int rmst, maxitm, lasttime;
/* macro to create scroll #'s with probability of occurrence */
#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)