htable breaks on current nictab.txt (with fix)
Chris Torek
chris at gyre.umd.edu
Thu Apr 17 10:42:33 AEST 1986
Index: /usr/src/etc/htable/scan.l 4.3Beta Fix
Description:
As you probably know by now, the NIC tables acquired some
new names that broke htable. I do not speak of the one-
letter names that leaked out of BU, but rather of the
lowercase in all the `.Berkeley.EDU', and of the `CPUType'
`3B5'.
Repeat-By:
Run htable on the current nictab.txt.
Fix:
Below. This is not terribly clean, but suffices for the
moment...
Chris
RCS file: RCS/scan.l,v
retrieving revision 1.1
retrieving revision 1.2
diff -c2 -r1.1 -r1.2
*** /tmp/,RCSt1001893 Wed Apr 16 18:12:31 1986
--- /tmp/,RCSt2001893 Wed Apr 16 18:12:32 1986
***************
*** 16,22 ****
BLANK [ \t]
DIGIT [0-9]
! ALPHA [A-Z]
! ANUM [0-9A-Z]
! NAMECHR [0-9A-Z./-]
%%
--- 16,22 ----
BLANK [ \t]
DIGIT [0-9]
! ALPHA [A-Za-z]
! ANUM [0-9A-Za-z]
! NAMECHR [0-9A-Za-z./-]
%%
***************
*** 42,45 ****
--- 42,52 ----
{ALPHA} {
+ yylval.namelist = newname(yytext);
+ return (NAME);
+ }
+
+ {DIGIT}+{ALPHA}{NAMECHR}* {
+ fprintf(stderr, "Warning: nonstandard name \"%s\"\n",
+ yytext);
yylval.namelist = newname(yytext);
return (NAME);
More information about the Comp.unix.wizards
mailing list