xref: /original-bsd/usr.bin/window/alias.h (revision 0a83ae40)
1 /*
2  * @(#)alias.h	3.4 04/24/85
3  */
4 
5 /*
6  * Copyright (c) 1983 Regents of the University of California,
7  * All rights reserved.  Redistribution permitted subject to
8  * the terms of the Berkeley Software License Agreement.
9  */
10 
11 #define alias var
12 #define a_name r_name
13 #define a_buf r_val.v_str
14 #define a_flags r_val.v_type
15 
16 	/* a_flags bits, must not interfere with v_type values */
17 #define A_INUSE		0x010	/* already inuse */
18 
19 #define alias_set(n, s)		var_setstr1(&alias_head, n, s)
20 #define alias_walk(f, a)	var_walk1(alias_head, f, a)
21 #define alias_unset(n)		var_unset1(&alias_head, n)
22 #define alias_lookup(n)		(*var_lookup1(&alias_head, n))
23 
24 struct var *alias_head;
25