minor fix
fluxgen fluxgen
2 files changed,
4 insertions(+),
3 deletions(-)
M
nls/C/Makefile.am
→
nls/C/Makefile.am
@@ -43,6 +43,7 @@ echo -e "namespace FBNLS {" >> ../blackbox-nls.hh; \
echo -e "enum {" >> ../blackbox-nls.hh; \ awk -f ../convert.awk header=../blackbox-nls.hh \ output=Translation.m $(MFILES); \ + echo -e " dummy_not_used = 0 //just for the ending" >> ../blackbox-nls.hh; \ echo -e "}; //end enum\n" >> ../blackbox-nls.hh; \ echo -e "}; //end namespace\n" >> ../blackbox-nls.hh; \ echo -e "#endif //BLACKBOX_NLS_HH\n" >> ../blackbox-nls.hh; \
M
nls/convert.awk
→
nls/convert.awk
@@ -4,13 +4,13 @@ minor = 0
if (major > 1) printf "\n" > output - printf "$set %d %s\n", major, $3 > output + printf "$set %d %s\n", major, $3 >> output if (header) { majorName = substr($3, 2) if (major > 1) printf "\n" > header - printf "#define %sSet %#x\n", majorName, major > header + printf "\t%sSet = %#x,\n", majorName, major >> header } }@@ -19,7 +19,7 @@ minor++
if (header) { minorName = substr($2, 2) - printf "#define %s%s %#x\n", majorName, minorName, minor > header + printf "\t%s%s = %#x,\n", majorName, minorName, minor >> header } }