BSD 4_3_Tahoe development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 18 Apr 1985 05:13:04 +0000 (21:13 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 18 Apr 1985 05:13:04 +0000 (21:13 -0800)
Work on file usr/src/usr.bin/lint/:yyfix
Work on file usr/src/lib/old_compiler/lint/:yyfix

Synthesized-from: CSRG/cd2/4.3tahoe

usr/src/lib/old_compiler/lint/:yyfix [new file with mode: 0644]
usr/src/usr.bin/lint/:yyfix [new file with mode: 0644]

diff --git a/usr/src/lib/old_compiler/lint/:yyfix b/usr/src/lib/old_compiler/lint/:yyfix
new file mode 100644 (file)
index 0000000..6c7df1a
--- /dev/null
@@ -0,0 +1,14 @@
+>rodata.c
+for i in $*
+do ed - y.tab.c <<!
+/^\(.*\)$i[    ]*\[]/s//extern \1 $i[];\\
+\1 $i []/
+-ka
+/}/kb
+'ar rodata.c
+'a+,'bw rodata.c
+'a+,'bd
+w
+q
+!
+done
diff --git a/usr/src/usr.bin/lint/:yyfix b/usr/src/usr.bin/lint/:yyfix
new file mode 100644 (file)
index 0000000..6c7df1a
--- /dev/null
@@ -0,0 +1,14 @@
+>rodata.c
+for i in $*
+do ed - y.tab.c <<!
+/^\(.*\)$i[    ]*\[]/s//extern \1 $i[];\\
+\1 $i []/
+-ka
+/}/kb
+'ar rodata.c
+'a+,'bw rodata.c
+'a+,'bd
+w
+q
+!
+done