From 1e5b15f41ebc47339f93e28e387987d737b7aa9e Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 6 Sep 1996 01:32:18 +0000 Subject: [PATCH] Change continuation processing so that it doesn't depend on ANSI C string concatenation. (No need for it, since the .c file isn't designed for human consumption anyway.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9038 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 7 +++++++ src/util/et/et_c.awk | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index a08671018..86d108124 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,10 @@ +Thu Sep 5 21:31:07 1996 Theodore Y. Ts'o + + * et_c.awk: Change continuation processing so that it doesn't + depend on ANSI C string concatenation. (No need for it, + since the .c file isn't designed for human consumption + anyway.) + Fri Aug 30 22:55:14 1996 Tom Yu * internal.h: #ifdef NEED_SYS_ERRLIST -> #ifdef diff --git a/src/util/et/et_c.awk b/src/util/et/et_c.awk index ac1321cd0..ed8c45a26 100644 --- a/src/util/et/et_c.awk +++ b/src/util/et/et_c.awk @@ -122,11 +122,13 @@ c2n["_"]=63 (continuation == 1) && ($0 ~ /\\[ \t]*$/) { text=substr($0,1,length($0)-1); - printf "\t\t\"%s\"\n", text > outfile +# printf "\t\t\"%s\"\n", text > outfile + cont_buf=cont_buf text; } (continuation == 1) && ($0 ~ /"[ \t]*$/) { - printf "\t\t\"%s,\n", $0 > outfile +# printf "\t\t\"%s,\n", $0 > outfile + printf "\t%s,\n", cont_buf $0 > outfile continuation = 0; } @@ -152,14 +154,16 @@ c2n["_"]=63 text = text FS $i } text=substr(text,2,length(text)-2); - printf "\t%s\"\n", text > outfile +# printf "\t%s\"\n", text > outfile + cont_buf=text continuation++; } /^[ \t]*".*\\[ \t]*$/ { if (skipone) { text=substr($0,1,length($0)-1); - printf "\t%s\"\n", text > outfile +# printf "\t%s\"\n", text > outfile + cont_buf=text continuation++; } skipone=0 -- 2.26.2