minor fix

This commit is contained in:
fluxgen 2002-04-04 18:20:33 +00:00
parent 08ae57e646
commit d78a4ac9a9
2 changed files with 4 additions and 3 deletions

View file

@ -43,6 +43,7 @@ Translation.m: $(MFILES)
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; \

View file

@ -4,13 +4,13 @@
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 @@
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
}
}