This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: PR 5942
- From: Tom Tromey <tromey at redhat dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: apbianco at redhat dot com, gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: 26 Mar 2002 12:54:26 -0700
- Subject: Re: Patch: PR 5942
- References: <200203261905.OAA26401@caip.rutgers.edu>
- Reply-to: tromey at redhat dot com
>>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:
Kaveh> Please consider using ARRAY_SIZE(ctxp->modifier_ctx) (defined in
Kaveh> libiberty.h) instead of an explicit sizeof() / sizeof().
Kaveh> IMHO, ARRAY_SIZE is much more readable.
On the branch I used what appeared to be the prevailing local style
(i.e., sizeof/sizeof was used in the same function).
On the trunk I used ARRAY_SIZE.
Tom