diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-10-14 12:19:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-10-14 12:19:47 +0000 |
commit | dade571a99b46ad5ae70ba6b36e0653ddce6c47b (patch) | |
tree | 4f4d160f53a5be6a06b7665a1057d0d067677a09 | |
parent | de4a3af55e1b988e97b2e40176beea99284567a4 (diff) |
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
-rwxr-xr-x | tools/genlang | 5 |
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 |