[PATCH] Fix Score bugs.

ligang@sunnorth.com.cn ligang@sunnorth.com.cn
Fri Jan 19 03:42:00 GMT 2007
"H. J. Lu" <hjl@lucon.org> wrote on 2007-01-19 10:48:15:

> On Fri, Jan 19, 2007 at 09:44:46AM +0800, ligang@sunnorth.com.cn wrote:
> > Hi, H.J.,
> > 
> > 
> > "H. J. Lu" <hjl@lucon.org> wrote on 2007-01-18 21:58:08:
> > 
> > > On Thu, Jan 18, 2007 at 06:37:57PM +0800, ligang@sunnorth.com.cn 
wrote:
> > > > @@ -2395,7 +2396,7 @@ append_insn (char *str, bfd_boolean gen_
> > > >    if (inst.error)
> > > >      {
> > > >        retval = (int) FAIL;
> > > > -      as_bad ("%s -- `%s'", inst.error, inst.str);
> > > > +      as_bad (_("%s -- `%s'"), inst.error, inst.str);
> > > 
> > > _() isn't needed here.

Here, error message will be issued.
Why _() is not needed?
 
> > > >        inst.error = NULL;
> > > >      }
> > > > 
> > > > @@ -2437,7 +2438,7 @@ do16_mv_rdrs (char *str)
> > > >              {
> > > >                char append_str[MAX_LITERAL_POOL_SIZE];
> > > > 
> > > > -              sprintf (append_str, "mlfh! %s", backupstr);
> > > > +              sprintf (append_str, _("mlfh! %s"), backupstr);
> > > 
> > > I don't think _() is needed for mnemonics. Please fix them.
> > 
> > In fact, I am a little confused about How to use _().
> > What case is _() needed, and what case not needed? 
> > 
> 
> You use _() on const strings which need translation. How do you
> translate mnemonics like mlfh?
 
Would you please tell me more information about _() and translation?

 
> H.J.



More information about the Binutils mailing list