-/* $NetBSD: header.h,v 1.12 1997/10/25 01:40:48 thorpej 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];
#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)