This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Quoting In Error/Warning Messages for Java
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: Per Bothner <per at bothner dot com>, jsm at polyomino dot co dot uk, GCJ <java at gcc dot gnu dot org>
- Date: Sat, 18 Sep 2004 16:36:01 +0530
- Subject: Quoting In Error/Warning Messages for Java
- Reply-to: Ranjit Mathew <rmathew at gmail dot com>
Hi,
I was trying to convert the Java front end errors and warnings
to use the new %<, %> and %q style format specifiers.
I found that most of the errors were being issued via
parse_error_context( ) which (like parse_warning_context) uses
issue_warning_error_from_context( ) (all defined in parse.y)
which directly uses vsprintf() to create the message.
It does not seem straightforward to make it use the normal
GCC diagnostics machinery.
The few remaining errors and warnings seem to be using error( )
and warning( ), so they can be shifted to the new format specifiers.
For the rest, shall I just use 'foo' style quoting instead of
`foo'?
Thanks,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/