~kris/9p

9hist

ref: fe414e0c416281dbabf2d61e2d405ccfb0d5d83a 9hist/pc/u.h -rw-r--r-- 532 bytes
fe414e0c — David du Colombier Plan 9 from Bell Labs 1998-10-21 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]