xref: /original-bsd/usr.bin/window/xx.h (revision c3e32dec)
1 /*
2  * Copyright (c) 1989, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Edward Wang at The University of California, Berkeley.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)xx.h	8.1 (Berkeley) 06/06/93
11  */
12 
13 struct xx {
14 	enum { xc_move, xc_scroll, xc_inschar, xc_insspace, xc_delchar,
15 		xc_clear, xc_clreos, xc_clreol, xc_write } cmd;
16 	int arg0;
17 	int arg1;
18 	int arg2;
19 	int arg3;
20 	char *buf;
21 	struct xx *link;
22 };
23 
24 struct xx *xxalloc();
25 
26 struct xx *xx_head, *xx_tail;
27 struct xx *xx_freelist;
28 
29 char *xxbuf, *xxbufp, *xxbufe;
30 int xxbufsize;
31 
32 #define char_sep '\0'
33