From 6084a67a3124c095bd9a2b408dee7a7399424e6f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 30 Dec 2001 08:39:21 +0000 Subject: [PATCH] =?UTF-8?q?modules=20m=C3=BCssen=20ohne=20gamecode=20kompi?= =?UTF-8?q?lieren,=20damit=20mapper=20noch=20l=C3=A4uft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/eressea.c | 4 ++-- src/common/kernel/eressea.h | 3 +++ src/common/{gamecode => modules}/xmas.c | 0 src/common/{gamecode => modules}/xmas.h | 0 4 files changed, 5 insertions(+), 2 deletions(-) rename src/common/{gamecode => modules}/xmas.c (100%) rename src/common/{gamecode => modules}/xmas.h (100%) diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index dcd59b545..7ce9e47d7 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -426,7 +426,7 @@ ufindhash (int i) #define FMAXHASH 2047 faction * factionhash[FMAXHASH]; -static void +void fhash(faction * f) { int index = f->no % FMAXHASH; @@ -434,7 +434,7 @@ fhash(faction * f) factionhash[index] = f; } -static void +void funhash(faction * f) { int index = f->no % FMAXHASH; diff --git a/src/common/kernel/eressea.h b/src/common/kernel/eressea.h index fc22778ff..d89e7ed69 100644 --- a/src/common/kernel/eressea.h +++ b/src/common/kernel/eressea.h @@ -1064,6 +1064,9 @@ void uhash(struct unit * u); void uunhash(struct unit * u); struct unit *ufindhash(int i); +void fhash(struct faction * f); +void funhash(struct faction * f); + #ifndef NDEBUG const char *strcheck(const char *s, size_t maxlen); diff --git a/src/common/gamecode/xmas.c b/src/common/modules/xmas.c similarity index 100% rename from src/common/gamecode/xmas.c rename to src/common/modules/xmas.c diff --git a/src/common/gamecode/xmas.h b/src/common/modules/xmas.h similarity index 100% rename from src/common/gamecode/xmas.h rename to src/common/modules/xmas.h