Home
last modified time | relevance | path

Searched refs:argnod (Results 1 – 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dexpand.c53 static int scantree(Dt_t*,const char*, struct argnod**);
93 int path_expand(Shell_t *shp,const char *pattern, struct argnod **arghead) in path_expand()
96 register struct argnod *ap; in path_expand()
203 for(ap= (struct argnod*)gp->gl_list; ap; ap = ap->argnxt.ap) in path_expand()
210 *arghead = (struct argnod*)gp->gl_list; in path_expand()
219 static int scantree(Dt_t *tree, const char *pattern, struct argnod **arghead) in scantree()
222 register struct argnod *ap; in scantree()
230 ap = (struct argnod*)stakseek(ARGVAL); in scantree()
232 ap = (struct argnod*)stakfreeze(1); in scantree()
249 int path_complete(Shell_t *shp,const char *name,register const char *suffix, struct argnod **arghea… in path_complete()
[all …]
H A Dparse.c57 static struct argnod *qscan(struct comnod*, int);
89 static struct argnod *label_list;
90 static struct argnod *label_last;
100 static unsigned long writedefs(Lex_t *lexp,struct argnod *arglist, int line, int type, struct argno… in writedefs()
102 register struct argnod *argp = arglist; in writedefs()
197 struct argnod *ap = tp->comarg; in check_typedef()
282 static Shnode_t *getanode(Lex_t *lp, struct argnod *ap) in getanode()
337 struct argnod *sav_arg = lexp->arg; in sh_parse()
676 register struct argnod *argp; in arithfor()
688 argp = (struct argnod*)stkseek(stkp,ARGVAL); in arithfor()
[all …]
H A Dtrestore.c36 static struct argnod *r_arg(Shell_t*);
177 static struct argnod *r_arg(Shell_t *shp) in r_arg()
179 register struct argnod *ap=0, *apold, *aptop=0; in r_arg()
184 ap = (struct argnod*)stkseek(stkp,(unsigned)l+ARGVAL); in r_arg()
207 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg()
214 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg()
216 ap->argchn.ap = (struct argnod*)r_tree(shp); in r_arg()
223 ap->argchn.ap = (struct argnod*)fp; in r_arg()
281 else if(com->comarg = (struct argnod*)r_comlist(shp)) in r_comarg()
H A Dargs.c98 static int arg_expand(Shell_t*,struct argnod*,struct argnod**,int);
710 register struct argnod *argp; in sh_argbuild()
711 struct argnod *arghead=0; in sh_argbuild()
769 struct argnod *nextarg = argp->argchn.ap; in sh_argbuild()
790 struct argnod *sh_argprocsub(Shell_t *shp,struct argnod *argp) in sh_argprocsub()
793 register struct argnod *ap; in sh_argprocsub()
796 ap = (struct argnod*)stkseek(shp->stk,ARGVAL); in sh_argprocsub()
813 ap = (struct argnod*)stkfreeze(shp->stk,0); in sh_argprocsub()
842 static int arg_expand(Shell_t *shp,register struct argnod *argp, struct argnod **argchain,int flag) in arg_expand()
848 struct argnod *ap; in arg_expand()
[all …]
H A Ddeparse.c48 static void p_arg(const struct argnod*, int endchar, int opts);
161 struct argnod *arg = (t->wh.whtre)->ar.arexpr; in p_tree()
179 struct argnod *init = (t->lst.lstlef)->ar.arexpr; in p_tree()
248 register struct argnod *ap = t->ar.arexpr; in p_tree()
387 static void p_arg(register const struct argnod *arg,register int endchar,int opts) in p_arg()
H A Dtdump.c36 static int p_arg(const struct argnod*);
157 static int p_arg(register const struct argnod *arg) in p_arg()
H A Dlex.c220 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); in lex_advance()
240 struct argnod *ap; in lexfill()
667 struct argnod *ap; in sh_lex()
1336 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); in sh_lex()
1375 lp->arg = (struct argnod*)stkfreeze(stkp,1); in sh_lex()
1385 lp->arg = (struct argnod*)stkfreeze(stkp,1); in sh_lex()
1406 lp->arg = (struct argnod*)stkfreeze(stkp,1); in sh_lex()
1737 struct argnod *arg = lp->arg; in nested_here()
2210 struct argnod *sh_endword(Shell_t *shp,int mode) in sh_endword()
2216 struct argnod* argp=0; in sh_endword()
[all …]
H A Dmacro.c70 struct argnod **arghead; /* address of head of argument list */
188 struct argnod *arglist=0; in sh_mactrim()
202 int sh_macexpand(Shell_t* shp, register struct argnod *argp, struct argnod **arghead,int flag) in sh_macexpand()
414 char *sh_macpat(Shell_t *shp,register struct argnod *arg, int flags) in sh_macpat()
424 sh_macexpand(shp,arg,NIL(struct argnod**),flags|ARG_ARRAYOK); in sh_macpat()
1044 struct argnod arg; in sh_macfun()
2465 register struct argnod *argp; in endfield()
2470 argp = (struct argnod*)stkfreeze(stkp,1); in endfield()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dargnod.h46 struct argnod *comarg;
47 struct argnod *comset;
88 struct argnod struct
92 struct argnod *ap; argument
97 struct argnod *ap; argument
108 #define ARGVAL offsetof(struct argnod,argval[0])
H A Dpath.h70 struct argnod;
84 extern int path_expand(Shell_t*,const char*, struct argnod**);
85 extern void path_exec(Shell_t*,const char*,char*[],struct argnod*);
97 extern int path_complete(Shell_t*,const char*, const char*,struct argnod**);
99 extern int path_generate(Shell_t*,struct argnod*,struct argnod**);
H A Ddefs.h218 struct argnod *envlist; \
398 extern struct argnod *sh_argprocsub(Shell_t*,struct argnod*);
407 extern struct argnod *sh_endword(Shell_t*,int);
418 extern int sh_macexpand(Shell_t*,struct argnod*,struct argnod**,int);
422 extern char *sh_macpat(Shell_t*,struct argnod*,int);
432 extern void sh_scope(Shell_t*, struct argnod*, int);
H A Dshnodes.h119 struct argnod *swarg;
127 struct argnod *regptr;
168 struct argnod *arexpr;
194 struct argnod arg;
H A Dname.h116 struct argnod;
193 extern void nv_setlist(struct argnod*, int, Namval_t*);
194 extern struct argnod* nv_onlist(struct argnod*, const char*);
H A Dshlex.h38 struct argnod *arg; /* current word */
/illumos-gate/usr/src/cmd/sh/
H A Dmode.h146 struct argnod struct
148 struct argnod *argnxt; argument
170 struct argnod *comarg; argument
171 struct argnod *comset;
214 struct argnod *regptr;
H A Dexpand.c53 void makearg(struct argnod *);
65 struct argnod *schain = gchain; in expand()
185 struct argnod *rchain; in expand()
273 makearg((struct argnod *)endstak(s2)); in addg()
277 makearg(struct argnod *args) in makearg()
H A Dfunc.c36 static void free_arg(struct argnod *);
39 static void prarg(struct argnod *argp);
132 free_arg(struct argnod *argp) in free_arg()
134 struct argnod *sav; in free_arg()
302 struct argnod *arg; in prf()
379 struct argnod *arg = swl->regptr; in prf()
408 prarg(struct argnod *argp) in prarg()
H A Dservice.c42 extern void makearg(struct argnod *);
433 struct argnod *argp =
434 (struct argnod *)(Rcheat(gchain) & ~ARGMK);
452 argp = (struct argnod *)(Rcheat(argp) & ~ARGMK);
502 struct argnod *argp;
592 trims(((struct argnod *)argp)->argval);
594 (c = expand(((struct argnod *)argp)->argval, 0)))
598 makearg((struct argnod *)argp);
601 gchain = (struct argnod *)((int)gchain | ARGMK);
H A Dcmd.c209 struct argnod *argp;
217 wdarg = (struct argnod *)alloc(length(argp->argval) + BYTESPERWORD);
375 struct argnod *argp;
376 struct argnod **argtail;
377 struct argnod **argset = 0;
436 wdarg = (struct argnod *)alloc(length(argp->argval) + BYTESPERWORD);
443 argp->argnxt = (struct argnod *)argset;
444 argset = (struct argnod **)argp;
467 t->comset = (struct argnod *)argset;
H A Ddefs.c53 struct argnod *gchain;
61 struct argnod *wdarg;
H A Dxec.c130 struct argnod *schain = gchain;
417 struct argnod *schain = gchain;
479 struct argnod *rex = regp->regptr;
H A Ddefs.h246 extern struct argnod *gchain;
280 extern struct argnod *wdarg;
H A Dhashserv.c54 struct argnod *arg;
503 argpath(struct argnod *arg) in argpath()
H A Dword.c48 struct argnod *arg = (struct argnod *)locstak(); in word()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dcompletion.c210 struct argnod *ap; in ed_expand()
233 ap = (struct argnod*)stakseek(ARGVAL); in ed_expand()
297 ap = (struct argnod*)stakfreeze(1); in ed_expand()

12