This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Quoting In Error/Warning Messages for Java
- From: Per Bothner <per at bothner dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: jsm at polyomino dot co dot uk, GCJ <java at gcc dot gnu dot org>
- Date: Sat, 18 Sep 2004 09:01:53 -0700
- Subject: Re: Quoting In Error/Warning Messages for Java
- References: <39399b9d040918040610097ca3@mail.gmail.com>
Ranjit Mathew wrote:
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.
The reason for that is probably to be able to emit "caret" diagnostics:
error messages including column numbers and echoing the
erroneous line. Hopefully soon the USE_MAPPED_LOCATION patch
will be in, which will remove/reduce the need for the special
error handling.
For the rest, shall I just use 'foo' style quoting instead of
`foo'?
How about for now using %<...%> and writing a 5-line patch to
convert %<...%> to '...'. Then we can use the new %<...%>
immediately.
--
--Per Bothner
per@bothner.com http://per.bothner.com/