Work on file usr/src/cmd/lisp/liszt/ltags
Work on file usr/src/cmd/lisp/liszt/uctolc.c
Synthesized-from: CSRG/cd1/4.1.snap
--- /dev/null
+/^\(DEF/ { print $2, FILENAME, "?^" $0 "$?" }
+/^\(def/ { print $2, FILENAME, "?^" $0 "$?" }
--- /dev/null
+#include <stdio.h>
+#include <ctype.h>
+/* uctolc j foderaro
+ convert upper case to lower case
+ in the first field of a tags file
+ */
+#define TRUE -1
+main()
+{
+ register char c;
+ while(TRUE)
+ {
+ pt1:
+ while( (c=getchar()) != EOF)
+ {
+ if(isupper(c))putchar( c + ('a' - 'A'));
+ else if(c == ' ') goto pt2;
+ else putchar(c);
+ }
+ exit();
+ pt2:
+ putchar(c);
+ while( (c=getchar()) != EOF)
+ {
+ putchar(c);
+ if(c == '\n') goto pt1;
+ }
+ exit();
+ }
+}