summaryrefslogtreecommitdiff
path: root/usr.bin/m4
AgeCommit message (Collapse)Author
2015-12-07Yet another missed ferror callMarc Espie
2015-11-03There really is no double standard. Treat m4 just like openssl, byTheo de Raadt
removing VMS and MSDOS support. ok espie
2015-11-01pledge m4. tested by me.Marc Espie
reordered to match the manpage, and added tmppath as an annotation prompted by deraadt@
2015-09-14Avoid .Ns right after .Pf, it's pointless.Ingo Schwarze
In some cases, do additional cleanup in the immediate vicinity.
2015-04-29Add missing #include <stdint.h> for SIZE_MAXTodd C. Miller
2015-04-25add check for overflow while doubling (very unlikely in practice, but stillMarc Espie
better style code). Problem noticed by deraadt@ in m4. okay doug@ deraadt@
2015-03-14Use xstrdup(), from Michael W. BombardieriTodd C. Miller
OK espie@
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-12-21fix test-redef2:Marc Espie
- introduce explicit STORAGE classes for the shadow stack entries - delay freeing definitions if they're in-use, keep them in a simple array. okay millert@
2014-07-11better error handling in mkstemp/unlink/fdopen logic.Marc Espie
from Doug Hogan <doug@acyclic.org> okay miod@
2014-07-10annotate regexp error messages with source string.Marc Espie
okay miod@
2014-05-12adjust to ohash being in libutil now, and to the interface changes.Marc Espie
fix potential integer overflows in memory allocation (mostly for pedagogical purposes, these are unlikely to overflow in practice) move the rest of lst.lib stuff into its own directory.
2014-04-28check for integer overflows in custom allocs, okay jca@Marc Espie
2014-04-14update STANDARDS somewhat, and some macro simplification;Jason McIntyre
ok millert sobrado
2014-01-12expand the "eval" description a little; from wiz@netbsdJason McIntyre
2013-11-20repair signed char vs isdigitTheo de Raadt
ok espie
2013-11-14cleanup up a nest of if/if/elseTheo de Raadt
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