]> granicus.if.org Git - nethack/commit
lev_comp,dgn_comp vs CRLF style input
authornethack.rankin <nethack.rankin>
Thu, 28 Mar 2002 01:37:39 +0000 (01:37 +0000)
committernethack.rankin <nethack.rankin>
Thu, 28 Mar 2002 01:37:39 +0000 (01:37 +0000)
commite835e2f420b6cd341b0e8d622e6d9515d03a0776
tree5488012937e060837e8cd1404afa7042eb382561
parent63e0b1ec2df4eb00eaaba5d1ec1ac13e13a2fdf3
lev_comp,dgn_comp vs CRLF style input

     Allow the special level and dungeon compilers to handle input
files which have CR+LF delimited lines.  Apparently Cygwin doesn't
convert MSDOS style line ends into newlines the way stdio should
do for text I/O.  The resulting unexpected CR characters result in
syntax errors.

     And explicitly using '\n' on both the lex and yacc sides of
MAP processing allows removal of the old NEWLINE hack for Mac MPW.
It won't matter what numeric value that character escape sequence
has internally.
doc/fixes34.1
sys/share/dgn_lex.c
sys/share/lev_lex.c
util/dgn_comp.l
util/lev_comp.l
util/lev_main.c