Re: Inclusion of sys/types.h

看板DFBSD_bugs作者時間21年前 (2005/01/27 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/9 (看更多)
: :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@backplane.com>
文章代碼(AID): #11z-8-00 (DFBSD_bugs)
討論串 (同標題文章)
文章代碼(AID): #11z-8-00 (DFBSD_bugs)