Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!cmcl2!seismo!brl-sem!brl-smoke!smoke!chris@gyre.umd.edu From: chris@gyre.umd.edu (Chris Torek) Newsgroups: net.unix-wizards Subject: htable breaks on current nictab.txt (with fix) Message-ID: <66@brl-smoke.ARPA> Date: Wed, 16-Apr-86 19:42:33 EST Article-I.D.: brl-smok.66 Posted: Wed Apr 16 19:42:33 1986 Date-Received: Fri, 18-Apr-86 20:59:00 EST Sender: news@brl-smoke.ARPA Lines: 55 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);