This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix ObjC protocol qualification lossage
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 6 Sep 2002 23:28:05 +0100
- Subject: Re: PATCH: Fix ObjC protocol qualification lossage
- References: <0438C7D3-C1E7-11D6-AB51-000393673036@apple.com>
Ziemowit Laski wrote:-
> * c-lang.c (is_id): New stub.
I'd prefer objc-specific functions exported to the C front end
retain an objc_ prefix like the others do.
> + tree
> + is_id (ident)
> + tree ident;
> + {
> + /* NB: This function may be called before the ObjC front-end
> + has been initialized, in which case ID_TYPE will be NULL. */
> + return (id_type && ident && TYPE_P (ident) && IS_ID (ident))
> + ? id_type
> + : NULL_TREE;
> }
Not important, but doesn't this comment mean that "id_type && "
is redundant?
Neil.