Home | History | Annotate | Download | only in m4
History log of /src/usr.bin/m4/extern.h
RevisionDateAuthorComments
 1.20  25-Jun-2020  uwe Fix --error-output to be more like GNU m4.

GNU m4 --error-output is the same as -o despite the name. It does NOT
affect warnings, error messages, and 'errprint' output so drop the
misguided bit of code that tried to freopen stderr without closing it
on failure. Drop -e (which was our local invention) and make merge
--error-output with -o so that both set traceout. Make trace_file()
preserve the old traceout on error and return error status so that the
caller can emit appropriate warning.

Do not yet support disabling tracing with an empty name, the rest of
the code is not ready, we don't do -o positionally and we don't have
`debugfile'.
 1.19  16-Jan-2016  christos branches: 1.19.18;
add nesting_limit
 1.18  16-Jan-2016  christos - declarations for real/fake freeze
- add new flags
 1.17  29-Jan-2015  christos delete extern
 1.16  15-Mar-2012  joerg Add __printflike attribution to use vprintf and friends with an argument
as format string.
 1.15  06-Sep-2011  joerg branches: 1.15.2;
Move usage and onintr to make them static. Add __dead as needed.
 1.14  26-Oct-2009  christos fix prototype
 1.13  26-Oct-2009  christos resolve conflicts.
 1.12  27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.11  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.10  31-Jan-2002  tv Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
 1.9  21-Jan-2002  tv Make compilable from src/tools/m4 on non-NetBSD hosts.
 1.8  14-Nov-2001  tv Get first getopt string right; provide better usage message.
 1.7  14-Nov-2001  tv Pull in various changes from OpenBSD, most from Marc Espie, including:
* Provide some GNUisms as extensions.
* Provide dynamically growable string space.
* Make define(defn(foo)) work correctly for builtins.
(The current version is supposed to be capable of satisfying autoconf.)

All still relevant NetBSD changes have been preserved in this version, and
formatting and style fixes have been applied in various places.

Thanks to Masao Uebayashi <uebayasi@soum.co.jp> for pointing this out.
 1.6  29-Dec-1997  cgd fix an inconsistency between signed- and unsigned-char machines:
make sure that pushed-back 0xff character isn't accidentally
interpreted as an EOF because of sign extension when chars were being
assigned to pbents. (signed-char machines lost.) To do this, make
putback() and pbstr() operate only on unsigned chars, and add a
putbackeof() function to do the obvious thing when necessary.
 1.5  02-Dec-1997  cgd add a typedef which describes elements in the push-back buffer. Make
that typedef 'short'. 'char' (which was previously used) because char
may be unsigned and ((char)EOF) != EOF if that is the case. That was
causing the (char)EOF (0xff) pushed back in main to be interepreted as
a character, and, in some cases, to be written to the output. 'short'
was used rather than 'signed char' because if the latter is used,
0xff characters in the input would confuse m4. (No point in introducing
(more?) 8-bit lossage.)
 1.4  19-Oct-1997  lukem branches: 1.4.2;
WARNSify, fix .Nm usage, getopt returns -1 not EOF, deprecate register
 1.3  13-Jan-1996  pk Handle multichar comment and quote delimiters (up to 5 characters, per the
manual page). Takes care of PR#485.
 1.2  28-Sep-1995  tls Sync with 4.4BSD-Lite2
 1.1  19-Jun-1994  glass branches: 1.1.1;
upgrade to 4.4-lite m4. no local changes of note
 1.1.1.2  26-Oct-2009  christos Import new m4 from OpenBSD.
 1.1.1.1  28-Sep-1995  tls imported from 44lite2
 1.4.2.1  29-Jan-1998  mellon Pull up 1.5 and 1.6
 1.15.2.1  17-Apr-2012  yamt sync with head
 1.19.18.1  07-Jul-2020  martin Pull up following revision(s) (requested by uwe in ticket #981):

usr.bin/m4/m4.1: revision 1.28
usr.bin/m4/m4.1: revision 1.29
usr.bin/m4/extern.h: revision 1.20
usr.bin/m4/main.c: revision 1.49
usr.bin/m4/m4.1: revision 1.30
usr.bin/m4/trace.c: revision 1.9
usr.bin/m4/main.c: revision 1.50

Try not to lose error output with --error-output.

Try to avoid the trap we set up ourselves while avoiding freopen(3).
When exit flushes and closes open streams it may close sfp first and
when it comes about to flush and close stderr, the descriptor is
already gone and we lose any buffered error output. This actually
happens on some hosts, breaking --trace output used by autoconf.

Fix --error-output to be more like GNU m4.

GNU m4 --error-output is the same as -o despite the name. It does NOT
affect warnings, error messages, and 'errprint' output so drop the
misguided bit of code that tried to freopen stderr without closing it
on failure. Drop -e (which was our local invention) and make merge
--error-output with -o so that both set traceout. Make trace_file()
preserve the old traceout on error and return error status so that the
caller can emit appropriate warning.

Do not yet support disabling tracing with an empty name, the rest of
the code is not ready, we don't do -o positionally and we don't have
`debugfile'.

Fix --error-output to be more like GNU m4. It's a long version of -o.

Bump date for previous.

Use a date that is actually a real date.

RSS XML Feed