/external/mksh/src/ |
D | eval.c | 118 s = pushs(SWSTR, ATEMP); in substitute() 124 afree(s, ATEMP); in substitute() 259 Xinit(ds, dp, 128, ATEMP); in expand() 374 end = (beg = wdcopy(sp, ATEMP)) + in expand() 380 afree(beg, ATEMP); in expand() 391 newst = alloc(sizeof(SubType), ATEMP); in expand() 431 beg = wdcopy(sp, ATEMP); in expand() 452 afree(stg, ATEMP); in expand() 456 afree(stg, ATEMP); in expand() 458 afree(beg, ATEMP); in expand() [all …]
|
D | syn.c | 212 nextiop = alloc(sizeof(*iop), ATEMP); in synio() 213 nextiop->name = cp = alloc(5, ATEMP); in synio() 269 iops = alloc2((NUFILE + 1), sizeof(struct ioword *), ATEMP); in get_command() 277 afree(iops, ATEMP); in get_command() 331 XPput(args, wdcopy(setA_cmd0, ATEMP)); in get_command() 332 XPput(args, wdcopy(setA_cmd1, ATEMP)); in get_command() 334 XPput(args, wdcopy(setA_cmd2, ATEMP)); in get_command() 347 afree(t, ATEMP); in get_command() 399 XPput(args, wdcopy(let_cmd, ATEMP)); in get_command() 428 strdupx(t->str, ident, ATEMP); in get_command() [all …]
|
D | misc.c | 234 strndupx(cp, m, cp - m, ATEMP); in getoptions() 565 cp = alloc(strlen((const void *)sp) + 1, ATEMP); in simplify_gmatch_pattern() 654 char *t = len <= sizeof(tbuf) ? tbuf : alloc(len, ATEMP); in gmatchx() 668 afree(pnew, ATEMP); in gmatchx() 1240 str = alloc(max_oct, ATEMP); in print_columns() 1280 afree(str, ATEMP); in print_columns() 1362 strdupx(rv, cp, ATEMP); in ksh_get_wd() 1369 if (!getcwd((rv = alloc(PATH_MAX + 1, ATEMP)), PATH_MAX)) { in ksh_get_wd() 1370 afree(rv, ATEMP); in ksh_get_wd() 1404 strdupx(ipath, upath, ATEMP); in do_realpath() [all …]
|
D | var.c | 68 l = alloc(sizeof(struct block), ATEMP); in newblock() 110 afree(l, ATEMP); in popblock() 187 strndupx(vn, n, p - n, ATEMP); in array_index_calc() 190 afree(vn, ATEMP); in array_index_calc() 197 afree(ap, ATEMP); in array_index_calc() 210 strndupx(tmp, p + 1, len - 2, ATEMP); in array_index_calc() 212 afree(tmp, ATEMP); in array_index_calc() 213 strndupx(n, n, p - n, ATEMP); in array_index_calc() 216 afree(sub, ATEMP); in array_index_calc() 246 vp->areap = ATEMP; in global() [all …]
|
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); in yylex() 299 afree(tmp, ATEMP); in yylex() 660 afree(sp, ATEMP); in yylex() 876 afree(sp, ATEMP); in yylex() 914 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); in yylex() 972 afree(iop, ATEMP); in yylex() 1053 afree(yylval.cp, ATEMP); in yylex() [all …]
|
D | expr.c | 655 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 657 afree(tvar, ATEMP); in exprtoken() 663 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 674 tvar = alloc(c + /* NUL */ 1, ATEMP); in exprtoken() 684 strndupx(tvar, es->tokp, --cp - es->tokp, ATEMP); in exprtoken() 692 afree(tvar, ATEMP); in exprtoken() 725 vp = alloc(sizeof(struct tbl), ATEMP); in tempvar() 728 vp->areap = ATEMP; in tempvar()
|
D | main.c | 167 strdupx(x, cx, ATEMP); in isuc() 177 afree(x, ATEMP); in isuc() 437 s = pushs(SSTRINGCMDLINE, ATEMP); in main_init() 456 s = pushs(SFILE, ATEMP); in main_init() 470 s = pushs(SSTDIN, ATEMP); in main_init() 704 s = pushs(SFILE, ATEMP); in include() 706 strdupx(s->file, name, ATEMP); in include() 723 s = pushs(SSTRING, ATEMP); in command() 909 cp = alloc(sizeof(struct env) - ALLOC_SIZE, ATEMP); in newenv() 1007 afree(cp + ALLOC_SIZE, ATEMP); in quitenv() [all …]
|
D | shf.c | 58 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open() 59 shf->areap = ATEMP; in shf_open() 136 shf->buf = alloc(bsize, ATEMP); in shf_fdopen() 141 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_fdopen() 145 shf->areap = ATEMP; in shf_fdopen() 203 shf = alloc(sizeof(struct shf), ATEMP); in shf_sopen() 206 shf->areap = ATEMP; in shf_sopen()
|
D | histrap.c | 115 editor = alloc(len + 4, ATEMP); in c_fc() 174 strdupx(pat, *wp, ATEMP); in c_fc() 193 strdupx(line, *hp, ATEMP); in c_fc() 203 Xinit(xs, xp, 128, ATEMP); in c_fc() 297 tf = maketemp(ATEMP, TT_HIST_EDIT, &e->temps); in c_fc() 795 afree(nhname, ATEMP); in hist_init() 1098 strdupx(as, cs, ATEMP); in gettrap() 1113 afree(as, ATEMP); in gettrap()
|
D | funcs.c | 266 afree(allocd, ATEMP); in c_pwd() 401 Xinit(xs, xp, 128, ATEMP); in c_print() 1104 strndupx(xalias, alias, val++ - alias, ATEMP); in c_alias() 1149 afree(xalias, ATEMP); in c_alias() 1562 strdupx(up, *wp, ATEMP); in c_bind() 1571 afree(up, ATEMP); in c_bind() 1892 strdupx(allocd, *wp, ATEMP); in c_read() 1907 Xinit(xs, xp, bytesleft, ATEMP); in c_read() 2058 XinitN(xs, 128, ATEMP); in c_read() 2066 afree(cp, ATEMP); in c_read() [all …]
|
D | exec.c | 110 dp = alloc(z * 2 + n, ATEMP); in execute() 147 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); in execute() 1145 afree(npath.rw, ATEMP); in findcom() 1234 Xinit(xs, xp, 128, ATEMP); in search_path() 1361 afree(sp, ATEMP); in iosetup() 1417 afree(sp, ATEMP); in iosetup() 1464 s = pushs(SSTRING, ATEMP); in hereinval() 1508 h = maketemp(ATEMP, TT_HEREDOC_EXP, &e->temps); in herein()
|
D | edit.c | 337 afree(s, ATEMP); in x_glob_hlp_tilde_and_rem_qchar() 379 s = pushs(SWSTR, ATEMP); in x_file_glob() 388 afree(s, ATEMP); in x_file_glob() 492 alloc2(nwords, sizeof(struct path_order_info), ATEMP); in x_command_glob() 507 afree(info, ATEMP); in x_command_glob() 518 afree(words[i], ATEMP); in x_command_glob() 615 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); in x_cf_glob() 659 afree(toglob, ATEMP); in x_cf_glob() 704 afree(words[--nwords], ATEMP); in x_free_words() 705 afree(words, ATEMP); in x_free_words() [all …]
|
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)
|
D | tree.c | 764 buf = alloc(sz + 16, ATEMP); in vistree() 798 afree(buf, ATEMP); in vistree()
|