~kris/9p

9hist

ref: 1587b45c5651a1398fc14c684b1e6b8d6f6e6247 9hist/pc/u.h -rw-r--r-- 532 bytes
1587b45c — David du Colombier Plan 9 from Bell Labs 1999-03-19 27 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#define nil		((void*)0)
typedef	unsigned short	ushort;
typedef	unsigned char	uchar;
typedef	signed char	schar;
typedef unsigned int	uint;
typedef unsigned long	ulong;
typedef	 long long	vlong;
typedef unsigned long long uvlong;
typedef union Length	Length;
typedef ushort		Rune;

union Length
{
	vlong	length;
};

typedef char *va_list;

#define va_start(list, start) list = (sizeof(start)<4 ? (char *)((int *)&(start)+1) : \
(char *)(&(start)+1))
#define va_end(list)
#define va_arg(list, mode) ((mode*)(list += sizeof(mode)))[-1]