aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-11-04 01:16:32 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2005-11-04 01:16:32 +0000
commita63607ed439ce64133d0c1927e8ef7eccd013539 (patch)
tree771a18a7e0143049cc335c7595e497a28f9625ec /libcpp
parent651ed94280e4b88bf4fb69be0451cf2766ec9ab0 (diff)
downloadgcc-a63607ed439ce64133d0c1927e8ef7eccd013539.zip
gcc-a63607ed439ce64133d0c1927e8ef7eccd013539.tar.gz
gcc-a63607ed439ce64133d0c1927e8ef7eccd013539.tar.bz2
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
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog6
-rw-r--r--libcpp/errors.c2
-rw-r--r--libcpp/include/cpplib.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 3a489b4..422203c 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -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
diff --git a/libcpp/errors.c b/libcpp/errors.c
index 554d9e3..97de490 100644
--- a/libcpp/errors.c
+++ b/libcpp/errors.c
@@ -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))
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index c5d8e85..adae96b 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -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);
};