Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



cgd
Tue Dec  2 14:34:07 PST 1997
Update of /cvsroot/src/usr.bin/m4
In directory netbsd1:/var/slash-tmp/cvs-serv19787

Modified Files:
        extern.h main.c mdef.h misc.c 
Log Message:
add a typedef which describes elements in the push-back buffer.  Make
that typedef 'short'.  'char' (which was previously used) because char
may be unsigned and ((char)EOF) != EOF if that is the case.  That was
causing the (char)EOF (0xff) pushed back in main to be interepreted as
a character, and, in some cases, to be written to the output.  'short'
was used rather than 'signed char' because if the latter is used,
0xff characters in the input would confuse m4.  (No point in introducing
(more?) 8-bit lossage.)




Home | Main Index | Thread Index | Old Index