This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
bsdtypes.h typedefs
- From: "Bailie, Scott" <bailie at ll dot mit dot edu>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 26 Jun 2008 12:26:44 -0400
- Subject: [ECOS] bsdtypes.h typedefs
- Accept-language: en-US
- Acceptlanguage: en-US
Hi All,
I'm curious about the choice for the int32_t and uint32_t typedefs in the bsdtypes.h header. Currently they are typedef'd to int and unsigned int, respectively. It seems that it would make more sense for them to be long and unsigned long, therefore removing any ambiguity regarding integer length when moving between platforms. The C99 standard which requires inttypes.h & stdint.h does just that. Is there any reason these C99 files have not been incorporated into the eCos distro? Otherwise, is there any reason not to change the typedefs in the bsdtypes.h file?
Thanks, Scott
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss