From: Eric S. Raymond Date: Wed, 3 Jan 2024 10:55:57 +0000 (-0500) Subject: Reduce include complexity. X-Git-Tag: 1.18~22 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=75bc031b46097725c83b63bbdb520ac3c907ef05 Reduce include complexity. --- diff --git a/actions.c b/actions.c index 4f4ced1..f5a7abd 100644 --- a/actions.c +++ b/actions.c @@ -9,10 +9,10 @@ #include #include #include -#include "advent.h" -#include "dungeon.h" #include +#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 16cf42d..3fadf10 100644 --- a/main.c +++ b/main.c @@ -14,7 +14,6 @@ #include #include #include "advent.h" -#include "dungeon.h" #define DIM(a) (sizeof(a)/sizeof(a[0])) diff --git a/saveresume.c b/saveresume.c index a2c10a0..3b94b48 100644 --- a/saveresume.c +++ b/saveresume.c @@ -16,7 +16,6 @@ #include #include "advent.h" -#include "dungeon.h" /* * Use this to detect endianness mismatch. Can't be unchanged by byte-swapping.