aliases and editing (and -v, sort of)
[unix-history] / usr / src / bin / sh / expand.h
CommitLineData
792d1bd5
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * %sccs.include.redist.c%
9 *
e2bf1cd5 10 * @(#)expand.h 5.2 (Berkeley) %G%
792d1bd5
KB
11 */
12
13struct strlist {
14 struct strlist *next;
15 char *text;
16};
17
18
19struct arglist {
20 struct strlist *list;
21 struct strlist **lastp;
22};
23
e2bf1cd5
MT
24/*
25 * expandarg() flags
26 */
27#define EXP_FULL 0x1 /* perform word splitting & file globbing */
28#define EXP_TILDE 0x2 /* do normal tilde expansion */
29#define EXP_VARTILDE 0x4 /* expand tildes in an assignment */
30#define EXP_REDIR 0x8 /* file glob for a redirection (1 match only) */
31
32
792d1bd5
KB
33#ifdef __STDC__
34union node;
35void expandarg(union node *, struct arglist *, int);
36void expandhere(union node *, int);
37int patmatch(char *, char *);
38void rmescapes(char *);
39int casematch(union node *, char *);
40#else
41void expandarg();
42void expandhere();
43int patmatch();
44void rmescapes();
45int casematch();
46#endif