From 99f1fcb6c27028a6dc166c68fbb095d7c44c7c27 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 28 Jan 2012 14:37:56 +0000 Subject: [PATCH] Move inithashnames() and freehashnames() declarations into namesdyn.h. git-svn-id: https://svn.eduke32.com/eduke32@2296 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 4 +--- polymer/eduke32/source/namesdyn.c | 4 ++-- polymer/eduke32/source/namesdyn.h | 3 +++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 42fec4214..047ee0430 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //------------------------------------------------------------------------- #include "duke3d.h" +#include "namesdyn.h" #include "gamedef.h" #include "gameexec.h" #include "savegame.h" @@ -1038,9 +1039,6 @@ static hashtable_t inputH = { INPUT_END>>1, NULL }; static hashtable_t actorH = { ACTOR_END>>1, NULL }; static hashtable_t tspriteH = { ACTOR_END>>1, NULL }; -void inithashnames(); -void freehashnames(); - void C_InitHashes() { int32_t i; diff --git a/polymer/eduke32/source/namesdyn.c b/polymer/eduke32/source/namesdyn.c index f30b01258..0bea17b18 100644 --- a/polymer/eduke32/source/namesdyn.c +++ b/polymer/eduke32/source/namesdyn.c @@ -1531,7 +1531,7 @@ void G_ProcessDynamicTileMapping(const char *szLabel, int32_t lValue) *(list[i].dynvalptr) = lValue; } -void inithashnames() +void inithashnames(void) { int32_t i; @@ -1541,7 +1541,7 @@ void inithashnames() hash_add(&h_names, list[i].str, i, 0); } -void freehashnames() +void freehashnames(void) { hash_free(&h_names); } diff --git a/polymer/eduke32/source/namesdyn.h b/polymer/eduke32/source/namesdyn.h index 7e0e0e650..a770ba39a 100644 --- a/polymer/eduke32/source/namesdyn.h +++ b/polymer/eduke32/source/namesdyn.h @@ -23,6 +23,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. void G_InitDynamicTiles(void); void G_ProcessDynamicTileMapping(const char *szLabel, int32_t lValue); +void inithashnames(void); +void freehashnames(void); + extern int32_t SECTOREFFECTOR; #define SECTOREFFECTOR__STATIC 1 extern int32_t ACTIVATOR;