summaryrefslogtreecommitdiff
path: root/usr.bin/m4
AgeCommit message (Collapse)Author
2024-08-18whitespacesTheo de Raadt
2024-05-21remove prototypes with no matching function and externs with no varJonathan Gray
partly checked by millert@
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
amendments to his diff are noted on tech
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2022-07-04somehow, when I created this file, I copied the licence of the other filesMarc Espie
around, but with my name instead... which makes absolutely no sense whatsoever, especially the regents part. replace with ISC licence, much saner. (as noticed by miod@, who else ?)
2022-06-14m4: use ASCII quotes `...' in man page exampleChristian Weisgerber
The m4 syntax specifically requires `...' and not the pretty Unicode quotes that the Sq macro can produce. Use of escape sequences clarified by schwarze@
2022-06-14my email should be @openbsd.org everywhere, and nothing elseMarc Espie
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
2019-06-28mkstemp() returns -1 on failureTheo de Raadt
2017-11-11replace sloppy parsing of numeric values with strtonum (incr, decr, divert)Marc Espie
still use integers, so use the natural bounds for these. POSIX says m4 should error when these use non numeric values, and now they do. okay millert@
2017-10-23ifelse is special, fix argv parsing to avoid segfaultMarc Espie
problem noticed by Matthew Green (netbsd), slightly different fix so that argc counting makes more sense. we might want to warn on wrong number of parameters later, but this is somewhat inconsistent depending on the builtin right now. okay millert@
2017-08-21Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(),Theo de Raadt
in case the parent process was started with a dangling child. This style ensures any potential parent:child interlock isn't disrupted due to the "wrong" child being waited on first. Then the other other childs can safely zombie. ok millert jca brynet
2017-07-09have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediateMarc Espie
files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@
2017-07-04generate the parser directly instead of fucking aroundMarc Espie
2017-06-17Don't need to link with -ll or -ly.Brian Callahan
ok millert@ (who spotted and provided the -ll removal bits)
2017-06-15Add -E flag (make warnings fatal), following the behavior of GNU m4 1.4.9+Brian Callahan
Help and direction millert@ espie@ anton@ deraadt@ ok espie@
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