summaryrefslogtreecommitdiff
path: root/variable.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-11-23 22:23:52 -0500
committerPaul Smith <psmith@gnu.org>2013-11-23 22:23:52 -0500
commit175653a9c22fd3bc8a354401db43a5e93099f079 (patch)
treed6acd1705fe25873b43fa7d16b736e44b6191ab7 /variable.h
parentfdffa8c8e0cb033ce00ba6968b269ac55320ee17 (diff)
downloadmake-175653a9c22fd3bc8a354401db43a5e93099f079.tar.gz
[SV 40361] Don't use vsnprintf(), which is an ISO C99 function.
* 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.
Diffstat (limited to 'variable.h')
-rw-r--r--variable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/variable.h b/variable.h
index dec75b1c..eda2493f 100644
--- a/variable.h
+++ b/variable.h
@@ -219,10 +219,10 @@ void undefine_variable_in_set (const char *name, unsigned int length,
/* Warn that NAME is an undefined variable. */
#define warn_undefined(n,l) do{\
- if (warn_undefined_variables_flag) \
- error (reading_file, \
+ if (warn_undefined_variables_flag) \
+ error (reading_file, (l), \
_("warning: undefined variable '%.*s'"), \
- (int)(l), (n)); \
+ (int)(l), (n)); \
}while(0)
char **target_environment (struct file *file);