utfdef.h (680B) download
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
20typedef unsigned char uchar;
21typedef unsigned short ushort;
22typedef unsigned int uint;
23typedef unsigned long ulong;
24typedef unsigned long long uvlong;
25typedef 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)