/ast/src/lib/libast/include/ |
H A D | stak.h | 37 #define staksp stkstd 40 #define stakptr(n) stkptr(stkstd,n) 41 #define staktell() stktell(stkstd) 42 #define stakputc(c) sfputc(stkstd,(c)) 43 #define stakwrite(b,n) sfwrite(stkstd,(b),(n)) 44 #define stakputs(s) (sfputr(stkstd,(s),0),--stkstd->_next) 45 #define stakseek(n) stkseek(stkstd,n) 50 #define stakalloc(n) stkalloc(stkstd,n) 51 #define stakcopy(s) stkcopy(stkstd, [all...] |
H A D | stk.h | 38 #define stkstd (&_Stk_data) macro
|
/ast/src/lib/libast/path/ |
H A D | pathcd.c | 97 i = stktell(stkstd); 98 sfputr(stkstd, p, 0); 99 stkseek(stkstd, i); 100 p = stkptr(stkstd, i);
|
/ast/src/lib/libast/misc/ |
H A D | error.c | 434 bas = stkptr(stkstd, 0); 435 if (off = stktell(stkstd)) 436 stkfreeze(stkstd, 0); 439 sfprintf(stkstd, "%s: ", error_state.prefix); 443 sfprintf(stkstd, " "); 445 sfprintf(stkstd, "%s: ", ERROR_translate(NiL, NiL, ast.id, "Usage")); 447 print(stkstd, file, " "); 454 context(stkstd, CONTEXT(error_info.flags, error_info.context)); 456 print(stkstd, file, (flags & ERROR_LIBRARY) ? " " : ": "); 459 sfprintf(stkstd, "["); [all...] |
H A D | stk.c | 89 #define stream2stk(stream) ((stream)==stkstd? stkcur:\ 133 * initialize stkstd, sfio operations may have already occcured 158 if(stream==stkstd) 193 if(stream!=stkstd) 195 if(!stkgrow(stkstd,size-(stkstd->_endb-stkstd->_data))) 279 while(sfstack(stkstd, SF_POPSTACK)); 280 if(stream!=stkstd) 281 sfstack(stkstd,strea [all...] |
/ast/src/cmd/kshlib/open/ |
H A D | open.c | 106 int offset = stktell(stkstd); 111 sfprintf(stkstd,"%s.format\0",name); 112 sfputc(stkstd,0); 113 dp->format = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD); 227 int offset = stktell(stkstd); 228 sfprintf(stkstd,"%s.%s\0",name,fp->name); 229 sfputc(stkstd,0); 230 nq = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD); 328 int savtop = stktell(stkstd); 329 char *savptr = stkfreeze(stkstd, [all...] |
/ast/src/lib/libast/regex/ |
H A D | regnexec.c | 238 #define matchcopy(e,x) do if ((x)->re.group.number) { Match_frame_t* fp = (void*)stkframe(stkstd)->data; memcpy(fp->match, fp->save, fp->size); } while (0) 239 #define matchpop(e,x) do if ((x)->re.group.number) { Match_frame_t* fp = (void*)stkframe(stkstd)->data; memcpy(fp->match, fp->save, fp->size); stkpop(stkstd); } while (0) 258 if (!(f = (Match_frame_t*)stkpush(stkstd, sizeof(Match_frame_t) + (num - 1) * sizeof(regmatch_t)))) 964 if (!(b = (unsigned char*)stkpush(stkstd, n))) 978 stkpop(stkstd); 981 stkpop(stkstd); 984 stkpop(stkstd); 990 stkpop(stkstd); 1110 if (!(b = (unsigned char*)stkpush(stkstd, [all...] |
/ast/src/cmd/kshlib/dss/ |
H A D | dss.c | 227 int offset = stktell(stkstd); 229 sfputc(stkstd,0); 230 sfprintf(stkstd,"dss.%s",name); 231 sfputc(stkstd,0); 232 mp = nv_search(stkptr(stkstd,offset+1),typedict,flag); 233 stkseek(stkstd,offset); 240 sfputc(stkstd,0); 241 sfprintf(stkstd,NV_CLASS".dss.%s",name); 242 sfputc(stkstd,0); 245 nv_putval(rp,stkptr(stkstd,offse [all...] |
/ast/src/lib/libtksh/src/ |
H A D | var.c | 374 offset = stktell(stkstd); 376 sfputr(stkstd, oldval, ((flags & TCL_LIST_ELEMENT) && 378 sfputr(stkstd, newValue, 0); 379 stkseek(stkstd, offset); 380 newValue = stkptr(stkstd, offset);
|
/ast/src/cmd/ksh93/bltins/ |
H A D | enum.c | 229 sfprintf(stkstd,"%s.%s%c",NV_CLASS,np->nvname,0);
|
H A D | print.c | 495 sfprintf(stkstd,"&#%X;",CCMAPC(c,CC_NATIVE,CC_ASCII)); 505 sfprintf(stkstd,"%%%02X",CCMAPC(c,CC_NATIVE,CC_ASCII));
|
/ast/src/cmd/re/ |
H A D | testregex.c | 1306 if (!(state.stack = stkalloc(stkstd, 0))) 1309 state.disc.disc.re_resizehandle = (void*)stkstd; 1936 stkset(stkstd, state.stack, 0);
|
/ast/src/lib/libcmd/ |
H A D | cp.c | 883 if (!(v = (char**)stkalloc(stkstd, (argc + 2) * sizeof(char*))))
|
/ast/src/cmd/ksh93/sh/ |
H A D | name.c | 562 sfprintf(stkstd,"%s[%d]",prefix?nv_name(np):cp,sub); 575 sfprintf(stkstd,"%s%s",nv_name(L_ARGNOD->nvalue.nrp->np),shp->prefix+1); 576 shp->prefix = stkfreeze(stkstd,1);
|
H A D | io.c | 1113 sfprintf(stkstd,"%<#d_%d{;.tmp",getpid(),fno);
|
H A D | nvdisc.c | 401 cp = stkcopy(stkstd,cp);
|
H A D | path.c | 1058 pidsize = sfprintf(stkstd,"*%d*",spawn?getpid():getppid());
|
H A D | xec.c | 428 int n = stktell(stkstd); 430 if(iop==stkstd && cp==stkptr(stkstd,n)) 432 *stkptr(stkstd,stktell(stkstd)-1) = c; 506 Sfio_t *iop = stkstd; 537 else if(iop==stkstd)
|
H A D | array.c | 898 sfprintf(stkstd,"%s.%.*s%c",NV_CLASS,n,tname,0);
|
H A D | init.c | 1315 shp->stk = stkstd;
|