aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/java-tree.h
diff options
context:
space:
mode:
authorRanjit Mathew <rmathew@hotmail.com>2004-10-05 17:07:14 +0000
committerRanjit Mathew <rmathew@gcc.gnu.org>2004-10-05 17:07:14 +0000
commit5544148e928e9fb556792281b5a856f89d265d77 (patch)
tree8e39e022d3dc1848c313c01830d01d75c059c4b1 /gcc/java/java-tree.h
parent73407061a1bd7debdc883bd1cd1addc7dd5c06f6 (diff)
downloadgcc-5544148e928e9fb556792281b5a856f89d265d77.zip
gcc-5544148e928e9fb556792281b5a856f89d265d77.tar.gz
gcc-5544148e928e9fb556792281b5a856f89d265d77.tar.bz2
Prepare for %q, %< and %> in diagnostic message strings.
* java-tree.h (parse_error_context): remove ATTRIBUTE_PRINTF_2. Name second parameter 'msgid'. * parse.y: Additionally include pretty-print.h and diagnostic.h. (issue_warning_error_from_context): Use pretty-printer functions instead of vsprintf for constructing formatted messages. Rename parameter 'msg' to 'msgid'. (parse_error_context): Rename parameter 'msg' to 'msgid'. (parse_warning_context): Likewise. From-SVN: r88562
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r--gcc/java/java-tree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index 991eb03..a43bc2e 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -1247,8 +1247,7 @@ extern tree emit_symbol_table (tree, tree, tree, tree, tree);
extern void lang_init_source (int);
extern void write_classfile (tree);
extern char *print_int_node (tree);
-extern void parse_error_context (tree cl, const char *, ...)
- ATTRIBUTE_PRINTF_2;
+extern void parse_error_context (tree cl, const char *msgid, ...);
extern void finish_class (void);
extern void java_layout_seen_class_methods (void);
extern void check_for_initialization (tree, tree);