/ast/src/cmd/ksh93/sh/ |
H A D | macro.c | 163 Stk_t *stkp = shp->stk; local 166 stkseek(stkp,0); 181 stkseek(stkp,0); 184 str = stkfreeze(stkp,1); 209 Stk_t *stkp = shp->stk; local 236 stkseek(stkp,0); 240 stkseek(stkp,ARGVAL); 241 *stkptr(stkp,ARGVAL-1) = 0; 249 argp->argchn.cp = stkfreeze(stkp,1); 278 Stk_t *stkp local 451 Stk_t *stkp = mp->shp->stk; local 1098 Stk_t *stkp = mp->shp->stk; local 2023 Stk_t *stkp = mp->shp->stk; local 2258 Stk_t *stkp=mp->shp->stk; local 2455 Stk_t *stkp = mp->shp->stk; local [all...] |
H A D | lex.c | 144 register Stk_t *stkp = shp->stk; local 154 int n,offset = stktell(stkp); 161 sfwrite(stkp,fcfirst()+type,off-offset); 162 n = stktell(stkp)-lp->lexd.kiaoff; 163 begin = stkptr(stkp,lp->lexd.kiaoff); 171 savptr = stkfreeze(stkp,0); 173 stkset(stkp,savptr,offset); 188 Stk_t *stkp = shp->stk; local 217 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); 224 sfwrite(stkp,buf 326 Stk_t *stkp = shp->stk; local 1700 Stk_t *stkp = lp->sh->stk; local 2148 stack_shift(Stk_t *stkp, register char *sp,char *dp) argument 2180 Stk_t *stkp=shp->stk; local [all...] |
H A D | parse.c | 670 Stk_t *stkp = lexp->sh->stk; local 680 argp = (struct argnod*)stkseek(stkp,ARGVAL); 688 offset = stktell(stkp)-1; 692 while(offset>ARGVAL && ((c= *stkptr(stkp,offset-1)),isspace(c))) 697 stkseek(stkp,offset); 700 sfputc(stkp,'1'); 701 argp = (struct argnod*)stkfreeze(stkp,1); 947 Stk_t *stkp = lexp->sh->stk; local 992 ar = (struct argnod*)stkseek(stkp,ARGVAL); 994 sfprintf(stkp,"[ 1398 Stk_t *stkp = lexp->sh->stk; local 1669 Stk_t *stkp = lexp->sh->stk; local 2022 Stk_t *stkp = lexp->sh->stk; local [all...] |
H A D | trestore.c | 181 Stk_t *stkp=shp->stk; local 184 ap = (struct argnod*)stkseek(stkp,(unsigned)l+ARGVAL); 207 ap = (struct argnod*)stkfreeze(stkp,0); 214 ap = (struct argnod*)stkfreeze(stkp,0); 337 static char *r_string(Stk_t *stkp) argument 344 ptr = stkalloc(stkp,(unsigned)l);
|
H A D | xec.c | 212 Stk_t *stkp = shp->stk; local 217 sfwrite(stkp, first, format-first); 248 stkseek(stkp,offset); 255 l_time(stkp, tm[n], p); 257 sfprintf(stkp,"%.*f",p, d); 261 sfwrite(stkp,first, format-first); 262 sfputc(stkp,'\n'); 263 n = stktell(stkp)-offset; 264 sfwrite(out,stkptr(stkp,offset),n); 265 stkseek(stkp,offse 500 Stk_t *stkp=shp->stk; local 969 Stk_t *stkp = shp->stk; local [all...] |
H A D | nvdisc.c | 1491 Stk_t *stkp = shp->stk; local 1492 int offset = stktell(stkp); 1493 sfputr(stkp,nv_name(shp->namespace),'.'); 1494 sfputr(stkp,fname,0); 1495 fname = stkptr(stkp,offset);
|
/ast/src/cmd/ksh93/bltins/ |
H A D | getopts.c | 39 Stk_t *stkp = shp->stk; local 46 int savtop = stktell(stkp); 47 char *savptr = stkfreeze(stkp,0); 48 sfputc(stkp,'$'); 49 sfputc(stkp,'('); 50 sfputr(stkp,s,')'); 51 sfputr(sp,sh_mactry(shp,stkfreeze(stkp,1)),-1); 52 stkset(stkp,savptr,savtop);
|
H A D | typeset.c | 414 Stk_t *stkp = tdata.sh->stk; local 415 int off=0,offset = stktell(stkp); 418 sfputr(stkp,NV_CLASS,-1); 422 off = stktell(stkp)+1; 423 sfputr(stkp,nv_name(tdata.sh->namespace),'.'); 428 sfputc(stkp,'.'); 429 sfputr(stkp,tdata.prefix,0); 430 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN); 434 *stkptr(stkp,off)=0; 435 tdata.tp = nv_open(stkptr(stkp,offse 973 Stk_t *stkp; local [all...] |