added "more" command
[unix-history] / usr / src / usr.bin / window / alias.h
CommitLineData
58c6f2df 1/*
60de5df9
EW
2 * @(#)alias.h 3.4 %G%
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.
58c6f2df
EW
9 */
10
11#define alias var
12#define a_name r_name
13#define a_buf r_val.v_str
7293cf8d
EW
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 */
58c6f2df
EW
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
24struct var *alias_head;