Age | Commit message (Collapse) | Author |
|
on div or mod by zero, print error message instead.
ok espie@
|
|
|
|
Leave out the changed description of changecom/changequote for later.
|
|
|
|
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@
|
|
ok espie@ jmc@
|
|
remove explicit paper.ps target, since it's already built by default;
(this paper not installed yet)
|
|
|
|
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@
|
|
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@
|
|
Fold built-in lookup into normal lookup.
okay millert@
|
|
make the stack structure of macro definitions explicit.
okay millert@
|
|
in the frame for the macro expansion.
(This will allow one single lookup to grab the macro definition and
the trace status)
okay millert@
|
|
define an interface with explicit define/pushdef/popdef... and use it.
That way, most details of the hashtable are no longer visible.
okay millert@
|
|
how that varies from an m4 implementation to another.
ok jmc@
|
|
- escape ampersand
- missing full stop
fixes from wiz@netbsd
|
|
|
|
|
|
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@.
|
|
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@
|
|
|
|
- COMPATIBILITY merge
- macro cleanup
- kill whitespace at EOL
- new sentence, new line
ssh pages ok markus@
|
|
okay millert@
|
|
replace any character.
Like gnu-m4 does, and other regexp languages do.
okay fries@
|
|
Okay fries@
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
from NetBSD (Igor Sobrado);
smrsh(8) passed on to sendmail people;
ok millert@
|
|
|
|
these are all Regents of the University of California
|
|
|
|
Make sence.
Spotted by jmc@acn.waw.pl
pvalchev@, millert@
|
|
from jmc@prioris.mini.pw.edu.pl with changes by me
|
|
Triggered by recent FreeBSD changes.
- emits #line directives at every file change (like FreeBSD)
- maintains a synch_lineno variable to verify when the output gets out
of synch with the input, so that it can emit #line to re-synch as well
(unlike FreeBSD)
To do: either handle \end-of-line, or recognize when a macro expansion
is in progress, so that line synch don't perturb cpp on multi-line
expansions.
With this, we should have a fully POSIX-compliant m4.
ok miod@
|
|
|
|
add -pedantic to flags.
|
|
|
|
|
|
the new flags happen to be no different from those set in <sys.mk>
|
|
single unix.
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
and flush(stdout) on debugging mode, as a vicious coredump can leave you
without info otherwise.
|
|
|
|
Found by fries@, ok deraadt@
|
|
Problem encountered by obecian@.
|
|
|
|
|
|
|
|
|
|
scripts where that level != 1, hard to test otherwise...)
Put a space after comma.
Both these make trace output much closer to gnu-m4 output for debugging
purposes.
|
|
In gnu-m4 mode, pass the real number of arguments to changequote/changecom,
since those distinguish changequote() from changequote.
|