/external/mksh/src/ |
H A D | eval.c | 118 s = pushs(SWSTR, ATEMP); 124 afree(s, ATEMP); 259 Xinit(ds, dp, 128, ATEMP); 374 end = (beg = wdcopy(sp, ATEMP)) + 380 afree(beg, ATEMP); 391 newst = alloc(sizeof(SubType), ATEMP); 431 beg = wdcopy(sp, ATEMP); 452 afree(stg, ATEMP); 456 afree(stg, ATEMP); 458 afree(beg, ATEMP); [all...] |
H A D | 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...] |
H A D | misc.c | 234 strndupx(cp, m, cp - m, ATEMP); 565 cp = alloc(strlen((const void *)sp) + 1, ATEMP); 622 /* return the result, allocated from ATEMP */ 654 char *t = len <= sizeof(tbuf) ? tbuf : alloc(len, ATEMP); 668 afree(pnew, ATEMP); 1240 str = alloc(max_oct, ATEMP); 1280 afree(str, ATEMP); 1354 /* getcwd(3) equivalent, allocates from ATEMP but doesn't resize */ 1362 strdupx(rv, cp, ATEMP); 1369 if (!getcwd((rv = alloc(PATH_MAX + 1, ATEMP)), PATH_MA [all...] |
H A D | var.c | 68 l = alloc(sizeof(struct block), ATEMP); 110 afree(l, ATEMP); 187 strndupx(vn, n, p - n, ATEMP); 190 afree(vn, ATEMP); 197 afree(ap, ATEMP); 210 strndupx(tmp, p + 1, len - 2, ATEMP); 212 afree(tmp, ATEMP); 213 strndupx(n, n, p - n, ATEMP); 216 afree(sub, ATEMP); 246 vp->areap = ATEMP; [all...] |
H A D | lex.c | 167 ri = alloc(sizeof(struct sretrace_info), ATEMP); \ 168 Xinit(ri->xs, ri->xp, 64, ATEMP); \ 179 afree(dp, ATEMP); \ 209 Xinit(ws, wp, 64, ATEMP); 299 afree(tmp, ATEMP); 660 afree(sp, ATEMP); 876 afree(sp, ATEMP); 914 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); 972 afree(iop, ATEMP); 1053 afree(yylval.cp, ATEMP); [all...] |
H A D | main.c | 167 strdupx(x, cx, ATEMP); 177 afree(x, ATEMP); 437 s = pushs(SSTRINGCMDLINE, ATEMP); 456 s = pushs(SFILE, ATEMP); 470 s = pushs(SSTDIN, ATEMP); 704 s = pushs(SFILE, ATEMP); 706 strdupx(s->file, name, ATEMP); 723 s = pushs(SSTRING, ATEMP); 909 cp = alloc(sizeof(struct env) - ALLOC_SIZE, ATEMP); 1007 afree(cp + ALLOC_SIZE, ATEMP); [all...] |
H A D | 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;
|
H A D | 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); 795 afree(nhname, ATEMP); 1098 strdupx(as, cs, ATEMP); 1113 afree(as, ATEMP);
|
H A D | funcs.c | 266 afree(allocd, ATEMP); 401 Xinit(xs, xp, 128, ATEMP); 1104 strndupx(xalias, alias, val++ - alias, ATEMP); 1149 afree(xalias, ATEMP); 1562 strdupx(up, *wp, ATEMP); 1571 afree(up, ATEMP); 1892 strdupx(allocd, *wp, ATEMP); 1907 Xinit(xs, xp, bytesleft, ATEMP); 2058 XinitN(xs, 128, ATEMP); 2066 afree(cp, ATEMP); [all...] |
H A D | 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;
|
H A D | exec.c | 110 dp = alloc(z * 2 + n, ATEMP); 147 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); 1145 afree(npath.rw, ATEMP); 1234 Xinit(xs, xp, 128, ATEMP); 1361 afree(sp, ATEMP); 1417 afree(sp, ATEMP); 1464 s = pushs(SSTRING, ATEMP); 1508 h = maketemp(ATEMP, TT_HEREDOC_EXP, &e->temps);
|
H A D | edit.c | 337 afree(s, ATEMP); 379 s = pushs(SWSTR, ATEMP); 388 afree(s, ATEMP); 492 alloc2(nwords, sizeof(struct path_order_info), ATEMP); 507 afree(info, ATEMP); 518 afree(words[i], ATEMP); 615 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); 659 afree(toglob, ATEMP); 704 afree(words[--nwords], ATEMP); 705 afree(words, ATEMP); [all...] |
H A D | sh.h | 671 #define ATEMP &e->area macro 1469 (x).beg = alloc2((x).siz, sizeof(void *), ATEMP); \ 1475 2 * sizeof(void *), ATEMP); \ 1483 #define XPclose(x) aresize2((x).beg, XPsize(x), sizeof(void *), ATEMP) 1484 #define XPfree(x) afree((x).beg, ATEMP)
|
H A D | tree.c | 645 * quote characters (" ' \) stripped. (string is allocated from ATEMP) 764 buf = alloc(sz + 16, ATEMP); 798 afree(buf, ATEMP);
|