PATCH: Introducing OBJC_TYPE_QUAL token.

David Ayers d.ayers@inode.at
Fri Aug 27 09:51:00 GMT 2004


Ziemowit Laski wrote:
> Yet another trivial change stemming from objc-improvements-branch
> integration.  Since we no longer fiddle with raw declspecs, we
> will need a different way to zero in on Objective-C protocol
> qualifiers ("in", "out", "oneway", etc.).
> 
> [gcc/ChangeLog]
> 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
> 
>          * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
> 
> Index: gcc/c-parse.in
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/c-parse.in,v
> retrieving revision 1.229
> diff -u -3 -p -r1.229 c-parse.in
> --- gcc/c-parse.in      25 Aug 2004 09:51:20 -0000      1.229
> +++ gcc/c-parse.in      26 Aug 2004 20:45:14 -0000
> @@ -127,6 +127,10 @@ do {                                               
>                          \
>      yylval contains an IDENTIFIER_NODE which indicates which one.  */
>   %token TYPE_QUAL
> 
> +/* Objective-C protocol qualifiers.  These acquire their magic powers
> +   only in certain contexts.  */
> +%token OBJC_TYPE_QUAL
> +

Hello Zem,

would you mind replacing the comment about "magic powers" with something
more concrete indicating what these special contexts are, in which these
tokens will get generated and/or used?  I'm not asking for 15 line
documentation, just something that indicates the reasoning and maybe
points to it's usage.

Thanks,
David Ayers



More information about the Gcc-patches mailing list