summaryrefslogtreecommitdiff
path: root/output.c
Commit message (Collapse)AuthorAgeFilesLines
* Update Copyright statements for 2014.Paul Smith2014-09-301-1/+1
|
* Enhance/fix VMS exit code handling.Hartmut Becker2014-09-071-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.
* * output.c (pump_from_tmp): [SV 42378] Flush the output file regularly.Piotr Jaroszynski2014-07-071-1/+5
| | | | Copyright-paperwork-exempt: yes
* * output.c: Ensure space for final nul byte in fmtbuf.Ray Donnelly2014-02-081-5/+5
| | | | Copyright-paperwork-exempt: yes
* [SV 40361] Don't use vsnprintf(), which is an ISO C99 function.Paul Smith2013-11-231-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.
* Fix the MSVC build on MS-Windows.Eli Zaretskii2013-10-181-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>.
* Final fixes for obscure output-sync errors.Paul Smith2013-09-301-15/+15
|
* Fixes for building with MSVC.Paul Smith2013-09-301-1/+5
|
* Add VMS port updates from Hartmut Becker.Paul Smith2013-09-221-2/+5
|
* Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNCPaul Smith2013-09-211-6/+10
|
* Don't write "Entering" every time we re-exec for remake makefiles.Paul Smith2013-09-211-4/+3
|
* Avoid compiler warnings in output.c on MS-Windows.Eli Zaretskii2013-09-161-0/+5
| | | | | output.c [WINDOWS32]: Include windows.h and sub_proc.h, to avoid compiler warnings for CLOSE_ON_EXEC.
* [SV 35248] Add --debug "n" flag to turn off current debug options.Paul Smith2013-09-141-1/+1
|
* [SV 33134] Don't try to close stdout when it's already closed.Paul Smith2013-09-141-2/+54
|
* Support the -Orecurse option properly.Paul Smith2013-09-141-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.
* Enhance the output sync mode.Paul Smith2013-09-121-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.