Subject: Re: CVS commit: src/sys/compat/linux/common
To: Christos Zoulas <christos@zoulas.com>
From: Klaus Klein <kleink@mibh.de>
List: source-changes
Date: 02/24/2005 23:45:02
On Thursday, 24. February 2005 20:02, Christos Zoulas wrote:
> On Feb 24, 10:22am, thorpej@shagadelic.org (Jason Thorpe) wrote:
> -- Subject: Re: CVS commit: src/sys/compat/linux/common
> 
> | 
> | On Feb 24, 2005, at 8:58 AM, Christos Zoulas wrote:
> | 
> | > Maybe "length" instead of "count" i.e. __arraylength()
> | > And it probably belongs in stddef.h where offsetof() is defined.
> | 
> | But it's counting the number of elements in the array.
> 
> I was thinking more in terms of the:
> 
> double [] array; array.length in java
> 
> | Why stddef.h?  It's not a standards-defined macro.  Or, should we also 
> | put __min() and __max() in stddef.h?  (That certainly would not bother 
> | me one bit.)
> 
> Well, it might become standard and since it has __ in front of it it
> does not pollute the namespace now.

I'm afraid the former sounds like a straw man.  To suggest an alternative,
<sys/param.h> has been used already as a kitchen sink for similar macros.


- Klaus