utfdef.h (680B)
1 /* 2 * compiler directive on Plan 9 3 */ 4 #ifndef USED 5 # define USED(x) \ 6 if (x) \ 7 ; \ 8 else 9 #endif 10 11 /* 12 * easiest way to make sure these are defined 13 */ 14 #define uchar _fmtuchar 15 #define ushort _fmtushort 16 #define uint _fmtuint 17 #define ulong _fmtulong 18 #define vlong _fmtvlong 19 #define uvlong _fmtuvlong 20 typedef unsigned char uchar; 21 typedef unsigned short ushort; 22 typedef unsigned int uint; 23 typedef unsigned long ulong; 24 typedef unsigned long long uvlong; 25 typedef long long vlong; 26 27 /* 28 * nil cannot be ((void*)0) on ANSI C, 29 * because it is used for function pointers 30 */ 31 #undef nil 32 #define nil 0 33 34 #undef nelem 35 #define nelem ((void*) 0)