Reduce include complexity.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 3 Jan 2024 10:55:57 +0000 (05:55 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 3 Jan 2024 10:55:57 +0000 (05:55 -0500)
actions.c
main.c
saveresume.c

index 4f4ced179ff66c4687a42d797ff514fdb7ce8ffe..f5a7abdffe97e5066a51c80d0215d6231417e3c6 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -9,10 +9,10 @@
 #include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
-#include "advent.h"
-#include "dungeon.h"
 #include <inttypes.h>
 
+#include "advent.h"
+
 static phase_codes_t fill(verb_t, obj_t);
 
 static phase_codes_t attack(command_t command)
diff --git a/main.c b/main.c
index 16cf42d8dd40dab27af78a8544e67fe6ae6bccc0..3fadf1045649c278796bd1a0cb49a94d276a5a34 100644 (file)
--- a/main.c
+++ b/main.c
@@ -14,7 +14,6 @@
 #include <unistd.h>
 #include <editline/readline.h>
 #include "advent.h"
-#include "dungeon.h"
 
 #define DIM(a) (sizeof(a)/sizeof(a[0]))
 
index a2c10a090c7765f33b2ec3ff8b68edc655833179..3b94b4845a2a568a373ec5661a015f07d85a6c36 100644 (file)
@@ -16,7 +16,6 @@
 #include <inttypes.h>
 
 #include "advent.h"
-#include "dungeon.h"
 
 /*
  * Use this to detect endianness mismatch.  Can't be unchanged by byte-swapping.