This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: Patch: PR 5942


 > From: Tom Tromey <tromey@redhat.com> 
 > 
 >     * parse.y (init_src_parse): Added sanity check.
 > 
 > +  /* Sanity check; we've been bit by this before.  */
 > +  if (sizeof (ctxp->modifier_ctx) / sizeof (tree) != 
 > +      MODIFIER_TK - PUBLIC_TK)

Please consider using ARRAY_SIZE(ctxp->modifier_ctx) (defined in
libiberty.h) instead of an explicit sizeof() / sizeof().

IMHO, ARRAY_SIZE is much more readable.

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Director of Systems Architecture
ghazi@caip.rutgers.edu		Qwest Global Services


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