[Patch] Java: Prepare for %q, %< and %> in diagnostic messages
Ranjit Mathew
rmathew@gmail.com
Mon Oct 4 18:13:00 GMT 2004
Hi,
This patch is a followup to the conversation in:
http://gcc.gnu.org/ml/java/2004-09/threads.html#00143
To summarise, the Java front-end uses vsprintf() to
format messages before showing them as
warnings/errors and it seemed non-trivial to convert
it to the new quoting mechanism.
What I have done here is to use the pretty-printer function
pp_format_text() and the global diagnostic context
(global_dc) instead of vsprintf(), so that we can use the
new quoting mechanism. I tested this with a few
warning and error messages.
Tested on i686-pc-linux-gnu.
Ok for mainline?
Thanks,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pp.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041004/d11146c3/attachment.txt>
More information about the Java-patches
mailing list