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: [C PATCH]: tidy some code


On 27 Nov 2002, Gabriel Dos Reis wrote:

> "Joseph S. Myers" <jsm28@cam.ac.uk> writes:
> 
> | On 26 Nov 2002, Gabriel Dos Reis wrote:
> | 
> | > Nathan Sidwell <nathan@codesourcery.com> writes:
> | > 
> | > |   	  if (code == UNION_TYPE)
> | > | ! 	    error ("redefinition of `union %s'", IDENTIFIER_POINTER (name));
> | > |             else
> | > | ! 	    error ("redefinition of `struct %s'", IDENTIFIER_POINTER (name));
> | > 
> | > Hi Nathan, I'm not clear about why this conditional is done here. 
> | > I think the diagnostic machinary is able to figure out how to print
> | > name with the appropriate class-key.  What else am I missing?
> | 
> | That the code was made this way by Paolo Bonzini to allow for different
> | gender of struct/union/enum in some languages
> | <http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01330.html> (c-decl.c
> | revision 1.260).
> 
> That, I think, is bogus:
> 
>   1) here 'union' and 'struct' are not used as natural words; they are
>      *keywords* 
> 
>   3) There is no point in translating *keyword*

The point was that some other part of the sentence may need to change to
agree with the gender of 'struct foo' / 'union foo' / 'enum foo', not that
the keyword is translated.  You are saying that such agreement is never
necessary in Italian for these GCC diagnostics?  Has this been discussed
with the relevant Translation Project list doing Italian translations?

(Unfortunately, the Italian translation mentioned as in progress in that
message is not yet available from the Translation Project site or in GCC
CVS.)

>   2) what about 'class'?

Irrelevant in the C compiler.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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