diff options
author | dholland <dholland@NetBSD.org> | 2009-08-31 08:27:16 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-31 08:27:16 +0000 |
commit | f317851cef910ed84d916f18ef477f31e735802d (patch) | |
tree | e275e53266046ba2d99b4ce26a427ee5a769a2ec /phantasia/main.c | |
parent | 261019cf959bb2b883a896cb49cb696257730a87 (diff) | |
download | bsdgames-darwin-f317851cef910ed84d916f18ef477f31e735802d.tar.gz bsdgames-darwin-f317851cef910ed84d916f18ef477f31e735802d.tar.zst bsdgames-darwin-f317851cef910ed84d916f18ef477f31e735802d.zip |
Dumping all system includes anything uses in one big header file is so 1986.
XXX: Removing unused declarations (thus, unused headers can trigger
XXX: it) sometimes causes gcc to generate substantially different
XXX: code. Dunno why but it looks rather like a gcc bug.
Diffstat (limited to 'phantasia/main.c')
-rw-r--r-- | phantasia/main.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/phantasia/main.c b/phantasia/main.c index 7e480d0a..bd17453e 100644 --- a/phantasia/main.c +++ b/phantasia/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.22 2009/08/12 08:21:41 dholland Exp $ */ +/* $NetBSD: main.c,v 1.23 2009/08/31 08:27:16 dholland Exp $ */ /* * Phantasia 3.3.2 -- Interterminal fantasy game @@ -27,10 +27,25 @@ * AT&T is in no way connected with this game. */ -#include <sys/stat.h> #include <sys/types.h> +#include <sys/stat.h> #include <err.h> +#include <math.h> #include <pwd.h> +#include <setjmp.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "macros.h" +#include "phantdefs.h" +#include "phantstruct.h" +#include "phantglobs.h" +#include "pathnames.h" + +#undef bool +#include <curses.h> /* * The program allocates as much file space as it needs to store characters, @@ -57,10 +72,6 @@ * main.c Main routines for Phantasia */ -#include "include.h" -#undef bool -#include <curses.h> - static void genchar(int); static void initialstate(void); static void neatstuff(void); |