summaryrefslogtreecommitdiff
path: root/strgen/strgen.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-22 14:38:37 +0000
committerrubidium <rubidium@openttd.org>2006-08-22 14:38:37 +0000
commit908d3bcfe6912b5e6270453bd6c3db8862a4d62b (patch)
tree2a3621a92a3d30384ea51e0898d08f035a559915 /strgen/strgen.c
parent7ba3ea5f29b1c23a001a31dec5570c383a72861a (diff)
downloadopenttd-908d3bcfe6912b5e6270453bd6c3db8862a4d62b.tar.xz
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
Diffstat (limited to 'strgen/strgen.c')
-rw-r--r--strgen/strgen.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c
index abdcb21bf..6fbccfb24 100644
--- a/strgen/strgen.c
+++ b/strgen/strgen.c
@@ -34,13 +34,13 @@ typedef void (*ParseCmdProc)(char *buf, int value);
typedef struct LanguagePackHeader {
uint32 ident;
- uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h
- char name[32]; // the international name of this language
+ uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h
+ char name[32]; // the international name of this language
char own_name[32]; // the localized name of this language
- char isocode[16]; // the ISO code for the language (not country code)
- uint16 offsets[32]; // the offsets
- byte plural_form; // plural form index
- byte pad[3]; // pad header to be a multiple of 4
+ char isocode[16]; // the ISO code for the language (not country code)
+ uint16 offsets[32]; // the offsets
+ byte plural_form; // plural form index
+ byte pad[3]; // pad header to be a multiple of 4
} LanguagePackHeader;
typedef struct CmdStruct {
@@ -53,7 +53,7 @@ typedef struct CmdStruct {
enum {
C_DONTCOUNT = 1,
- C_CASE = 2,
+ C_CASE = 2,
};
@@ -70,14 +70,14 @@ static int _cur_line;
static int _errors, _warnings;
typedef struct LangString {
- char *name; // Name of the string
- char *english; // English text
- char *translated; // Translated text
- uint16 hash_next; // next hash entry
+ char *name; // Name of the string
+ char *english; // English text
+ char *translated; // Translated text
+ uint16 hash_next; // next hash entry
uint16 index;
- int line; // line of string in source-file
- Case *english_case; // cases for english
- Case *translated_case; // cases for foreign
+ int line; // line of string in source-file
+ Case *english_case; // cases for english
+ Case *translated_case; // cases for foreign
} LangString;
static LangString *_strings[65536];
@@ -103,7 +103,7 @@ static char _cases[MAX_NUM_CASES][16];
static int _numcases;
// for each plural value, this is the number of plural forms.
-static const byte _plural_form_counts[] = { 2,1,2,3,3,3,3,3,4 };
+static const byte _plural_form_counts[] = { 2, 1, 2, 3, 3, 3, 3, 3, 4 };
static const char *_cur_ident;