/external/mksh/src/ |
eval.c | 117 s = pushs(SWSTR, ATEMP); 123 afree(s, ATEMP); 258 Xinit(ds, dp, 128, ATEMP); 374 end = (beg = wdcopy(sp, ATEMP)) + 380 afree(beg, ATEMP); 391 newst = alloc(sizeof(SubType), ATEMP); 420 beg = wdcopy(sp, ATEMP); 424 afree(beg, ATEMP); 448 beg = wdcopy(sp, ATEMP); 469 afree(stg, ATEMP); [all...] |
syn.c | 212 nextiop = alloc(sizeof(*iop), ATEMP); 213 nextiop->name = cp = alloc(5, ATEMP); 269 iops = alloc2((NUFILE + 1), sizeof(struct ioword *), ATEMP); 277 afree(iops, ATEMP); 331 XPput(args, wdcopy(setA_cmd0, ATEMP)); 332 XPput(args, wdcopy(setA_cmd1, ATEMP)); 334 XPput(args, wdcopy(setA_cmd2, ATEMP)); 347 afree(t, ATEMP); 399 XPput(args, wdcopy(let_cmd, ATEMP)); 428 strdupx(t->str, ident, ATEMP); [all...] |
misc.c | 233 strndupx(cp, m, cp - m, ATEMP); 584 cp = alloc(strlen((const void *)sp) + 1, ATEMP); 641 /* return the result, allocated from ATEMP */ 673 char *t = len <= sizeof(tbuf) ? tbuf : alloc(len, ATEMP); 687 afree(pnew, ATEMP); 1259 str = alloc(max_oct, ATEMP); 1299 afree(str, ATEMP); 1373 /* getcwd(3) equivalent, allocates from ATEMP but doesn't resize */ 1381 strdupx(rv, cp, ATEMP); 1388 if (!getcwd((rv = alloc(PATH_MAX + 1, ATEMP)), PATH_MAX)) [all...] |
var.c | 65 l = alloc(sizeof(struct block), ATEMP); 107 afree(l, ATEMP); 183 strndupx(vn, n, p - n, ATEMP); 186 afree(vn, ATEMP); 193 afree(ap, ATEMP); 205 strndupx(tmp, p + 1, len - 2, ATEMP); 207 afree(tmp, ATEMP); 208 strndupx(n, n, p - n, ATEMP); 211 afree(sub, ATEMP); 238 vp->areap = ATEMP; [all...] |
lex.c | 166 ri = alloc(sizeof(struct sretrace_info), ATEMP); \ 167 Xinit(ri->xs, ri->xp, 64, ATEMP); \ 178 afree(dp, ATEMP); \ 207 Xinit(ws, wp, 64, ATEMP); 297 afree(tmp, ATEMP); 660 afree(sp, ATEMP); 877 afree(sp, ATEMP); 915 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); 973 afree(iop, ATEMP); 1054 afree(yylval.cp, ATEMP); [all...] |
main.c | 184 strdupx(x, cx, ATEMP); 194 afree(x, ATEMP); 485 s = pushs(SSTRINGCMDLINE, ATEMP); 506 s = pushs(SFILE, ATEMP); 520 s = pushs(SSTDIN, ATEMP); 752 s = pushs(SFILE, ATEMP); 754 strdupx(s->file, name, ATEMP); 771 s = pushs(SSTRING, ATEMP); 960 cp = alloc(sizeof(struct env) - ALLOC_SIZE, ATEMP); 1058 afree(cp + ALLOC_SIZE, ATEMP); [all...] |
expr.c | 655 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); 657 afree(tvar, ATEMP); 663 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); 674 tvar = alloc(c + /* NUL */ 1, ATEMP); 684 strndupx(tvar, es->tokp, --cp - es->tokp, ATEMP); 692 afree(tvar, ATEMP); 725 vp = alloc(sizeof(struct tbl), ATEMP); 728 vp->areap = ATEMP;
|
histrap.c | 115 editor = alloc(len + 4, ATEMP); 174 strdupx(pat, *wp, ATEMP); 193 strdupx(line, *hp, ATEMP); 203 Xinit(xs, xp, 128, ATEMP); 297 tf = maketemp(ATEMP, TT_HIST_EDIT, &e->temps); 794 afree(nhname, ATEMP); 1096 strdupx(as, cs, ATEMP); 1111 afree(as, ATEMP); [all...] |
funcs.c | 259 afree(allocd, ATEMP); 394 Xinit(xs, xp, 128, ATEMP); 1092 strndupx(xalias, alias, val++ - alias, ATEMP); 1137 afree(xalias, ATEMP); [all...] |
shf.c | 58 shf = alloc(sizeof(struct shf) + bsize, ATEMP); 59 shf->areap = ATEMP; 136 shf->buf = alloc(bsize, ATEMP); 141 shf = alloc(sizeof(struct shf) + bsize, ATEMP); 145 shf->areap = ATEMP; 203 shf = alloc(sizeof(struct shf), ATEMP); 206 shf->areap = ATEMP;
|
exec.c | 110 dp = alloc(z * 2 + n, ATEMP); 147 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); 1146 afree(npath.rw, ATEMP); 1235 Xinit(xs, xp, 128, ATEMP); 1362 afree(sp, ATEMP); [all...] |
edit.c | 336 afree(s, ATEMP); 378 s = pushs(SWSTR, ATEMP); 387 afree(s, ATEMP); 491 alloc2(nwords, sizeof(struct path_order_info), ATEMP); 506 afree(info, ATEMP); 517 afree(words[i], ATEMP); 614 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); 658 afree(toglob, ATEMP); 703 afree(words[--nwords], ATEMP); 704 afree(words, ATEMP); [all...] |
sh.h | 656 #define ATEMP &e->area [all...] |
tree.c | 645 * quote characters (" ' \) stripped. (string is allocated from ATEMP) 764 buf = alloc(sz + 16, ATEMP); 797 afree(buf, ATEMP);
|