1 /* 2 * Copyright (c) 1983, 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 * @(#)alias.h 8.1 (Berkeley) 06/06/93 11 */ 12 13 #define alias var 14 #define a_name r_name 15 #define a_buf r_val.v_str 16 #define a_flags r_val.v_type 17 18 /* a_flags bits, must not interfere with v_type values */ 19 #define A_INUSE 0x010 /* already inuse */ 20 21 #define alias_set(n, s) var_setstr1(&alias_head, n, s) 22 #define alias_walk(f, a) var_walk1(alias_head, f, a) 23 #define alias_unset(n) var_unset1(&alias_head, n) 24 #define alias_lookup(n) (*var_lookup1(&alias_head, n)) 25 26 struct var *alias_head; 27