/* * @(#)alias.h 3.4 4/24/85 */ /* * Copyright (c) 1983 Regents of the University of California, * All rights reserved. Redistribution permitted subject to * the terms of the Berkeley Software License Agreement. */ #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;