minor problems with pathalias

Rick Adams rick at seismo.UUCP
Sat Aug 4 10:17:05 AEST 1984


I ran into a few minor problems with Steve Bellovin's pathalias program.
These didn't show up until I ran it on the data being posted to net.news.map
over the next week.

The first problem is just a speedup. There are at least 2400 sites
in the data, so the hash size should be increased. I changed
the valude of NHASH in def.h to be 3331.

The second problem is really a problem with lex. lex (at least in the
version that comes with 4.2bsd) gets very mad at lines over 200 characters
long. Many of the lines in the new database are well over 200 characters.
I couldn't find a good way to fix this problem short of recompiling lex,
so I settled for the following kludge:

Add the following lines to the Makefile:

lex.c: lex.l
	lex lex.l
	sed "s/define YYLMAX 200/define YYLMAX 512/" lex.yy.c >lex.c
	rm -f lex.yy.c

This changes the maximum line length for the lex input scanner from 200 to 512.


---rick



More information about the Net.bugs mailing list