This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] array_length, array_end macros for internal use


Florian Weimer wrote:

I didn't want to use array_size because of the potential confusion with sizeof.

Yes, that's a good reason to avoid that name.

glibc has not followed this style for some time (see libc_hidden_def, __libc_lock_lock etc.), and the C++ version (if we need it) will be written as a function anyway.

OK, then how about the "arrayelts", or "array_elts"? "array_length" is a bit confusion-prone, because "length" is so often one less than the number of elements.


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