Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: determines if it is a signed type Date: Tue, 19 May 2015 08:07:06 -0700 Organization: None to speak of Lines: 27 Message-ID: <878uck4ndx.fsf@kst-u.example.com> References: <6a4be947-376c-466e-aa9f-78a6e174725c@googlegroups.com> <87mw12qqk7.fsf@kst-u.example.com> <87a8x253s1.fsf@kst-u.example.com> <87k2w54je5.fsf@kst-u.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="9be37d943435275679235b07c7947eef"; logging-data="7595"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18a++AERHyW2K3tWY3jjshB" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:7jkHO5oxPHwE/ljANxupXFKcB5s= sha1:7xAgbSg5zxjqP6MaCRccAXzLzwc= Xref: csiph.com comp.lang.c:62288 David Brown writes: [...] > For embedded systems, most compilers support C99 (at least the relevant > bits - often things like wide character support are missing). When > using compilers that don't have , people will often make their > own for the compiler in question (typically an incomplete stdint.h, with > just the typedefs needed for sized integer types - I doubt if anyone > bothers with all the macros and range limit defines). > > It is also common in embedded systems to have your own sized integer > types, or use ones defined by your RTOS or other bits of software (which > can have a history going back to a time when was less common > in embedded compilers). Thus you see code with types like "u32" or > "sys_uint_32_t", or similar. Doug Gwyn wrote an implementation of and several other C99 headers that work with a C90 compiler. The files are public domain. http://www.lysator.liu.se/%28nobg%29/c/q8/index.html -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"