(svn r21134) -Change: perform some more stringent validity checking on the language files

This commit is contained in:
rubidium
2010-11-10 17:49:44 +00:00
parent 17b514ccd1
commit 1ddc05e822
2 changed files with 12 additions and 2 deletions

View File

@@ -935,7 +935,8 @@ static void WriteStringsH(const char *filename)
fprintf(_output_file, "\nstatic const StringID STR_LAST_STRINGID = 0x%X;\n\n", next - 1);
fprintf(_output_file,
"static const uint LANGUAGE_PACK_VERSION = 0x%X;\n\n", (uint)_hash
"static const uint LANGUAGE_PACK_VERSION = 0x%X;\n"
"static const uint LANGUAGE_MAX_PLURAL = %d;\n\n", (uint)_hash, (uint)lengthof(_plural_forms)
);
fprintf(_output_file, "#endif /* TABLE_STRINGS_H */\n");