This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Java: Prepare for %q, %< and %> in diagnostic messages


>   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.

I have committed the attached patch taking Zack's
suggestion also into account.

Ranjit.

Attachment: pp.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]