--- deliantra/server/common/shstr.C 2006/09/12 00:26:16 1.15 +++ deliantra/server/common/shstr.C 2006/09/12 00:53:56 1.16 @@ -10,17 +10,11 @@ #include -#include "shstr.h" -#include "util.h" +#include "global.h" -typedef -std::tr1::unordered_set < const char *, - str_hash, - str_equal > - HT; +typedef std::tr1::unordered_set HT; -static HT - ht; +static HT ht; static const char * makevec (const char *s) @@ -39,13 +33,7 @@ return v; } -const char * - shstr::null = makevec (""); - -// what weird misoptimisation is this again? -const shstr undead_name ("undead"); - -shstr skill_names[NUM_SKILLS]; +const char *shstr::null = makevec (""); const char * shstr::find (const char *s) @@ -119,6 +107,11 @@ curpos = *i; } +shstr skill_names[NUM_SKILLS]; + +// what weird misoptimisation is this again? +const shstr undead_name ("undead"); + //TODO: this should of course not be here /* buf_overflow() - we don't want to exceed the buffer size of