NetBSD/usr.bin/m4
martin 481661c73f 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.
2020-07-07 10:40:46 +00:00
..
PSD.doc Rework /usr/share/doc. 2014-07-05 19:22:02 +00:00
TEST
lib
Makefile use strtoi instead of strtonum, since this is a tool. 2015-01-29 19:26:20 +00:00
NOTES
eval.c Avoid an infinite loop caused by a line accidentally dropped 2018-07-30 22:58:09 +00:00
expr.c Use correct printf format for (struct input_file *)->lineno 2019-03-26 23:31:45 +00:00
extern.h Pull up following revision(s) (requested by uwe in ticket #981): 2020-07-07 10:40:46 +00:00
gnum4.c - don't eat the rest of the string when no match in patsubst 2016-01-16 16:59:18 +00:00
look.c Add disabled support for saving and restoring the symbol table. 2016-01-16 17:00:07 +00:00
m4.1 Pull up following revision(s) (requested by uwe in ticket #981): 2020-07-07 10:40:46 +00:00
main.c Pull up following revision(s) (requested by uwe in ticket #981): 2020-07-07 10:40:46 +00:00
mdef.h add most gnu m4 long options 2016-01-16 18:31:29 +00:00
misc.c record all input for fake freeze 2016-01-16 17:01:22 +00:00
parser.y Don't depend on yacc skeleton to include sys/cdefs.h early. 2015-01-04 18:31:09 +00:00
pathnames.h
stdd.h
tokenizer.l
trace.c Pull up following revision(s) (requested by uwe in ticket #981): 2020-07-07 10:40:46 +00:00