This is the mail archive of the java@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]

Quoting In Error/Warning Messages for Java


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/


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