Home
last modified time | relevance | path

Searched refs:Shnode_t (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dshnodes.h86 Shnode_t *forktre;
94 Shnode_t *iftre;
95 Shnode_t *thtre;
96 Shnode_t *eltre;
102 Shnode_t *whtre;
103 Shnode_t *dotre;
111 Shnode_t *fortre;
128 Shnode_t *regcom;
136 Shnode_t *partre;
142 Shnode_t *lstlef;
[all …]
H A Dshell.h61 typedef union Shnode_u Shnode_t; typedef
218 extern int sh_exec(const Shnode_t*,int);
H A Dshlex.h161 extern Shnode_t *sh_dolparen(Lex_t*);
H A Ddefs.h404 extern void sh_deparse(Sfio_t*,const Shnode_t*,int);
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dparse.c55 static Shnode_t *makeparent(Lex_t*, int, Shnode_t*);
56 static Shnode_t *makelist(Lex_t*, int, Shnode_t*, Shnode_t*);
244 static Shnode_t *makeparent(Lex_t *lp, int flag, Shnode_t *child) in makeparent()
309 static Shnode_t *makelist(Lex_t *lexp, int type, Shnode_t *l, Shnode_t *r) in makelist()
311 register Shnode_t *t; in makelist()
334 register Shnode_t *t; in sh_parse()
376 Shnode_t *tt; in sh_parse()
672 static Shnode_t *arithfor(Lex_t *lexp,register Shnode_t *tf) in arithfor()
1388 Shnode_t *t; in process_sub()
1958 (Shnode_t*)lexp->arg,(Shnode_t*)lexp->arg); in test_primary()
[all …]
H A Dtdump.c40 static int p_tree(const Shnode_t*);
45 int sh_tdump(Sfio_t *out, const Shnode_t *t) in sh_tdump()
67 static int p_tree(register const Shnode_t *t) in p_tree()
96 if(p_tree((Shnode_t*)(t->wh.whinc))<0) in p_tree()
125 return(p_tree((Shnode_t*)t->for_.forlst)); in p_tree()
139 return(p_tree((Shnode_t*)t->funct.functargs)); in p_tree()
185 p_tree((Shnode_t*)arg->argchn.ap); in p_arg()
H A Dtrestore.c39 static Shnode_t *r_tree(Shell_t*);
45 #define getnode(s,type) ((Shnode_t*)stkalloc((s),sizeof(struct type)))
47 Shnode_t *sh_trestore(Shell_t *shp,Sfio_t *in) in sh_trestore()
49 Shnode_t *t; in sh_trestore()
57 static Shnode_t *r_tree(Shell_t *shp) in r_tree()
61 register Shnode_t *t=0; in r_tree()
167 t->lst.lstlef = (Shnode_t*)r_arg(shp); in r_tree()
169 t->lst.lstrit = (Shnode_t*)r_arg(shp); in r_tree()
H A Ddeparse.c54 static void p_tree(const Shnode_t*,int);
65 extern void sh_deparse(Sfio_t*, const Shnode_t*,int);
67 void sh_deparse(Sfio_t *out, const Shnode_t *t,int tflags) in sh_deparse()
75 static void p_tree(register const Shnode_t *t,register int tflags) in p_tree()
175 Shnode_t *tr = t->lst.lstrit; in p_tree()
219 Shnode_t *tt = t->lst.lstrit; in p_tree()
409 p_tree((Shnode_t*)arg->argchn.ap,0); in p_arg()
H A Dshcomp.c75 Shnode_t *t; in main()
138 if(t = (Shnode_t*)sh_parse(shp,in,0)) in main()
H A Dxec.c307 static int sh_tclear(register Shnode_t *t) in sh_tclear()
370 sh_tclear((Shnode_t*)arg->argchn.ap); in p_arg()
573 register Shnode_t *t; in sh_eval()
1481 ((Shnode_t*)t)->com.comset = 0; in sh_exec()
2052 Shnode_t *tt; in sh_exec()
2084 const Shnode_t* tn=t; in sh_exec()
2387 Shnode_t *tt = t->wh.whtre; in sh_exec()
2535 Shnode_t *tt = (Shnode_t*)t; in sh_exec()
2538 t= (Shnode_t*)(tt->sw.swlst); in sh_exec()
2576 (t=(Shnode_t*)t->reg.regnxt)); in sh_exec()
[all …]
H A Dmacro.c110 static void comsubst(Mac_t*, Shnode_t*, int);
348 comsubst(mp,(Shnode_t*)0,0); in sh_machere()
371 comsubst(mp,(Shnode_t*)0,2); in sh_machere()
394 comsubst(mp,(Shnode_t*)0,1); in sh_machere()
601 comsubst(mp,(Shnode_t*)0,0); in copyto()
1040 Shnode_t node; in sh_macfun()
1172 comsubst(mp,(Shnode_t*)0,1); in varsub()
2014 comsubst(mp,(Shnode_t*)0,2); in varsub()
2028 static void comsubst(Mac_t *mp,register Shnode_t* t, int type) in comsubst()
2109 t = (Shnode_t*)sh_parse(mp->shp, sp,SH_EOF|SH_NL); in comsubst()
H A Dmain.c372 Shnode_t *t; in exfile()
573 t = (Shnode_t*)sh_parse(shp,iop,0); in exfile()
H A Dargs.c821 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub()
826 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub()
H A Dfault.c467 sh_exec((Shnode_t*)trap,sh_isstate(SH_ERREXIT)); in sh_trap()
H A Dsubshell.c474 Sfio_t *sh_subshell(Shell_t *shp,Shnode_t *t, volatile int flags, int comsub) in sh_subshell()
H A Dname.c353 register Shnode_t *tp=fp->fortre; in nv_setlist()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dmisc.c289 sh_exec((Shnode_t*)(nv_funtree(np)),sh_isstate(SH_ERREXIT)); in b_dot_cmd()