summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1996-09-06 01:32:18 +0000
committerTheodore Tso <tytso@mit.edu>1996-09-06 01:32:18 +0000
commit1e5b15f41ebc47339f93e28e387987d737b7aa9e (patch)
treef7d7bf3ff9c790d851b7aca3260ccae31b5fc078 /src
parentc6eb59caf6faeab4391c0d2191bfe86e1da1068e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/util/et/ChangeLog7
-rw-r--r--src/util/et/et_c.awk12
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 <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
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