This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Use New Quoting Style in Diagnostics (2/n)


On Thu, 7 Oct 2004, Per Bothner wrote:

> Ranjit Mathew wrote:
> 
> > -      sprintf (buffer, " with `%s'",
> > +      sprintf (buffer, " with '%s'",
> 
> > -	  sprintf (buffer, "\n  which inherits from `%s' (%s:%d)",
> > +	  sprintf (buffer, "\n  which inherits from '%s' (%s:%d)",
> 
> > -      fprintf (stderr, "In class `%s':\n",
> > +      fprintf (stderr, "In class '%s':\n",
> 
> Should these use %qs?  Or do those cases not go through the
> necessary machinary?  The lhd_print_error_function in
> langhooks.c uses $qs.

The lhd_print_error_function uses pp_printf - these use plain 
sprintf/fprintf.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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