bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIZEOF macro (was: ASSERT macro)


From: Eric Blake
Subject: SIZEOF macro (was: ASSERT macro)
Date: Thu, 24 Dec 2009 16:21:45 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 12/24/2009 1:08 PM:
>>> Either way we create macros.h and put ASSERT there
> 
> Done this this big commit, now.

Hmm.  macros.h defines SIZEOF, and test-argv-iter.c defines
ARRAY_CARDINALITY, both of which are used to determine the size of an
array.  I kind of prefer the name in test-argv-iter (to me, sizeof implies
a size_t count of bytes, not the number of elements).  Is it okay to
rename the macro in macros.h to ARRAY_CARDINALITY, adjust all callers, and
to simplify test-argv-iter?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksz94kACgkQ84KuGfSFAYA2QACgk3S9wN7X+JBtH+0HiQ/KDCXu
Q+EAn21St2gDUsoHI6VE0kWfGREp/yJX
=ZFZR
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]