#
ce7279d8 |
| 21-May-2024 |
jsg <jsg@openbsd.org> |
remove prototypes with no matching function and externs with no var partly checked by millert@
|
#
d2d86e25 |
| 15-Jun-2017 |
bcallah <bcallah@openbsd.org> |
Add -E flag (make warnings fatal), following the behavior of GNU m4 1.4.9+ Help and direction millert@ espie@ anton@ deraadt@
ok espie@
|
#
e2ff9f51 |
| 12-May-2014 |
espie <espie@openbsd.org> |
adjust to ohash being in libutil now, and to the interface changes. fix potential integer overflows in memory allocation (mostly for pedagogical purposes, these are unlikely to overflow in practice)
adjust to ohash being in libutil now, and to the interface changes. 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.
show more ...
|
#
c608d5f4 |
| 28-Apr-2014 |
espie <espie@openbsd.org> |
check for integer overflows in custom allocs, okay jca@
|
#
a45fdd0c |
| 12-Apr-2012 |
espie <espie@openbsd.org> |
new m4 -g stuff: - 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@
|
#
7de0d877 |
| 27-Sep-2011 |
espie <espie@openbsd.org> |
zap dead stuff from Michael W. Bombardieri
|
#
c17ca14e |
| 07-Sep-2010 |
marco <marco@openbsd.org> |
Remove stray spaces. No code change.
|
#
092f48df |
| 14-Oct-2009 |
sthen <sthen@openbsd.org> |
Support the -P option from gnu m4, which prefixes builtins with the string m4_. Feedback from jmc@, Tobias Ulmer, Matthew Dempsky - thanks! ok espie@
|
#
829f43f3 |
| 21-Aug-2008 |
espie <espie@openbsd.org> |
use unsigned char for buffers, allow differentiating between EOF and y".
okay otto@
|
#
8008022c |
| 16-Aug-2008 |
espie <espie@openbsd.org> |
not yet, committed too much
|
#
456f9fcb |
| 16-Aug-2008 |
espie <espie@openbsd.org> |
argument parsing should only skip spaces outside of parenthesis. Inside matching parenthesis, keep spaces as is (use chrsave instead of pbstr, since there's no way it can be a further macro expansion
argument parsing should only skip spaces outside of parenthesis. 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@
show more ...
|
#
09d1584f |
| 20-Mar-2006 |
espie <espie@openbsd.org> |
add limited support for format builtin in gnu-m4 mode, because I'm fed up of patching it away in various autoconf derivatives.
okay miod@
|
#
75ebbed7 |
| 20-Mar-2006 |
espie <espie@openbsd.org> |
report function m4errx, that shows app-specific data (filename/linenumber) before the error message. Use it to simplify code.
okay miod@
|
#
0b7a013e |
| 20-Jan-2006 |
espie <espie@openbsd.org> |
use stdint.h where appropriate. okay millert@
|
#
739ce124 |
| 06-Sep-2005 |
espie <espie@openbsd.org> |
finally make our m4 SusV3-compliant.
- 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 i
finally make our m4 SusV3-compliant.
- 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@
show more ...
|
#
e79fa687 |
| 29-May-2005 |
espie <espie@openbsd.org> |
fix a few minor compatibility issues. - 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
fix a few minor compatibility issues. - 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.
show more ...
|
#
ad459a23 |
| 02-Mar-2005 |
espie <espie@openbsd.org> |
let m4wrap handle multiple wraps, both in normal and gnu-mode. based on Noah Misch's bug report. okay otto, jmc.
|
#
f6169a2c |
| 17-Nov-2003 |
espie <espie@openbsd.org> |
Modify xalloc so that it also takes err(3)-like arguments. Write an xrealloc wrapper that works the same way, and use it as well.
People who feel like it may want to add more explicit error messages
Modify xalloc so that it also takes err(3)-like arguments. Write an xrealloc wrapper that works the same way, and use it as well.
People who feel like it may want to add more explicit error messages to all the places m4 can fail allocating memory...
okay tedu@
show more ...
|
#
4bc640fd |
| 30-Jun-2003 |
espie <espie@openbsd.org> |
Fold trace status into the single hash table that's left. Inline some macros/functions for speed. So, this achieves the goal of one single lookup for macro/trace status, which does speed up m4 in par
Fold trace status into the single hash table that's left. Inline some macros/functions for speed. So, this achieves the goal of one single lookup for macro/trace status, which does speed up m4 in partial tracing situations somewhat. This does also speed up m4 in large pushdef situations, since it no longer has to lookup large chains of macros.
okay millert@
show more ...
|
#
7888c33a |
| 30-Jun-2003 |
espie <espie@openbsd.org> |
add a flag for each macro name that records built-in status. Fold built-in lookup into normal lookup. okay millert@
|
#
ec8803d5 |
| 30-Jun-2003 |
espie <espie@openbsd.org> |
replace old hash structure with open hashing. make the stack structure of macro definitions explicit. okay millert@
|
#
dde05c5f |
| 30-Jun-2003 |
espie <espie@openbsd.org> |
Make the trace status of a macro an actual argument that gets pushed in the frame for the macro expansion.
(This will allow one single lookup to grab the macro definition and the trace status)
okay
Make the trace status of a macro an actual argument that gets pushed in the frame for the macro expansion.
(This will allow one single lookup to grab the macro definition and the trace status)
okay millert@
show more ...
|
#
3509e8ff |
| 30-Jun-2003 |
espie <espie@openbsd.org> |
clean up internal lookup interface: define an interface with explicit define/pushdef/popdef... and use it. That way, most details of the hashtable are no longer visible.
okay millert@
|
#
5ddad5cc |
| 18-Jun-2003 |
espie <espie@openbsd.org> |
- store builtin name as definition for builtin macros. this removes the need for code->name conversion, in exchange for systematically testing the definition type, since we can no longer rely on the
- store builtin name as definition for builtin macros. this removes the need for code->name conversion, in exchange for systematically testing the definition type, since we can no longer rely on the defn being NULL.
- commonnalize the builtin-detection code, so that we can use it for pushdef as well with define, so that pushdef handles builtins correctly as well.
okay fries@, millert@.
show more ...
|
#
3ed6d6dc |
| 12-Jun-2003 |
espie <espie@openbsd.org> |
switch from linked list to hash table for traced macros. speeds up recent autoconf somewhat, since it traces a large set of individual macro.
(more rework of m4 internal interfaces to unify lookup t
switch from linked list to hash table for traced macros. speeds up recent autoconf somewhat, since it traces a large set of individual macro.
(more rework of m4 internal interfaces to unify lookup tables in order)
okay fries@
show more ...
|