Lines Matching refs:params
8 static void report(const char *prefix, const char *err, va_list params)
11 vsnprintf(msg, sizeof(msg), err, params);
21 static NORETURN void die_builtin(const char *err, va_list params)
23 report(" Fatal: ", err, params);
27 static void error_builtin(const char *err, va_list params)
29 report(" Error: ", err, params);
32 static void warn_builtin(const char *warn, va_list params)
34 report(" Warning: ", warn, params);
40 static void (*die_routine)(const char *err, va_list params) NORETURN = die_builtin;
41 static void (*error_routine)(const char *err, va_list params) = error_builtin;
42 static void (*warn_routine)(const char *err, va_list params) = warn_builtin;
44 void set_die_routine(void (*routine)(const char *err, va_list params) NORETURN)
56 va_list params;
58 va_start(params, err);
59 die_routine(err, params);
60 va_end(params);
65 va_list params;
67 va_start(params, err);
68 error_routine(err, params);
69 va_end(params);
75 va_list params;
77 va_start(params, warn);
78 warn_routine(warn, params);
79 va_end(params);