/external/mksh/src/ |
eval.c | 110 s = pushs(SWSTR, ATEMP); 116 afree(s, ATEMP); 238 Xinit(ds, dp, 128, ATEMP); 345 end = (beg = wdcopy(sp, ATEMP)) + 351 afree(beg, ATEMP); 362 newst = alloc(sizeof(SubType), ATEMP); 385 beg = wdcopy(sp, ATEMP); 406 afree(stg, ATEMP); 410 afree(stg, ATEMP); 412 afree(beg, ATEMP); [all...] |
misc.c | 209 strndupx(cp, m, cp - m, ATEMP); 503 cp = alloc(strlen((const void *)sp) + 1, ATEMP); 560 /* return the result, allocated from ATEMP */ 592 char *t = len <= sizeof(tbuf) ? tbuf : alloc(len, ATEMP); 606 afree(pnew, ATEMP); 1099 str = alloc(max_oct, ATEMP); 1144 afree(str, ATEMP); 1218 /* getcwd(3) equivalent, allocates from ATEMP but doesn't resize */ 1226 strdupx(rv, cp, ATEMP); 1233 if (!getcwd((rv = alloc(PATH_MAX + 1, ATEMP)), PATH_MAX)) [all...] |
syn.c | 202 nextiop = alloc(sizeof(*iop), ATEMP); 203 nextiop->name = cp = alloc(5, ATEMP); 245 iops = alloc2((NUFILE + 1), sizeof(struct ioword *), ATEMP); 253 afree(iops, ATEMP); 305 afree(t, ATEMP); 342 XPput(args, wdcopy(set_cmd0, ATEMP)); 343 XPput(args, wdcopy(set_cmd1, ATEMP)); 345 XPput(args, wdcopy(set_cmd2, ATEMP)); 395 XPput(args, wdcopy(let_cmd, ATEMP)); 425 strdupx(t->str, ident, ATEMP); [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 | 171 ri = alloc(sizeof(struct sretrace_info), ATEMP); \ 172 Xinit(ri->xs, ri->xp, 64, ATEMP); \ 183 afree(dp, ATEMP); \ 212 Xinit(ws, wp, 64, ATEMP); 298 afree(tmp, ATEMP); 633 afree(sp, ATEMP); 919 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); 977 afree(iop, ATEMP); 1058 afree(yylval.cp, ATEMP); 1103 afree(yylval.cp, ATEMP); [all...] |
expr.c | 519 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); 521 afree(tvar, ATEMP); 527 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); 538 tvar = alloc(c + /* NUL */ 1, ATEMP); 548 strndupx(tvar, es->tokp, --cp - es->tokp, ATEMP); 556 afree(tvar, ATEMP); 621 vp = alloc(sizeof(struct tbl), ATEMP); 624 vp->areap = ATEMP;
|
funcs.c | 255 afree(allocd, ATEMP); 376 Xinit(xs, xp, 128, ATEMP); 1069 strndupx(xalias, alias, val++ - alias, ATEMP); 1114 afree(xalias, ATEMP); [all...] |
shf.c | 57 shf = alloc(sizeof(struct shf) + bsize, ATEMP); 58 shf->areap = ATEMP; 131 shf->buf = alloc(bsize, ATEMP); 136 shf = alloc(sizeof(struct shf) + bsize, ATEMP); 140 shf->areap = ATEMP; 198 shf = alloc(sizeof(struct shf), ATEMP); 201 shf->areap = ATEMP;
|
main.c | 426 s = pushs(SSTRING, ATEMP); 437 s = pushs(SFILE, ATEMP); 451 s = pushs(SSTDIN, ATEMP); 661 s = pushs(SFILE, ATEMP); 663 strdupx(s->file, name, ATEMP); 680 s = pushs(SSTRING, ATEMP); 842 cp = alloc(sizeof(struct env) - ALLOC_SIZE, ATEMP); 917 afree(cp + ALLOC_SIZE, ATEMP); 958 /* remove temp files and free ATEMP Area */ [all...] |
histrap.c | 102 editor = alloc(len + 4, ATEMP); 161 strdupx(pat, *wp, ATEMP); 249 tf = maketemp(ATEMP, TT_HIST_EDIT, &e->temps); 365 strdupx(line, *hp, ATEMP); 375 Xinit(xs, xp, 128, ATEMP); 872 afree(nfile, ATEMP); [all...] |
exec.c | 107 dp = alloc(z * 2 + n, ATEMP); 152 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); 1125 afree(npath.rw, ATEMP); 1214 Xinit(xs, xp, 128, ATEMP); [all...] |
sh.h | 550 #define ATEMP &e->area [all...] |
edit.c | 320 s = pushs(SWSTR, ATEMP); 419 alloc2(nwords, sizeof(struct path_order_info), ATEMP); 434 afree(info, ATEMP); 445 afree(words[i], ATEMP); 542 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); 593 afree(toglob, ATEMP); 634 afree(words[--nwords], ATEMP); 635 afree(words, ATEMP); 687 strdupx(cp, te->name, ATEMP); 703 Xinit(xs, xp, patlen + 128, ATEMP); [all...] |
tree.c | 599 * quote characters (" ' \) stripped. (string is allocated from ATEMP) 717 buf = alloc(sz, ATEMP); 733 afree(buf, ATEMP);
|