forked from github/server
config.h globals cleanup.
This commit is contained in:
parent
cb6be542b9
commit
dc2452e2c1
5 changed files with 15 additions and 18 deletions
|
@ -155,7 +155,6 @@ struct param;
|
||||||
void free_config(void);
|
void free_config(void);
|
||||||
|
|
||||||
extern const char *parameters[];
|
extern const char *parameters[];
|
||||||
extern const char *localenames[];
|
|
||||||
extern settings global;
|
extern settings global;
|
||||||
|
|
||||||
extern bool lomem; /* save memory */
|
extern bool lomem; /* save memory */
|
||||||
|
|
|
@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
#include <kernel/config.h>
|
|
||||||
#include "changefaction.h"
|
#include "changefaction.h"
|
||||||
|
|
||||||
/* kernel includes */
|
/* kernel includes */
|
||||||
|
|
|
@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
#include <kernel/config.h>
|
|
||||||
#include "changerace.h"
|
#include "changerace.h"
|
||||||
|
|
||||||
/* kernel includes */
|
/* kernel includes */
|
||||||
|
|
|
@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
#include <kernel/config.h>
|
|
||||||
#include "clonedied.h"
|
#include "clonedied.h"
|
||||||
|
|
||||||
#include "magic.h"
|
#include "magic.h"
|
||||||
|
|
|
@ -30,33 +30,34 @@ extern "C" {
|
||||||
struct locale;
|
struct locale;
|
||||||
struct critbit_tree;
|
struct critbit_tree;
|
||||||
|
|
||||||
|
extern const char *localenames[];
|
||||||
|
extern struct locale *default_locale;
|
||||||
|
extern struct locale *locales;
|
||||||
|
extern struct locale *nextlocale(const struct locale *lang);
|
||||||
|
|
||||||
/** managing multiple locales: **/
|
/** managing multiple locales: **/
|
||||||
extern struct locale *get_locale(const char *name);
|
struct locale *get_locale(const char *name);
|
||||||
extern struct locale *get_or_create_locale(const char *key);
|
struct locale *get_or_create_locale(const char *key);
|
||||||
void init_locales(void);
|
void init_locales(void);
|
||||||
void free_locales(void);
|
void free_locales(void);
|
||||||
void reset_locales(void);
|
void reset_locales(void);
|
||||||
|
|
||||||
/** operations on locales: **/
|
/** operations on locales: **/
|
||||||
extern void locale_setstring(struct locale *lang, const char *key,
|
void locale_setstring(struct locale *lang, const char *key,
|
||||||
const char *value);
|
const char *value);
|
||||||
extern const char *locale_getstring(const struct locale *lang,
|
const char *locale_getstring(const struct locale *lang,
|
||||||
const char *key);
|
const char *key);
|
||||||
extern const char *locale_string(const struct locale *lang, const char *key, bool warn); /* does fallback */
|
const char *locale_string(const struct locale *lang, const char *key, bool warn); /* does fallback */
|
||||||
extern unsigned int locale_index(const struct locale *lang);
|
unsigned int locale_index(const struct locale *lang);
|
||||||
extern const char *locale_name(const struct locale *lang);
|
const char *locale_name(const struct locale *lang);
|
||||||
|
|
||||||
extern const char *mkname(const char *namespc, const char *key);
|
const char *mkname(const char *namespc, const char *key);
|
||||||
extern char *mkname_buf(const char *namespc, const char *key, char *buffer);
|
char *mkname_buf(const char *namespc, const char *key, char *buffer);
|
||||||
|
|
||||||
extern void make_locales(const char *str);
|
void make_locales(const char *str);
|
||||||
|
|
||||||
#define LOC(lang, s) (lang?locale_string(lang, s, true):s)
|
#define LOC(lang, s) (lang?locale_string(lang, s, true):s)
|
||||||
|
|
||||||
extern struct locale *default_locale;
|
|
||||||
extern struct locale *locales;
|
|
||||||
extern struct locale *nextlocale(const struct locale *lang);
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
UT_PARAMS,
|
UT_PARAMS,
|
||||||
UT_KEYWORDS,
|
UT_KEYWORDS,
|
||||||
|
|
Loading…
Add table
Reference in a new issue