add stdint.h, uintptr

This commit is contained in:
rsc 2005-12-29 21:45:40 +00:00
parent 3d484b0d1a
commit 0dbd8726fe

View file

@ -1,3 +1,5 @@
#include <stdint.h>
/* /*
* compiler directive on Plan 9 * compiler directive on Plan 9
*/ */
@ -14,12 +16,15 @@
#define ulong _fmtulong #define ulong _fmtulong
#define vlong _fmtvlong #define vlong _fmtvlong
#define uvlong _fmtuvlong #define uvlong _fmtuvlong
#define uintptr _fmtuintptr
typedef unsigned char uchar; typedef unsigned char uchar;
typedef unsigned short ushort; typedef unsigned short ushort;
typedef unsigned int uint; typedef unsigned int uint;
typedef unsigned long ulong; typedef unsigned long ulong;
typedef unsigned long long uvlong; typedef unsigned long long uvlong;
typedef long long vlong; typedef long long vlong;
typedef uintptr_t uintptr;
/* /*
* nil cannot be ((void*)0) on ANSI C, * nil cannot be ((void*)0) on ANSI C,