diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-28 17:03:12 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-28 17:03:12 +0000 |
commit | 1ee311b26d7122f860fe940db6ce46968981a9a3 (patch) | |
tree | 96c195652047b452e756960d6bdfc6786443c564 /games | |
parent | ae40c00e1724fe7d6584623e3a953b6b44fc741f (diff) | |
download | FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.zip FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.tar.gz |
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
Diffstat (limited to 'games')
-rw-r--r-- | games/snake/snake/move.c | 25 | ||||
-rw-r--r-- | games/snake/snake/snake.h | 5 |
2 files changed, 0 insertions, 30 deletions
diff --git a/games/snake/snake/move.c b/games/snake/snake/move.c index 6ef17bd..31acbac 100644 --- a/games/snake/snake/move.c +++ b/games/snake/snake/move.c @@ -96,11 +96,7 @@ static const char rcsid[] = ******************************************************************************/ #include <errno.h> -#if __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include <string.h> #include <termcap.h> #include <unistd.h> @@ -399,46 +395,25 @@ pch(c) } void -#if __STDC__ apr(struct point *ps, const char *fmt, ...) -#else -apr(ps, fmt, va_alist) - struct point *ps; - char *fmt; - va_dcl -#endif { struct point p; va_list ap; p.line = ps->line+1; p.col = ps->col+1; move(&p); -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif (void)vsprintf(str, fmt, ap); va_end(ap); pstring(str); } void -#if __STDC__ pr(const char *fmt, ...) -#else -pr(fmt, va_alist) - char *fmt; - va_dcl -#endif { va_list ap; -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif (void)vsprintf(str, fmt, ap); va_end(ap); pstring(str); diff --git a/games/snake/snake/snake.h b/games/snake/snake/snake.h index 9392791..e6ed4bd 100644 --- a/games/snake/snake/snake.h +++ b/games/snake/snake/snake.h @@ -77,12 +77,7 @@ struct sgttyb orig, new; struct ltchars olttyc, nlttyc; #endif struct point *point(); -#if __STDC__ void apr(struct point *, const char *, ...) __printflike(2, 3); void pr(const char *, ...) __printflike(1, 2); -#else -void apr(); -void pr(); -#endif #define same(s1, s2) ((s1)->line == (s2)->line && (s1)->col == (s2)->col) |