2010-08-08 10:06:34 +02:00
|
|
|
#ifndef CLASS_LANGUAGE_STRUCT
|
|
|
|
#define CLASS_LANGUAGE_STRUCT
|
|
|
|
|
2014-08-17 14:24:19 +02:00
|
|
|
/* This file should not be included by anything in the server. If you
|
2010-08-08 10:06:34 +02:00
|
|
|
* feel that you need to include it, it's a sure sign that you're trying to
|
|
|
|
* do something BAD. */
|
|
|
|
|
|
|
|
#define SMAXHASH 2048
|
|
|
|
typedef struct locale_str {
|
2014-08-17 14:24:19 +02:00
|
|
|
unsigned int hashkey;
|
|
|
|
struct locale_str *nexthash;
|
|
|
|
char *str;
|
|
|
|
char *key;
|
2010-08-08 10:06:34 +02:00
|
|
|
} locale_str;
|
|
|
|
|
|
|
|
typedef struct locale {
|
2014-08-17 14:24:19 +02:00
|
|
|
const char *name;
|
|
|
|
unsigned int index;
|
|
|
|
struct locale *next;
|
|
|
|
unsigned int hashkey;
|
|
|
|
struct locale_str *strings[SMAXHASH];
|
|
|
|
struct locale *fallback;
|
2010-08-08 10:06:34 +02:00
|
|
|
} locale;
|
|
|
|
|
2011-03-07 08:02:35 +01:00
|
|
|
extern locale *default_locale;
|
|
|
|
extern locale *locales;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#endif
|