summaryrefslogtreecommitdiffstats
path: root/phantasia/misc.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-31 08:27:16 +0000
committerdholland <dholland@NetBSD.org>2009-08-31 08:27:16 +0000
commitf317851cef910ed84d916f18ef477f31e735802d (patch)
treee275e53266046ba2d99b4ce26a427ee5a769a2ec /phantasia/misc.c
parent261019cf959bb2b883a896cb49cb696257730a87 (diff)
downloadbsdgames-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/misc.c')
-rw-r--r--phantasia/misc.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/phantasia/misc.c b/phantasia/misc.c
index 48909029..663bf519 100644
--- a/phantasia/misc.c
+++ b/phantasia/misc.c
@@ -1,10 +1,24 @@
-/* $NetBSD: misc.c,v 1.18 2009/08/12 08:21:41 dholland Exp $ */
+/* $NetBSD: misc.c,v 1.19 2009/08/31 08:27:16 dholland Exp $ */
/*
* misc.c Phantasia miscellaneous support routines
*/
-#include "include.h"
+#include <errno.h>
+#include <math.h>
+#include <setjmp.h>
+#include <signal.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>