/external/mksh/src/ |
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 | 234 strndupx(cp, m, cp - m, ATEMP); 574 cp = alloc(strlen((const void *)sp) + 1, ATEMP); 631 /* return the result, allocated from ATEMP */ 663 char *t = len <= sizeof(tbuf) ? tbuf : alloc(len, ATEMP); 677 afree(pnew, ATEMP); 1249 str = alloc(max_oct, ATEMP); 1289 afree(str, ATEMP); 1358 /* getcwd(3) equivalent, allocates from ATEMP but doesn't resize */ 1366 strdupx(rv, cp, ATEMP); 1373 if (!getcwd((rv = alloc(PATH_MAX + 1, ATEMP)), PATH_MAX)) [all...] |
eval.c | 119 s = pushs(SWSTR, ATEMP); 125 afree(s, ATEMP); 260 Xinit(ds, dp, 128, ATEMP); 385 end = (beg = wdcopy(sp, ATEMP)) + 391 afree(beg, ATEMP); 404 newst = alloc(sizeof(SubType), ATEMP); 444 beg = wdcopy(sp, ATEMP); 465 afree(stg, ATEMP); 469 afree(stg, ATEMP); 471 afree(beg, ATEMP); [all...] |
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...] |
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); 971 afree(iop, ATEMP); 1062 afree(yylval.cp, ATEMP); [all...] |
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); 916 cp = alloc(sizeof(struct env) - ALLOC_SIZE, ATEMP); 1014 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); 298 tf = maketemp(ATEMP, TT_HIST_EDIT, &e->temps); 798 afree(nhname, ATEMP); 1101 strdupx(as, cs, ATEMP); 1116 afree(as, ATEMP); [all...] |
funcs.c | 266 afree(allocd, ATEMP); 401 Xinit(xs, xp, 128, ATEMP); 1114 strndupx(xalias, alias, val++ - alias, ATEMP); 1159 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 | 152 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); 1169 afree(npath.rw, ATEMP); 1258 Xinit(xs, xp, 128, ATEMP); [all...] |
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); 613 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); 657 afree(toglob, ATEMP); 702 afree(words[--nwords], ATEMP); 703 afree(words, ATEMP); [all...] |
sh.h | 675 #define ATEMP &e->area [all...] |
tree.c | 645 * quote characters (" ' \) stripped. (string is allocated from ATEMP) 764 buf = alloc(sz + 16, ATEMP); 798 afree(buf, ATEMP);
|