summaryrefslogtreecommitdiff
path: root/usr.bin/m4/main.c
AgeCommit message (Collapse)Author
1998-06-02no, the code is correct as it is, and you did the wrong thing based on a gcc ↵Theo de Raadt
warning
1998-06-02shut up -WallMichael Shalayeff
1998-04-25-WallTodd C. Miller
1997-12-20Simplify some push-back code (e.g. for left and right quotes) so thatTheo de Raadt
it uses pbstr() instead of doing the characters individually (in reverse order) with putback(); cgd
1997-12-10cgd: add a typedef which describes elements in the push-back buffer. MakeTheo de Raadt
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.)
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-08-22__OpenBSD__Theo de Raadt
1996-06-26rcsidTheo de Raadt
1996-01-15from netbsd:Theo de Raadt
Handle multichar comment and quote delimiters (up to 5 characters, per the manual page). Takes care of PR#485.
1995-10-18initial import of NetBSD treeTheo de Raadt