summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-14 12:19:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-14 12:19:47 +0000
commitdade571a99b46ad5ae70ba6b36e0653ddce6c47b (patch)
tree4f4d160f53a5be6a06b7665a1057d0d067677a09 /tools
parentde4a3af55e1b988e97b2e40176beea99284567a4 (diff)
downloadrockbox-dade571a99b46ad5ae70ba6b36e0653ddce6c47b.tar.gz
rockbox-dade571a99b46ad5ae70ba6b36e0653ddce6c47b.tar.bz2
rockbox-dade571a99b46ad5ae70ba6b36e0653ddce6c47b.zip
indent the generated code properly, add an end-of-array marker named
LANG_LAST_INDEX_IN_ARRAY git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2619 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genlang5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/genlang b/tools/genlang
index 927855895c..39f1696e8c 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -76,8 +76,8 @@ while(<LANG>) {
$value = $set{'eng'};
}
- print HFILE " ".$set{'id'}.",\n";
- print CFILE " $value,\n";
+ print HFILE " ".$set{'id'}.",\n";
+ print CFILE " $value,\n";
undef %set;
}
@@ -89,6 +89,7 @@ close(LANG);
print HFILE <<MOO
+ LANG_LAST_INDEX_IN_ARRAY /* this is not a string, this is a marker */
};
/* end of generated enum list */
MOO