Change continuation processing so that it doesn't depend on ANSI C
authorTheodore Tso <tytso@mit.edu>
Fri, 6 Sep 1996 01:32:18 +0000 (01:32 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 6 Sep 1996 01:32:18 +0000 (01:32 +0000)
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
src/util/et/et_c.awk

index a08671018ced6d36a44d00415bfe60caf92e0ff9..86d108124042570829feff0a7d2c57bbeb8483fc 100644 (file)
@@ -1,3 +1,10 @@
+Thu Sep  5 21:31:07 1996  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * 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  <tlyu@mit.edu>
 
        * internal.h: #ifdef NEED_SYS_ERRLIST -> #ifdef
index ac1321cd06c626eca8985aaba13868fbc74dc289..ed8c45a26c77810716215efe71b5748eb1170f47 100644 (file)
@@ -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