1 /* Define short names for the unsigned types. */
2 typedef unsigned char byte;
3 typedef unsigned char uchar;
4 typedef unsigned short ushort;
5 typedef unsigned int uint;
6 typedef 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. ***/
12 //#define bool bool_          / * (maybe not needed) * /
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 
f(unsigned int width)24 void f (unsigned int width)
25 {
26   uint src_bytes = width >> 3;
27 }
28