DragonFly BSD
DragonFly bugs List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Inclusion of sys/types.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Jan 2005 10:11:15 -0800 (PST)

:
:On Wed, Jan 26, 2005 at 10:05:33AM +0100, Jeroen Ruigrok/asmodai wrote:
:> strftime() should return size_t, not __size_t, regardless if the type
:> definition ends up being the same anyway.  __ prefixed types are supposed to
:> be either internal ones, reserved ones or other special case types.
:> 
:> That's why
:> 
:> #ifdef  _BSD_SIZE_T_
:> typedef _BSD_SIZE_T_    size_t;
:> #undef  _BSD_SIZE_T_
:> #endif
:
:I don't like this, but I'll fix it (a bit different).
:
:Joerg

    I think I might have removed size_t based on an incorrect understanding
    of the standard.  There was a pollution issue of some sort but, clearly,
    in retrospect, we have to put size_t back in.

    I recommend putting it back in using the _SIZE_T_DECLARED infrastructure
    similar to the other types.  Joerg, I'll leave that to you.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



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