diff options
author | obrien <obrien@FreeBSD.org> | 2002-05-08 20:39:10 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-05-08 20:39:10 +0000 |
commit | 570838e70ab3ccf462476032eb6cd0c045e8c406 (patch) | |
tree | 072018909be76e0de07fe7b2f3eb2d450d726203 /games/larn/help.c | |
parent | c9b486b0a34c05b806f51d17eaf13fd60b9da9d9 (diff) | |
download | FreeBSD-src-570838e70ab3ccf462476032eb6cd0c045e8c406.zip FreeBSD-src-570838e70ab3ccf462476032eb6cd0c045e8c406.tar.gz |
It is not clear if "#endif FOO" is allowed by ANSI. Gcc 3.1 complains
loudly, so don't do it.
Diffstat (limited to 'games/larn/help.c')
-rw-r--r-- | games/larn/help.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/games/larn/help.c b/games/larn/help.c index fa31c82..5bb04bb 100644 --- a/games/larn/help.c +++ b/games/larn/help.c @@ -16,7 +16,7 @@ help() int i,j; #ifndef VT100 char tmbuf[128]; /* intermediate translation buffer when not a VT100 */ -#endif VT100 +#endif /* VT100 */ if ((j=openhelp()) < 0) return; /* open the help file and get # pages */ for (i=0; i<23; i++) lgetl(); /* skip over intro message */ for (; j>0; j--) @@ -25,9 +25,9 @@ help() for (i=0; i<23; i++) #ifdef VT100 lprcat(lgetl()); /* print out each line that we read in */ -#else VT100 +#else /* VT100 */ { tmcapcnv(tmbuf,lgetl()); lprcat(tmbuf); } /* intercept \33's */ -#endif VT100 +#endif /* VT100 */ if (j>1) { lprcat(" ---- Press "); standout("return"); @@ -51,15 +51,15 @@ welcome() int i; #ifndef VT100 char tmbuf[128]; /* intermediate translation buffer when not a VT100 */ -#endif VT100 +#endif /* VT100 */ if (openhelp() < 0) return; /* open the help file */ clear(); for(i=0; i<23; i++) #ifdef VT100 lprcat(lgetl()); /* print out each line that we read in */ -#else VT100 +#else /* VT100 */ { tmcapcnv(tmbuf,lgetl()); lprcat(tmbuf); } /* intercept \33's */ -#endif VT100 +#endif /* VT100 */ lrclose(); retcont(); /* press return to continue */ } |