[En-Nut-Discussion] CVS Head Now Using stdint

Harald Kipp harald.kipp at egnite.de
Mon Aug 11 09:53:13 CEST 2008


Dear developers,

Be informed, that I finally replaced most BSD style types by C99 stdint 
types. Almost all files had been modified. In general the following type 
specifiers had been replaced:

u_char by uint8_t
u_short by uint16_t
u_long by uint32_t

With a few exceptions this had been done in a rather mechanical way, 
some optimizations and generalizations should follow. For example using 
uint32_t for timeouts is a bit too strict and should be replaced by a 
new type, which would allow 8-bit systems to optionally use 16-bit values.

The type u_int hasn't been generally replaced yet. It's on the list.

At a few places uint_fastX_t is used to optimize the code for 32 bit CPUs.

I didn't change any application code. This proofs, that existing code 
using BSD types will still work. If you experience any problems, please 
let me know.


Harald



More information about the En-Nut-Discussion mailing list