Prepare for %q, %< and %> in diagnostic message strings.
authorRanjit Mathew <rmathew@hotmail.com>
Tue, 5 Oct 2004 17:07:14 +0000 (17:07 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Tue, 5 Oct 2004 17:07:14 +0000 (17:07 +0000)
commit5544148e928e9fb556792281b5a856f89d265d77
tree8e39e022d3dc1848c313c01830d01d75c059c4b1
parent73407061a1bd7debdc883bd1cd1addc7dd5c06f6
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
gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/parse.y