summaryrefslogtreecommitdiff
path: root/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-04-28 19:09:20 -0400
committerPaul Smith <psmith@gnu.org>2013-04-28 19:09:20 -0400
commitf88eb23b02088e7549c46231d0dfa4ee8d35a365 (patch)
treef4aa139eaa7cd62e90cf918e96e77402b7355f8f /makeint.h
parent441b64335590ab91854b997bec07a9578086d895 (diff)
downloadgunmake-f88eb23b02088e7549c46231d0dfa4ee8d35a365.tar.gz
Ensure error messages are printed with sync'd output.
Enhance the child_error() function so that it will write error output to the child's sync output buffer, if it exists. If it doesn't the output goes to stdout/stderr.
Diffstat (limited to 'makeint.h')
-rw-r--r--makeint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/makeint.h b/makeint.h
index 3b0336e..812ead1 100644
--- a/makeint.h
+++ b/makeint.h
@@ -383,6 +383,10 @@ extern struct rlimit stack_limit;
const char *concat (unsigned int, ...);
+const char *message_s (unsigned int length, int prefix, const char *fmt, ...)
+ __attribute__ ((__format__ (__printf__, 3, 4)));
+const char *error_s (unsigned int length, const gmk_floc *flocp, const char *fmt, ...)
+ __attribute__ ((__format__ (__printf__, 3, 4)));
void message (int prefix, const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
void error (const gmk_floc *flocp, const char *fmt, ...)