summaryrefslogtreecommitdiff
path: root/output.c
AgeCommit message (Collapse)AuthorFilesLines
2014-09-07Enhance/fix VMS exit code handling.Hartmut Becker1-2/+2
* commands.c, function.c, hash.c, job.c, main.c, output.c: use MAKE exit codes. * makeint.h: encode make exit codes so that they are VMS compatible. * job.c: check child exit code for VMS style exit codes. * vmsjobs.c: save and return VMS style exit code.
2014-07-07* output.c (pump_from_tmp): [SV 42378] Flush the output file regularly.Piotr Jaroszynski1-1/+5
Copyright-paperwork-exempt: yes
2014-02-08* output.c: Ensure space for final nul byte in fmtbuf.Ray Donnelly1-5/+5
Copyright-paperwork-exempt: yes
2013-11-23[SV 40361] Don't use vsnprintf(), which is an ISO C99 function.Paul Smith1-98/+55
* output.c (error, fatal, message): Take an extra argument specifying how many bytes are used by the formatted arguments. (get_buffer): New function that allocates the requested buffer size. Remove msc_vsnprintf(), vfmtconcat(), and fmtconcat() as unneeded. * makeint.h: Declare various helper macros for generating output. * *.c: Change all error(), fatal(), message() calls to use the macros, or pass the extra length argument directly.
2013-10-18Fix the MSVC build on MS-Windows.Eli Zaretskii1-1/+1
output.c (vsnprintf) [_MSC_VER]: Define, instead of defining snprintf, which isn't used. Reported by Christian Boos <cboos@edgewall.org>. NMakefile.template (OBJS): Add load.obj and posixfcn.obj. ($(OUTDIR)/pathstuff.obj): New dependency. Suggested by Christian Boos <cboos@edgewall.org>.
2013-09-30Final fixes for obscure output-sync errors.Paul Smith1-15/+15
2013-09-30Fixes for building with MSVC.Paul Smith1-1/+5
2013-09-22Add VMS port updates from Hartmut Becker.Paul Smith1-2/+5
2013-09-21Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNCPaul Smith1-6/+10
2013-09-21Don't write "Entering" every time we re-exec for remake makefiles.Paul Smith1-4/+3
2013-09-16Avoid compiler warnings in output.c on MS-Windows.Eli Zaretskii1-0/+5
output.c [WINDOWS32]: Include windows.h and sub_proc.h, to avoid compiler warnings for CLOSE_ON_EXEC.
2013-09-14[SV 35248] Add --debug "n" flag to turn off current debug options.Paul Smith1-1/+1
2013-09-14[SV 33134] Don't try to close stdout when it's already closed.Paul Smith1-2/+54
2013-09-14Support the -Orecurse option properly.Paul Smith1-84/+178
In this mode we still collect all the output from a given target and dump it at once. However we don't treat recursive lines any differently from non-recursive lines. Also we don't print enter/leave messages after every dump. However we do ensure that we always print them once to stdout, so the parent make will collect it properly.
2013-09-12Enhance the output sync mode.Paul Smith1-0/+601
Create a new file, output.c, and collect functions that generate output there. We introduce a new global context specifying where output should go (to stdout or to a sync file), and the lowest level output generator chooses where to write output based on that context. This allows us to set the context globally, and all operations that write output (including functions like $(info ...) etc.) will use it. Removed the "--trace=dir" capability. It was too confusing. If you have directory tracking enabled then output sync will print the enter/leave message for each synchronized block. If you don't want that, disable directory tracking.