summaryrefslogtreecommitdiff
path: root/usr.bin/m4
AgeCommit message (Collapse)Author
2009-10-14whitespace; from deraadt@Stuart Henderson
2009-10-14Support the -P option from gnu m4, which prefixes builtins with theStuart Henderson
string m4_. Feedback from jmc@, Tobias Ulmer, Matthew Dempsky - thanks! ok espie@
2009-06-26undefine() leaves the hash entry for the macro (for use by builtin()) andPhilip Guenthe
only deletes the definition; macro_for_all needs to skip those to keep dumpdef() from segving ok and regress test by espie (thanks!)
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-08-22kill trailing whitespace;Jason McIntyre
2008-08-21Document new gnu extensions, okay jmc@, otto@Marc Espie
2008-08-21in gnu-m4 mode, allow definition of the empty macro (yes, autoconf 2.62Marc Espie
actually uses this, bleh) okay otto@
2008-08-21extend format support to cater to recent GNU autoconfMarc Espie
okay otto@, some useful ideas from miod@
2008-08-21gnu extension: 0rN:az for baseN numbers.Marc Espie
okay otto@
2008-08-21use unsigned char for buffers, allow differentiating between EOF and y".Marc Espie
okay otto@
2008-08-16fixMarc Espie
2008-08-16revert eval.cMarc Espie
2008-08-16not yet, committed too muchMarc Espie
2008-08-16argument parsing should only skip spaces outside of parenthesis.Marc Espie
Inside matching parenthesis, keep spaces as is (use chrsave instead of pbstr, since there's no way it can be a further macro expansion). Fixes a long-standing issue with autoconf ( --option -> --option), matches other m4 than gnum4 okay millert@, fries@
2008-08-16be more liberal in include handling, namely we only error out if it'sMarc Espie
the end of the last included file AND we still have a macro to expand. autoconf uses this in wine, and it turns out other m4 also do things that way (not only gnu m4). okay fries@, millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2007-05-05Localize variables and don't do anything after exit().Ray Lai
OK espie@, moritz@, and jaredy@.
2006-12-12tweak previous, and update usage(); ok grunkJason McIntyre
2006-12-12mention the fact that m4 also accepts files via cmdlineAlexander von Gernler
ok espie@ jmc@
2006-08-29fix a typo. it's esyscmd, not esycmd.Marc Balmer
ok jmc
2006-03-24oops, noticed by David Hill.Marc Espie
2006-03-23kill whitespace at eol;Jason McIntyre
2006-03-23formatting fixesMarc Espie
2006-03-23... and remove extra test that is no longer needed.Marc Espie
2006-03-23simply set up format only when we see -g.Marc Espie
2006-03-23explicit cast on strtoul, classical const gotcha.Marc Espie
2006-03-23back-out format for now, need to be active ONLY in GNU-m4 mode.Marc Espie
2006-03-20add limited support for format builtin in gnu-m4 mode, because I'm fedMarc Espie
up of patching it away in various autoconf derivatives. okay miod@
2006-03-20report function m4errx, that shows app-specific data (filename/linenumber)Marc Espie
before the error message. Use it to simplify code. okay miod@
2006-01-20use stdint.h where appropriate. okay millert@Marc Espie
2005-09-30deploy .An -nosplit; ok jmcJared Yanovich
2005-09-07tweaks;Jason McIntyre
ok espie@
2005-09-07sort options and sync usage()Jason McIntyre
2005-09-06less diff in -g/not -g.Marc Espie
mentioned by otto@
2005-09-06finally make our m4 SusV3-compliant.Marc Espie
- changecom and changequote have a simple definition (that matches gnu-m4, coincidentally, so we no longer need two distinct modes for these) - off-by-one bug in -s, this finally works. - reorder main parser loop, so that we can use alphabetic constructs in quotes/comments. - rename putback to pushback, this matches comments, and makes more sense. - more uniform (and updated) description of changequote/changecom. - new, systematic regression tests of comments/quotes. - framework to test -s: one perl script to reconstitute `full' files with all line numbers, so that we can verify the output without needing a complete match. okay otto@, fries@
2005-08-06zap rcsid. It's not ramdisk, but they still take space.Marc Espie
2005-05-29fix a few minor compatibility issues.Marc Espie
- let eval() handle a base and number of digits, like it's advertized to. - in gnu-mode, undivert can take file names as arguments. - in gnu-mode, map can handle reversed charsets. Suggestions and okay otto@, mostly prompted by looking at the regress tests in newer gnu-m4.
2005-05-21more heuristics to coerce gnu-m4 mode to work like we wish: if a ^ or $Marc Espie
is seen in the regexp, this means we need to take new lines into account. Otherwise, we don't.
2005-05-17gnu m4 mode does not heed end of lines.Marc Espie
2005-03-02let m4wrap handle multiple wraps, both in normal and gnu-mode.Marc Espie
based on Noah Misch's bug report. okay otto, jmc.
2005-01-31use fflush(stdout) before system() so we won't miss anyRobert Nagy
wanted output; from Andreas Burmester <buster_hh@gmx.net> ok espie@
2005-01-21more portable code, stderr is not necessarily a constant.Marc Espie
2005-01-20remove unused variables, extra declarations.Marc Espie
2004-11-07twiddle + at start of regexp.Marc Espie
2004-06-22Do not generate floating point exception followed by a core dumpOtto Moerbeek
on div or mod by zero, print error message instead. ok espie@
2004-05-25kill whitespace;Jason McIntyre
2004-05-25name parameters for built-ins, so that we get less awkward phrasing.Marc Espie
Leave out the changed description of changecom/changequote for later.
2004-05-12all numbers as one composite regexp.Marc Espie
2004-05-12replace hand-made expr() parser with a lex/yacc affair that is shorter,Marc Espie
easier to understand and extend, and better conformant to Single Unix 3 (especially doing all arithmetic as int32_t). Comments and approval millert@, otto@, fries@