[net.bugs] minor problems with pathalias

rick@seismo.UUCP (Rick Adams) (08/04/84)

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