Re: mount.h/radix.h

看板DFBSD_submit作者時間21年前 (2005/01/26 02:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
-On [20050125 02:32], David Cuthbert (dacut@kanga.org) wrote: >Jeffrey Hsu wrote: >>Now that C99 defines a standard boolean type, _Bool, how about we just >>change all the occurrences of boolean_t in the kernel to _Bool? > >_Bool exists as a way of preventing clashes with existing typedefs; it >is not intended for use in new code. > >The proper C99 way is to #include <stdbool.h>, which then performs: Usage of 'bool' seems normal then to use in the typedef for boolean_t. Which was what I was thinking of, instead of the additional typedef for boolean_t to int. -- Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono Free Tibet! http://www.savetibet.org/ | http://ashemedai.deviantart.com/ http://www.tendra.org/ | http://www.in-nomine.org/ Hypocrisy is the homage which vice pays to virtue...
文章代碼(AID): #11zedv00 (DFBSD_submit)
文章代碼(AID): #11zedv00 (DFBSD_submit)