/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Edward Wang at The University of California, Berkeley. * * %sccs.include.redist.c% * * @(#)alias.h 8.1 (Berkeley) 06/06/93 */ #define alias var #define a_name r_name #define a_buf r_val.v_str #define a_flags r_val.v_type /* a_flags bits, must not interfere with v_type values */ #define A_INUSE 0x010 /* already inuse */ #define alias_set(n, s) var_setstr1(&alias_head, n, s) #define alias_walk(f, a) var_walk1(alias_head, f, a) #define alias_unset(n) var_unset1(&alias_head, n) #define alias_lookup(n) (*var_lookup1(&alias_head, n)) struct var *alias_head;