Possible lex bug

Hans van Staveren sater at tjalk.UUCP
Wed Aug 15 23:30:20 AEST 1984


In the directory /usr/lib/lex in the file ncform two copy's of the following
line are to be found:

			if ( (int)yyt > (int)yycrank){

This is on 4.1BSD, but on the original V7 tape the same code is to be found.
Can anyone explain the casts? According to me they are just plain wrong.
On the PDP 11 strange things occurred when the tables were loaded above 32K,
and the effect of this on C-compilers with 2-byte int's and 4-byte pointers
is dramatic.

Has anyone seen the light on this one?
-- 
			Hans van Staveren, Vrije Universiteit Amsterdam
			..!mcvax!vu44!tjalk!sater



More information about the Comp.unix.wizards mailing list