diff options
Diffstat (limited to 'src/util/et')
| -rw-r--r-- | src/util/et/ChangeLog | 4 | ||||
| -rw-r--r-- | src/util/et/et_c.awk | 31 |
2 files changed, 34 insertions, 1 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 34cc96338..233b5b9d7 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -14,6 +14,10 @@ Mon Jun 10 21:54:09 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> * vfprintf.c, internal.h, compile_et.c, et_c.awk, com_err.c: Change _WINDOWS to _MSDOS, and add check for _WIN32. +Sun May 12 01:13:02 1996 Marc Horowitz <marc@mit.edu> + + * et_c.awk: deal with continuations in the input .et file. + Wed Mar 20 00:19:08 1996 Theodore Y. Ts'o <tytso@dcl> * Makefile.in (SRCS): Fix SRCS definition so that it doesn't fool diff --git a/src/util/et/et_c.awk b/src/util/et/et_c.awk index 8067e7190..ac1321cd0 100644 --- a/src/util/et/et_c.awk +++ b/src/util/et/et_c.awk @@ -120,7 +120,18 @@ c2n["_"]=63 table_item_count = 0 } +(continuation == 1) && ($0 ~ /\\[ \t]*$/) { + text=substr($0,1,length($0)-1); + printf "\t\t\"%s\"\n", text > outfile +} + +(continuation == 1) && ($0 ~ /"[ \t]*$/) { + printf "\t\t\"%s,\n", $0 > outfile + continuation = 0; +} + /^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,[ \t]*$/ { + table_item_count++ skipone=1 next } @@ -135,10 +146,28 @@ c2n["_"]=63 table_item_count++ } +/^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,[ \t]*".*\\[ \t]*$/ { + text="" + for (i=3; i<=NF; i++) { + text = text FS $i + } + text=substr(text,2,length(text)-2); + printf "\t%s\"\n", text > outfile + continuation++; +} + +/^[ \t]*".*\\[ \t]*$/ { + if (skipone) { + text=substr($0,1,length($0)-1); + printf "\t%s\"\n", text > outfile + continuation++; + } + skipone=0 +} + { if (skipone) { printf "\t%s,\n", $0 > outfile - table_item_count++ } skipone=0 } |
