From: Christian Heller Date: Fri, 22 Aug 2014 00:01:01 +0000 (+0200) Subject: Server: Remove unneeded library includes. X-Git-Tag: tce~646 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/static/templates?a=commitdiff_plain;h=f6615d3be438bbca4997c38c546c0d8724da80d4;p=plomrogue Server: Remove unneeded library includes. --- diff --git a/src/server/field_of_view.c b/src/server/field_of_view.c index b430397..3d86402 100644 --- a/src/server/field_of_view.c +++ b/src/server/field_of_view.c @@ -6,9 +6,10 @@ #include /* memset() */ #include "../common/rexit.h" /* exit_trouble() */ #include "../common/try_malloc.h" /* try_malloc() */ +#include "../common/yx_uint8.h" /* yx_uint8 */ #include "map.h" /* mv_yx_in_dir_legal() */ #include "things.h" /* Thing, ThingInMemory, add_thing_to_memory_map() */ -#include "yx_uint8.h" /* yx_uint8, mv_yx_in_hex_dir(), mv_yx_in_dir_wrap(), */ +#include "yx_uint8.h" /* mv_yx_in_dir_wrap(), */ #include "world.h" /* world */ diff --git a/src/server/map.c b/src/server/map.c index d98a61f..ae907d2 100644 --- a/src/server/map.c +++ b/src/server/map.c @@ -5,7 +5,7 @@ #include /* free() */ #include "../common/rexit.h" /* exit_err() */ #include "../common/try_malloc.h" /* try_malloc() */ -#include "../common/yx_uint8.h" /* struct yx_uint8 */ +#include "../common/yx_uint8.h" /* yx_uint8 */ #include "rrand.h" /* rrand() */ #include "yx_uint8.h" /* mv_yx_in_dir_wrap() */ #include "world.h" /* global world */ diff --git a/src/server/map.h b/src/server/map.h index 5407daf..d704bc2 100644 --- a/src/server/map.h +++ b/src/server/map.h @@ -7,7 +7,7 @@ #define MAP_H_SERVER #include /* uint8_t */ -#include "../common/yx_uint8.h" /* yx_uint8 */ +struct yx_uint8; diff --git a/src/server/thing_actions.c b/src/server/thing_actions.c index 627235c..df516e4 100644 --- a/src/server/thing_actions.c +++ b/src/server/thing_actions.c @@ -8,7 +8,7 @@ #include /* strlen(), memcpy(), strncmp() */ #include "../common/rexit.h" /* exit_trouble() */ #include "../common/try_malloc.h" /* try_malloc() */ -#include "../common/yx_uint8.h" /* struct yx_uint8 */ +#include "../common/yx_uint8.h" /* yx_uint8 */ #include "field_of_view.h" /* build_fov_map() */ #include "hardcoded_strings.h" /* s */ #include "things.h" /* Thing, ThingType, get_player(), own_thing(), diff --git a/src/server/things.h b/src/server/things.h index d5ac7ef..d87bee8 100644 --- a/src/server/things.h +++ b/src/server/things.h @@ -8,7 +8,7 @@ #define THINGS_H #include /* uint8_t, int16_t */ -#include "../common/yx_uint8.h" /* yx_uint8 structs */ +#include "../common/yx_uint8.h" /* yx_uint8 */ diff --git a/src/server/yx_uint8.h b/src/server/yx_uint8.h index 4763f55..54246fd 100644 --- a/src/server/yx_uint8.h +++ b/src/server/yx_uint8.h @@ -7,7 +7,7 @@ #define YX_UINT8_H_SERVER #include /* uint8_t */ -#include "../common/yx_uint8.h" /* yx_uint8 */ +struct yx_uint8;