summaryrefslogtreecommitdiff
path: root/usr.bin/m4
AgeCommit message (Collapse)Author
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2012-04-12new m4 -g stuff:Marc Espie
- expr(`4**3') - include(`hey I am not there') keeps going. work with Baptiste Daroussin, who had the idea but didn't nail all details right. okay otto@, miod@
2011-11-06improve gm4 compatibility, from Robert Young, thanks !Marc Espie
note that patsubst is non-standard. okay miod@, deraadt@
2011-09-27zap dead stuffMarc Espie
from Michael W. Bombardieri
2011-03-24fix translit() behavior to not be recursive. Fixes autoconf 2.65, matchesMarc Espie
behavior of solaris m4 (e.g., posix). Bug-fix by Nigel Taylor Okay sthen@, todd@. Comment amended per sthen@' suggestion.
2010-10-21more EXIT STATUS bits; from Daniel DickmanJason McIntyre
2010-09-19more wacky macro fixing;Jason McIntyre
2010-09-07Remove stray spaces. No code change.Marco Peereboom
2010-03-25conform to gnum4 AND traditional m4 (solaris) behavior, namely,Marc Espie
translit(`ab',`aa',`cd') -> `cb' (first occurrence matches) okay miod@, sthen@ fixes minor autoconf issues, like HAVE_VOID__ instead of HAVE_VOID_P
2010-03-22add more gnum4 support: regexps do weird things with empty patterns (thisMarc Espie
is required for newer autoconf). fix the tokenizer for gnu extensions, allowing digits out of range is ridiculous. add POSIX2008 mkstemp and document it (also documenting that mktemp is safe, not posix...) tidy the manpage, do extra .Nm m4 -> .Nm. okay otto@, miod@, jmc@
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