From d78a4ac9a983e6ef20e3ddc97af50a963e35c54d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 4 Apr 2002 18:20:33 +0000 Subject: minor fix --- nls/C/Makefile.am | 1 + nls/convert.awk | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nls/C/Makefile.am b/nls/C/Makefile.am index 2b73745..a7b50ba 100644 --- a/nls/C/Makefile.am +++ b/nls/C/Makefile.am @@ -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; \ diff --git a/nls/convert.awk b/nls/convert.awk index 744179c..813c470 100644 --- a/nls/convert.awk +++ b/nls/convert.awk @@ -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 } } -- cgit v0.11.2