forked from len0rd/rockbox
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
This commit is contained in:
parent
de4a3af55e
commit
dade571a99
1 changed files with 3 additions and 2 deletions
|
@ -76,8 +76,8 @@ while(<LANG>) {
|
||||||
$value = $set{'eng'};
|
$value = $set{'eng'};
|
||||||
}
|
}
|
||||||
|
|
||||||
print HFILE " ".$set{'id'}.",\n";
|
print HFILE " ".$set{'id'}.",\n";
|
||||||
print CFILE " $value,\n";
|
print CFILE " $value,\n";
|
||||||
|
|
||||||
undef %set;
|
undef %set;
|
||||||
}
|
}
|
||||||
|
@ -89,6 +89,7 @@ close(LANG);
|
||||||
|
|
||||||
|
|
||||||
print HFILE <<MOO
|
print HFILE <<MOO
|
||||||
|
LANG_LAST_INDEX_IN_ARRAY /* this is not a string, this is a marker */
|
||||||
};
|
};
|
||||||
/* end of generated enum list */
|
/* end of generated enum list */
|
||||||
MOO
|
MOO
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue