On Fri, Feb 16, 2007 at 04:28:26PM -0800, Dave Gotwisner wrote: > I personally hate the proliferation of typedefs.
I concur whole heartedly. > I have seen u8, U8, u_int8, uint8, and many others that all express the > same thing. (similarly for 16, 32, and 64 bit sizes). In all cases that > I have seen (I admit, I haven't looked recently to see how a DEC-10 > implements this, with it's 10 bit bytes), but, for almost every modern > implementation I have seen (including MIPS64), char is 8 bits, short is > 16, long is 32, and long long is 64. Except on all my machines, where long is 64 bits ;) My machines being an Alpha, UltraSparc, and AMD64, running variously OpenBSD or Linux depending on the season. <snip> > Note, that this isn't a flame on libevent per se, I take issue with this > everywhere (including the companies I have worked at). In general I like the libevent coding style, w/ the exception of these typedefs. These typedefs in particular are BSD-derived. Yet, all the BSDs I know also support the C99 typedefs (sans-underscore); that part I never understood. (Maybe it was a close call; not sure which came first in OpenBSD, stdint.h or libevent.) _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users