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 * 10 * @(#)expand.h 5.1 (Berkeley) 03/07/91 11 */ 12 13 struct strlist { 14 struct strlist *next; 15 char *text; 16 }; 17 18 19 struct arglist { 20 struct strlist *list; 21 struct strlist **lastp; 22 }; 23 24 #ifdef __STDC__ 25 union node; 26 void expandarg(union node *, struct arglist *, int); 27 void expandhere(union node *, int); 28 int patmatch(char *, char *); 29 void rmescapes(char *); 30 int casematch(union node *, char *); 31 #else 32 void expandarg(); 33 void expandhere(); 34 int patmatch(); 35 void rmescapes(); 36 int casematch(); 37 #endif 38