From 409a3da7cf29aedaabc28d1aad15f10ad433b0de Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 24 Sep 2018 11:57:28 +0200 Subject: [PATCH] more iwyu warnings --- src/console.c | 3 +-- src/helpers.c | 15 ++++++--------- src/helpers.h | 2 -- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/console.c b/src/console.c index 7a32b83f0..f134b2164 100644 --- a/src/console.c +++ b/src/console.c @@ -5,13 +5,12 @@ /* lua includes */ #include +#include #include -#include /* libc includes */ #include #include -#include #include #include diff --git a/src/helpers.c b/src/helpers.c index 8acabd97c..01fa19abc 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -17,26 +17,21 @@ without prior permission by the authors of Eressea. #include "helpers.h" #include "vortex.h" #include "alchemy.h" +#include "magic.h" #include -#include #include #include #include #include #include #include -#include +#include -#include #include #include -#include #include -#include -#include #include -#include #include #include @@ -46,8 +41,10 @@ without prior permission by the authors of Eressea. #include #include -#include -#include +#include +#include + +struct order; static int lua_giveitem(unit * s, unit * d, const item_type * itype, int n, struct order *ord) diff --git a/src/helpers.h b/src/helpers.h index d0bbcc58b..a5eccd0f5 100644 --- a/src/helpers.h +++ b/src/helpers.h @@ -14,8 +14,6 @@ without prior permission by the authors of Eressea. extern "C" { #endif - struct lua_State; - void register_tolua_helpers(void); #ifdef __cplusplus