]> andersk Git - splint.git/blame - test/utypes.c
Modified tests to account for bool being defined in the standard library.
[splint.git] / test / utypes.c
CommitLineData
f2b6724f 1/* Define short names for the unsigned types. */
2typedef unsigned char byte;
3typedef unsigned char uchar;
4typedef unsigned short ushort;
5typedef unsigned int uint;
6typedef unsigned long ulong;
7
8/* Since sys/types.h often defines one or more of these (depending on */
9/* the platform), we have to take steps to prevent name clashes. */
10/*** NOTE: This requires that you include std.h *before* any other ***/
11/*** header file that includes sys/types.h. ***/
768a340a 12//#define bool bool_ / * (maybe not needed) * /
f2b6724f 13#define uchar uchar_
14#define uint uint_
15#define ushort ushort_
16#define ulong ulong_
17#include <sys/types.h>
18#undef bool
19#undef uchar
20#undef uint
21#undef ushort
22#undef ulong
23
24void f (unsigned int width)
25{
26 uint src_bytes = width >> 3;
27}
This page took 0.095839 seconds and 5 git commands to generate.