projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore SIGTTOU while resetting on TSTP (else can stop before reset
[unix-history]
/
usr
/
src
/
old
/
awk
/
proc.c
diff --git
a/usr/src/old/awk/proc.c
b/usr/src/old/awk/proc.c
index
33e19fb
..
8e0837c
100644
(file)
--- a/
usr/src/old/awk/proc.c
+++ b/
usr/src/old/awk/proc.c
@@
-1,4
+1,6
@@
-/* proc.c 4.1 82/05/07 */
+#ifndef lint
+static char sccsid[] = "@(#)proc.c 4.3 %G%";
+#endif
#include "awk.h"
#define NULL 0
#include "awk.h"
#define NULL 0
@@
-80,7
+82,8
@@
main()
for(p=proc; p->token!=0; p++)
names[p->token-FIRSTTOKEN] = p->pname;
for(i=0; i<SIZE; i++)
for(p=proc; p->token!=0; p++)
names[p->token-FIRSTTOKEN] = p->pname;
for(i=0; i<SIZE; i++)
- printf("/*%s*/\t\"%s\",\n",tokname(i+FIRSTTOKEN),names[i]);
+ printf("/*%s*/\t\"%s\",\n",tokname(i+FIRSTTOKEN),
+ names[i]?names[i]:"");
printf("};\n");
exit(0);
}
printf("};\n");
exit(0);
}