From 0759482934e84e4366512b51bad6c285c6c8445f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 23 Sep 2018 19:53:01 +0200 Subject: [PATCH] clean includes for bindings and main --- src/bind_building.c | 6 ++++-- src/bind_config.c | 4 +--- src/bind_faction.c | 4 ---- src/bind_tolua.c | 2 ++ src/main.c | 18 +++++++++--------- 5 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/bind_building.c b/src/bind_building.c index 9e39a54a5..93576ed3b 100644 --- a/src/bind_building.c +++ b/src/bind_building.c @@ -5,7 +5,6 @@ #include "bind_building.h" #include "bind_unit.h" -#include #include #include #include @@ -15,9 +14,12 @@ #include #include +#include +#include #include + +#include #include -#include int tolua_buildinglist_next(lua_State * L) { diff --git a/src/bind_config.c b/src/bind_config.c index 2d4086ccf..31ffcc287 100644 --- a/src/bind_config.c +++ b/src/bind_config.c @@ -5,17 +5,15 @@ #include "bind_config.h" #include "jsonconf.h" +#include "magic.h" #include #include #include #include #include -#include -#include #include -#include #include #include #include diff --git a/src/bind_faction.c b/src/bind_faction.c index eae029f4b..e113d924c 100644 --- a/src/bind_faction.c +++ b/src/bind_faction.c @@ -17,19 +17,16 @@ without prior permission by the authors of Eressea. #include "bind_faction.h" #include "bind_unit.h" #include "bindings.h" -#include "helpers.h" #include "magic.h" #include #include #include #include -#include #include #include #include #include -#include #include "kernel/types.h" #include @@ -46,7 +43,6 @@ without prior permission by the authors of Eressea. #include #include #include -#include typedef struct helpmode { const char *name; diff --git a/src/bind_tolua.c b/src/bind_tolua.c index 669d5848b..d681b9088 100644 --- a/src/bind_tolua.c +++ b/src/bind_tolua.c @@ -12,6 +12,8 @@ #include "settings.pkg.c" #pragma warning(pop) +#include + void tolua_bind_open(lua_State * L) { tolua_eressea_open(L); tolua_process_open(L); diff --git a/src/main.c b/src/main.c index bb353fc2f..599fbdd67 100644 --- a/src/main.c +++ b/src/main.c @@ -22,15 +22,11 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include -#include #include -#include #include -#include #include #include -#include #include #include "eressea.h" @@ -39,14 +35,18 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #endif #include "bindings.h" -#include "races/races.h" -#include "spells.h" + +#include +#include #include -#include + +#include #include +#include +#include +#include #include -#include static const char *logfile = "eressea.log"; static const char *luafile = 0; @@ -302,7 +302,7 @@ void locale_init(void) } } -extern void bind_monsters(struct lua_State *L); +extern void bind_monsters(lua_State *L); int main(int argc, char **argv) {