mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
cp-tree.h (cp_cpp_error), [...]): Take va_list* parameter.
gcc/cp: * cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list* parameter. libcpp: * include/cpplib.h (struct cpp_callbacks): Make error take va_list* parameter. * errors.c (cpp_error): Update call to callback. From-SVN: r106466
This commit is contained in:
committed by
Joseph Myers
parent
651ed94280
commit
a63607ed43
@@ -1,3 +1,9 @@
|
||||
2005-11-04 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
* include/cpplib.h (struct cpp_callbacks): Make error take
|
||||
va_list* parameter.
|
||||
* errors.c (cpp_error): Update call to callback.
|
||||
|
||||
2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR preprocessor/22042
|
||||
|
||||
@@ -141,7 +141,7 @@ cpp_error (cpp_reader * pfile, int level, const char *msgid, ...)
|
||||
va_start (ap, msgid);
|
||||
|
||||
if (CPP_OPTION (pfile, client_diagnostic))
|
||||
pfile->cb.error (pfile, level, _(msgid), ap);
|
||||
pfile->cb.error (pfile, level, _(msgid), &ap);
|
||||
else
|
||||
{
|
||||
if (CPP_OPTION (pfile, traditional))
|
||||
|
||||
@@ -473,7 +473,7 @@ struct cpp_callbacks
|
||||
|
||||
/* Called to emit a diagnostic if client_diagnostic option is true.
|
||||
This callback receives the translated message. */
|
||||
void (*error) (cpp_reader *, int, const char *, va_list)
|
||||
void (*error) (cpp_reader *, int, const char *, va_list *)
|
||||
ATTRIBUTE_PRINTF(3,0);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user