]> granicus.if.org Git - nethack/commit
lexer updates
authorPatR <rankin@nethack.org>
Sat, 28 Nov 2015 11:38:03 +0000 (03:38 -0800)
committerPatR <rankin@nethack.org>
Sat, 28 Nov 2015 11:38:03 +0000 (03:38 -0800)
commitc134af7a7762c0c0b2c623f5f674d596e411687c
tree9682b4ead19a1476803fb1d885fd296d4d35b648
parente5e9ca812200038c2fa02135c9a52ae153491900
lexer updates

Bump the number of nodes (%e) specified in lev_comp.l so that the lex
on Solaris doesn't choke.  flex doesn't use those paramters (%e, %p,
and a few others), so this change gets accepted but hasn't been
adequately tested to verify that it solves the problem.

Reformat some of the C code at the end of dgn_comp.l and lev_comp.l;
going through the whole thing isn't worth the effort, particularly
since flex generates such a mess in the rest of the code it produces.

I haven't updated sys/share/*_lex.c and they definitely need it now.
I've got an older version of flex than the one that was used on the
code that's there now, and the most recent version.  Both of those
produce different code--the stuff that's there now has been through
more testing so whatever version was used for it ought to be used for
new editions.
util/dgn_comp.l
util/lev_comp.l