summaryrefslogtreecommitdiffstats
path: root/games/larn/header.h
diff options
context:
space:
mode:
Diffstat (limited to 'games/larn/header.h')
-rw-r--r--games/larn/header.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/games/larn/header.h b/games/larn/header.h
index 72eab13..07f8660 100644
--- a/games/larn/header.h
+++ b/games/larn/header.h
@@ -1,4 +1,5 @@
/* header.h Larn is copyrighted 1986 by Noah Morgan. */
+/* $FreeBSD$ */
#include <stdlib.h>
#include <string.h>
@@ -393,7 +394,7 @@ unsigned long readnum();
/* macro to clear the screen and home the cursor */
#define clear() (lprcat("\33[2J\33[f"), cbak[SPELLS]= -50)
#define cltoeoln() lprcat("\33[K")
-#else VT100
+#else /* VT100 */
/* defines below are for use in the termcap mode only */
#define ST_START 1
#define ST_END 2
@@ -415,7 +416,7 @@ unsigned long readnum();
#define clear() (*lpnt++ =CLEAR, cbak[SPELLS]= -50)
/* macro to clear to end of line */
#define cltoeoln() (*lpnt++ = CL_LINE)
-#endif VT100
+#endif /* VT100 */
/* macro to output one byte to the output buffer */
#define lprc(ch) ((lpnt>=lpend)?(*lpnt++ =(ch), lflush()):(*lpnt++ =(ch)))
@@ -427,7 +428,7 @@ extern unsigned long randx;
/* macros to generate random numbers 1<=rnd(N)<=N 0<=rund(N)<=N-1 */
#define rnd(x) ((((randx=randx*1103515245+12345)>>7)%(x))+1)
#define rund(x) ((((randx=randx*1103515245+12345)>>7)%(x)) )
-#endif MACRORND
+#endif /* MACRORND */
/* macros for miscellaneous data conversion */
#define min(x,y) (((x)>(y))?(y):(x))
#define max(x,y) (((x)>(y))?(x):(y))
@@ -437,5 +438,5 @@ extern unsigned long randx;
#define toupper(x) (to_upper[x])
#define lcc(x) (to_lower[x])
#define ucc(x) (to_upper[x])
-#endif NODEFS
+#endif /* NODEFS */
OpenPOWER on IntegriCloud