diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 09:12:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 09:12:52 +0000 |
commit | 793b0f0736ac543fb1f6a7e9a4bfd678891e7374 (patch) | |
tree | 352152ef224f676aaec05a4a1059f9da3ac44bc9 | |
parent | dc149021be9950a934b2550d89e076f9671dca08 (diff) | |
download | openttd-793b0f0736ac543fb1f6a7e9a4bfd678891e7374.tar.xz |
(svn r19811) -Codechange: make the last bits from table/strings.h use static consts too instead of an unnamed enum
-rw-r--r-- | src/strgen/strgen.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index 8992ad6c6..bfcc8c8a8 100644 --- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -951,16 +951,14 @@ static void WriteStringsH(const char *filename) } } - fprintf(_output_file, "\nstatic const StringID STR_LAST_STRINGID = 0x%X;\n", next - 1); + fprintf(_output_file, "\nstatic const StringID STR_LAST_STRINGID = 0x%X;\n\n", next - 1); fprintf(_output_file, - "\nenum {\n" - "\tLANGUAGE_PACK_IDENT = 0x474E414C, // Big Endian value for 'LANG' (LE is 0x 4C 41 4E 47)\n" - "\tLANGUAGE_PACK_VERSION = 0x%X,\n" - "};\n", (uint)_hash + "static const uint LANGUAGE_PACK_IDENT = 0x474E414C; // Big Endian value for 'LANG' (LE is 0x 4C 41 4E 47)\n" + "static const uint LANGUAGE_PACK_VERSION = 0x%X;\n\n", (uint)_hash ); - fprintf(_output_file, "\n#endif /* TABLE_STRINGS_H */\n"); + fprintf(_output_file, "#endif /* TABLE_STRINGS_H */\n"); fclose(_output_file); _output_file = NULL; |