4065 lines · 74.2 KB · C
RawDownload
typedef struct Sys_Qid Sys_Qid;typedef struct Sys_Dir Sys_Dir;typedef struct Sys_FD Sys_FD;typedef struct Sys_Connection Sys_Connection;typedef struct Sys_FileIO Sys_FileIO;typedef struct Draw_Chans Draw_Chans;typedef struct Draw_Point Draw_Point;typedef struct Draw_Rect Draw_Rect;typedef struct Draw_Image Draw_Image;typedef struct Draw_Display Draw_Display;typedef struct Draw_Font Draw_Font;typedef struct Draw_Screen Draw_Screen;typedef struct Draw_Pointer Draw_Pointer;typedef struct Draw_Context Draw_Context;typedef struct Draw_Wmcontext Draw_Wmcontext;typedef struct Prefab_Style Prefab_Style;typedef struct Prefab_Environ Prefab_Environ;typedef struct Prefab_Layout Prefab_Layout;typedef struct Prefab_Element Prefab_Element;typedef struct Prefab_Compound Prefab_Compound;typedef struct Tk_Toplevel Tk_Toplevel;typedef struct IPints_IPint IPints_IPint;typedef struct Crypt_DigestState Crypt_DigestState;typedef struct Crypt_AESstate Crypt_AESstate;typedef struct Crypt_DESstate Crypt_DESstate;typedef struct Crypt_IDEAstate Crypt_IDEAstate;typedef struct Crypt_RC4state Crypt_RC4state;typedef struct Crypt_BFstate Crypt_BFstate;typedef struct Crypt_PK Crypt_PK;typedef struct Crypt_SK Crypt_SK;typedef struct Crypt_PKsig Crypt_PKsig;typedef struct Loader_Inst Loader_Inst;typedef struct Loader_Typedesc Loader_Typedesc;typedef struct Loader_Link Loader_Link;typedef struct Loader_Import Loader_Import;typedef struct Loader_Except Loader_Except;typedef struct Loader_Handler Loader_Handler;typedef struct Loader_Niladt Loader_Niladt;typedef struct Freetype_Matrix Freetype_Matrix;typedef struct Freetype_Vector Freetype_Vector;typedef struct Freetype_Face Freetype_Face;typedef struct Freetype_Glyph Freetype_Glyph;struct Sys_Qid{	LONG	path;	WORD	vers;	WORD	qtype;};#define Sys_Qid_size 16#define Sys_Qid_map {0}struct Sys_Dir{	String*	name;	String*	uid;	String*	gid;	String*	muid;	Sys_Qid	qid;	WORD	mode;	WORD	atime;	WORD	mtime;	uchar	_pad44[4];	LONG	length;	WORD	dtype;	WORD	dev;};#define Sys_Dir_size 64#define Sys_Dir_map {0xf0,}struct Sys_FD{	WORD	fd;};#define Sys_FD_size 4#define Sys_FD_map {0}struct Sys_Connection{	Sys_FD*	dfd;	Sys_FD*	cfd;	String*	dir;};#define Sys_Connection_size 12#define Sys_Connection_map {0xe0,}typedef struct{ Array* t0; String* t1; } Sys_Rread;#define Sys_Rread_size 8#define Sys_Rread_map {0xc0,}typedef struct{ WORD t0; String* t1; } Sys_Rwrite;#define Sys_Rwrite_size 8#define Sys_Rwrite_map {0x40,}struct Sys_FileIO{	Channel*	read;	Channel*	write;};typedef struct{ WORD t0; WORD t1; WORD t2; Channel* t3; } Sys_FileIO_read;#define Sys_FileIO_read_size 16#define Sys_FileIO_read_map {0x10,}typedef struct{ WORD t0; Array* t1; WORD t2; Channel* t3; } Sys_FileIO_write;#define Sys_FileIO_write_size 16#define Sys_FileIO_write_map {0x50,}#define Sys_FileIO_size 8#define Sys_FileIO_map {0xc0,}struct Draw_Chans{	WORD	desc;};#define Draw_Chans_size 4#define Draw_Chans_map {0}struct Draw_Point{	WORD	x;	WORD	y;};#define Draw_Point_size 8#define Draw_Point_map {0}struct Draw_Rect{	Draw_Point	min;	Draw_Point	max;};#define Draw_Rect_size 16#define Draw_Rect_map {0}struct Draw_Image{	Draw_Rect	r;	Draw_Rect	clipr;	WORD	depth;	Draw_Chans	chans;	WORD	repl;	Draw_Display*	display;	Draw_Screen*	screen;	String*	iname;};#define Draw_Image_size 56#define Draw_Image_map {0x0,0x1c,}struct Draw_Display{	Draw_Image*	image;	Draw_Image*	white;	Draw_Image*	black;	Draw_Image*	opaque;	Draw_Image*	transparent;};#define Draw_Display_size 20#define Draw_Display_map {0xf8,}struct Draw_Font{	String*	name;	WORD	height;	WORD	ascent;	Draw_Display*	display;};#define Draw_Font_size 16#define Draw_Font_map {0x90,}struct Draw_Screen{	WORD	id;	Draw_Image*	image;	Draw_Image*	fill;	Draw_Display*	display;};#define Draw_Screen_size 16#define Draw_Screen_map {0x70,}struct Draw_Pointer{	WORD	buttons;	Draw_Point	xy;	WORD	msec;};#define Draw_Pointer_size 16#define Draw_Pointer_map {0}struct Draw_Context{	Draw_Display*	display;	Draw_Screen*	screen;	Channel*	wm;};typedef struct{ String* t0; Channel* t1; } Draw_Context_wm;#define Draw_Context_wm_size 8#define Draw_Context_wm_map {0xc0,}#define Draw_Context_size 12#define Draw_Context_map {0xe0,}struct Draw_Wmcontext{	Channel*	kbd;	Channel*	ptr;	Channel*	ctl;	Channel*	wctl;	Channel*	images;	Sys_FD*	connfd;	Draw_Context*	ctxt;};typedef WORD Draw_Wmcontext_kbd;#define Draw_Wmcontext_kbd_size 4#define Draw_Wmcontext_kbd_map {0}typedef Draw_Pointer* Draw_Wmcontext_ptr;#define Draw_Wmcontext_ptr_size 4#define Draw_Wmcontext_ptr_map {0x80,}typedef String* Draw_Wmcontext_ctl;#define Draw_Wmcontext_ctl_size 4#define Draw_Wmcontext_ctl_map {0x80,}typedef String* Draw_Wmcontext_wctl;#define Draw_Wmcontext_wctl_size 4#define Draw_Wmcontext_wctl_map {0x80,}typedef Draw_Image* Draw_Wmcontext_images;#define Draw_Wmcontext_images_size 4#define Draw_Wmcontext_images_map {0x80,}#define Draw_Wmcontext_size 28#define Draw_Wmcontext_map {0xfe,}struct Prefab_Style{	Draw_Font*	titlefont;	Draw_Font*	textfont;	Draw_Image*	elemcolor;	Draw_Image*	edgecolor;	Draw_Image*	titlecolor;	Draw_Image*	textcolor;	Draw_Image*	highlightcolor;};#define Prefab_Style_size 28#define Prefab_Style_map {0xfe,}struct Prefab_Environ{	Draw_Screen*	screen;	Prefab_Style*	style;};#define Prefab_Environ_size 8#define Prefab_Environ_map {0xc0,}struct Prefab_Layout{	Draw_Font*	font;	Draw_Image*	color;	String*	text;	Draw_Image*	icon;	Draw_Image*	mask;	String*	tag;};#define Prefab_Layout_size 24#define Prefab_Layout_map {0xfc,}struct Prefab_Element{	WORD	kind;	Draw_Rect	r;	Prefab_Environ*	environ;	String*	tag;	List*	kids;	String*	str;	Draw_Image*	mask;	Draw_Image*	image;	Draw_Font*	font;};#define Prefab_Element_size 48#define Prefab_Element_map {0x7,0xf0,}struct Prefab_Compound{	Draw_Image*	image;	Prefab_Environ*	environ;	Draw_Rect	r;	Prefab_Element*	title;	Prefab_Element*	contents;};#define Prefab_Compound_size 32#define Prefab_Compound_map {0xc3,}struct Tk_Toplevel{	Draw_Display*	display;	Channel*	wreq;	Draw_Image*	image;	Draw_Wmcontext*	ctxt;	Draw_Rect	screenr;};typedef String* Tk_Toplevel_wreq;#define Tk_Toplevel_wreq_size 4#define Tk_Toplevel_wreq_map {0x80,}#define Tk_Toplevel_size 32#define Tk_Toplevel_map {0xf0,}struct IPints_IPint{	WORD	x;};#define IPints_IPint_size 4#define IPints_IPint_map {0}struct Crypt_DigestState{	WORD	x;};#define Crypt_DigestState_size 4#define Crypt_DigestState_map {0}struct Crypt_AESstate{	WORD	x;};#define Crypt_AESstate_size 4#define Crypt_AESstate_map {0}struct Crypt_DESstate{	WORD	x;};#define Crypt_DESstate_size 4#define Crypt_DESstate_map {0}struct Crypt_IDEAstate{	WORD	x;};#define Crypt_IDEAstate_size 4#define Crypt_IDEAstate_map {0}struct Crypt_RC4state{	WORD	x;};#define Crypt_RC4state_size 4#define Crypt_RC4state_map {0}struct Crypt_BFstate{	WORD	x;};#define Crypt_BFstate_size 4#define Crypt_BFstate_map {0}#define Crypt_PK_RSA 0#define Crypt_PK_Elgamal 1#define Crypt_PK_DSA 2struct Crypt_PK{	int	pick;	union{		struct{			IPints_IPint*	n;			IPints_IPint*	ek;		} RSA;		struct{			IPints_IPint*	p;			IPints_IPint*	alpha;			IPints_IPint*	key;		} Elgamal;		struct{			IPints_IPint*	p;			IPints_IPint*	q;			IPints_IPint*	alpha;			IPints_IPint*	key;		} DSA;	} u;};#define Crypt_PK_RSA_size 12#define Crypt_PK_RSA_map {0x60,}#define Crypt_PK_Elgamal_size 16#define Crypt_PK_Elgamal_map {0x70,}#define Crypt_PK_DSA_size 20#define Crypt_PK_DSA_map {0x78,}#define Crypt_SK_RSA 0#define Crypt_SK_Elgamal 1#define Crypt_SK_DSA 2struct Crypt_SK{	int	pick;	union{		struct{			Crypt_PK*	pk;			IPints_IPint*	dk;			IPints_IPint*	p;			IPints_IPint*	q;			IPints_IPint*	kp;			IPints_IPint*	kq;			IPints_IPint*	c2;		} RSA;		struct{			Crypt_PK*	pk;			IPints_IPint*	secret;		} Elgamal;		struct{			Crypt_PK*	pk;			IPints_IPint*	secret;		} DSA;	} u;};#define Crypt_SK_RSA_size 32#define Crypt_SK_RSA_map {0x7f,}#define Crypt_SK_Elgamal_size 12#define Crypt_SK_Elgamal_map {0x60,}#define Crypt_SK_DSA_size 12#define Crypt_SK_DSA_map {0x60,}#define Crypt_PKsig_RSA 0#define Crypt_PKsig_Elgamal 1#define Crypt_PKsig_DSA 2struct Crypt_PKsig{	int	pick;	union{		struct{			IPints_IPint*	n;		} RSA;		struct{			IPints_IPint*	r;			IPints_IPint*	s;		} Elgamal;		struct{			IPints_IPint*	r;			IPints_IPint*	s;		} DSA;	} u;};#define Crypt_PKsig_RSA_size 8#define Crypt_PKsig_RSA_map {0x40,}#define Crypt_PKsig_Elgamal_size 12#define Crypt_PKsig_Elgamal_map {0x60,}#define Crypt_PKsig_DSA_size 12#define Crypt_PKsig_DSA_map {0x60,}struct Loader_Inst{	BYTE	op;	BYTE	addr;	uchar	_pad2[2];	WORD	src;	WORD	mid;	WORD	dst;};#define Loader_Inst_size 16#define Loader_Inst_map {0}struct Loader_Typedesc{	WORD	size;	Array*	map;};#define Loader_Typedesc_size 8#define Loader_Typedesc_map {0x40,}struct Loader_Link{	String*	name;	WORD	sig;	WORD	pc;	WORD	tdesc;};#define Loader_Link_size 16#define Loader_Link_map {0x80,}struct Loader_Import{	String*	name;	WORD	sig;};#define Loader_Import_size 8#define Loader_Import_map {0x80,}struct Loader_Except{	String*	e;	WORD	pc;};#define Loader_Except_size 8#define Loader_Except_map {0x80,}struct Loader_Handler{	WORD	pc1;	WORD	pc2;	WORD	eoff;	WORD	tdesc;	Array*	etab;};#define Loader_Handler_size 20#define Loader_Handler_map {0x8,}struct Loader_Niladt{	char	dummy[1];	uchar	_pad1[3];};#define Loader_Niladt_size 4#define Loader_Niladt_map {0}struct Freetype_Matrix{	WORD	a;	WORD	b;	WORD	c;	WORD	d;};#define Freetype_Matrix_size 16#define Freetype_Matrix_map {0}struct Freetype_Vector{	WORD	dx;	WORD	dy;};#define Freetype_Vector_size 8#define Freetype_Vector_map {0}struct Freetype_Face{	WORD	nfaces;	WORD	index;	WORD	style;	WORD	height;	WORD	ascent;	String*	familyname;	String*	stylename;};#define Freetype_Face_size 28#define Freetype_Face_map {0x6,}struct Freetype_Glyph{	WORD	top;	WORD	left;	WORD	height;	WORD	width;	Draw_Point	advance;	Array*	bitmap;};#define Freetype_Glyph_size 28

Lines 1–500 of 4065.