Freeciv-3.2
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
name_translation.h File Reference
#include "fcintl.h"
#include "support.h"
#include "fc_types.h"

Go to the source code of this file.

Data Structures

struct  name_translation
 

Macros

#define vernacular   _private_vernacular_
 
#define rulename   _private_rulename_
 
#define translated   _private_translated_
 
#define NAME_INIT   { NULL, "\0", "\0" }
 

Functions

static void name_init (struct name_translation *ptrans)
 
static void names_set (struct name_translation *ptrans, const char *domain, const char *vernacular_name, const char *rule_name)
 
static void name_set (struct name_translation *ptrans, const char *domain, const char *vernacular_name)
 
static const charuntranslated_name (const struct name_translation *ptrans)
 
static const charrule_name_get (const struct name_translation *ptrans)
 
static const charname_translation_get (const struct name_translation *ptrans)
 

Macro Definition Documentation

◆ NAME_INIT

#define NAME_INIT   { NULL, "\0", "\0" }

Definition at line 44 of file name_translation.h.

◆ rulename

#define rulename   _private_rulename_

Definition at line 30 of file name_translation.h.

◆ translated

#define translated   _private_translated_

Definition at line 31 of file name_translation.h.

◆ vernacular

#define vernacular   _private_vernacular_

Definition at line 29 of file name_translation.h.

Function Documentation

◆ name_init()

static void name_init ( struct name_translation ptrans)
inlinestatic

Initializes a name translation structure.

Definition at line 49 of file name_translation.h.

Referenced by multipliers_init().

◆ name_set()

static void name_set ( struct name_translation ptrans,
const char domain,
const char vernacular_name 
)
inlinestatic

◆ name_translation_get()

static const char * name_translation_get ( const struct name_translation ptrans)
inlinestatic

◆ names_set()

static void names_set ( struct name_translation ptrans,
const char domain,
const char vernacular_name,
const char rule_name 
)
inlinestatic

◆ rule_name_get()

static const char * rule_name_get ( const struct name_translation ptrans)
inlinestatic

◆ untranslated_name()

static const char * untranslated_name ( const struct name_translation ptrans)
inlinestatic