Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/usr.bin/m4



Module Name:    src
Committed By:   martin
Date:           Tue Jul  7 10:40:46 UTC 2020

Modified Files:
        src/usr.bin/m4 [netbsd-9]: extern.h m4.1 main.c trace.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.19.18.1 src/usr.bin/m4/extern.h
cvs rdiff -u -r1.27 -r1.27.18.1 src/usr.bin/m4/m4.1
cvs rdiff -u -r1.48 -r1.48.2.1 src/usr.bin/m4/main.c
cvs rdiff -u -r1.8 -r1.8.34.1 src/usr.bin/m4/trace.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index