bug in man page of lex(1)

Esmond Pitt ejp at ausmelb.oz
Fri Nov 18 13:28:52 AEST 1988


In article <1953 at vedge.UUCP> lai at vedge.UUCP (David Lai) writes:
< The lex(1) man page says:
< 	...yyless(p) ... p should be between yytext and yytext+yyleng
< however the lex users manual says:
< 	yyless(n), n=number of chars to retain in yytext
< The bahaviour of lex is that of the latter.

When I last unpicked yyless() (System III), it actually handled both
cases, by figuring out at run-time whether it had received a pointer (
yytext <= p <= yyleng), otherwise treating p as an integer. Yuck.  This
may have been extreme friendliness on the part of System III, or
someone at Zilog.

-- 
Esmond Pitt, Austec International Ltd
...!uunet.UU.NET!munnari!ausmelb!ejp,ejp at ausmelb.oz



More information about the Comp.bugs.sys5 mailing list