/third_party/mksh/ |
D | eval.c | 130 s = pushs(SWSTR, ATEMP); in substitute() 136 afree(s, ATEMP); in substitute() 271 Xinit(ds, dp, 128, ATEMP); in expand() 400 beg = wdcopy(sp, ATEMP); in expand() 407 afree(beg, ATEMP); in expand() 420 newst = alloc(sizeof(SubType), ATEMP); in expand() 451 beg = wdcopy(sp, ATEMP); in expand() 469 afree(stg, ATEMP); in expand() 473 afree(stg, ATEMP); in expand() 475 afree(beg, ATEMP); in expand() [all …]
|
D | syn.c | 202 yylval.cp = wdcopy(IONDELIM_delim, ATEMP); in synio() 221 nextiop = alloc(sizeof(*iop), ATEMP); in synio() 222 nextiop->ioname = cp = alloc(3, ATEMP); in synio() 349 XPput(args, wdcopy(builtin_cmd, ATEMP)); in get_command() 350 XPput(args, wdcopy(setA_cmd0, ATEMP)); in get_command() 351 XPput(args, wdcopy(setA_cmd1, ATEMP)); in get_command() 353 XPput(args, wdcopy(setA_cmd2, ATEMP)); in get_command() 363 afree(t, ATEMP); in get_command() 414 XPput(args, wdcopy(builtin_cmd, ATEMP)); in get_command() 415 XPput(args, wdcopy(let_cmd, ATEMP)); in get_command() [all …]
|
D | misc.c | 239 strndupx(cp, m, cp - m, ATEMP); in getoptions() 609 cp = alloc(strlen((const void *)sp) + 1, ATEMP); in simplify_gmatch_pattern() 697 char *t = len <= sizeof(tbuf) ? tbuf : alloc(len, ATEMP); in gmatchx() 713 afree(pnew, ATEMP); in gmatchx() 1066 strndupx(subp, s, p - s - 3, ATEMP); in gmatch_cclass() 1085 afree(subp, ATEMP); in gmatch_cclass() 1097 afree(subp, ATEMP); in gmatch_cclass() 1158 strndupx(subp, s, p - s - 3, ATEMP); in gmatch_cclass() 1182 afree(subp, ATEMP); in gmatch_cclass() 1553 str = alloc(max_oct, ATEMP); in print_columns() [all …]
|
D | os2.c | 226 strdupx(cp, val, ATEMP); in setextlibpath() 234 afree(cp, ATEMP); in setextlibpath() 302 x_name = alloc(x_namelen, ATEMP); in access_stat_ex() 312 afree(x_name, ATEMP); in access_stat_ex() 352 strdupx(real_name, name, ATEMP); in test_exec_exist() 390 strdupx(result, rsp_name_arg, ATEMP); in make_response_file() 474 afree(rsp_name_arg, ATEMP); in execve() 581 cp = aresize(*cpp, (size_t)sz + (size_t)4, ATEMP); in getdrvwd() 593 afree(cp, ATEMP); in getdrvwd()
|
D | lex.c | 173 ri = alloc(sizeof(struct sretrace_info), ATEMP); \ 174 Xinit(ri->xs, ri->xp, 64, ATEMP); \ 185 afree(dp, ATEMP); \ 215 Xinit(ws, wp, 64, ATEMP); in yylex() 297 afree(tmp, ATEMP); in yylex() 657 afree(sp, ATEMP); in yylex() 878 afree(sp, ATEMP); in yylex() 915 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); in yylex() 961 afree(iop, ATEMP); in yylex() 1049 afree(yylval.cp, ATEMP); in yylex() [all …]
|
D | var.c | 73 l = alloc(sizeof(struct block), ATEMP); in newblock() 115 afree(l, ATEMP); in popblock() 192 strndupx(vn, n, p - n, ATEMP); in array_index_calc() 195 afree(vn, ATEMP); in array_index_calc() 202 afree(ap, ATEMP); in array_index_calc() 217 tmp = alloc((len > tmplen ? len : tmplen) + 1, ATEMP); in array_index_calc() 223 afree(sub, ATEMP); in array_index_calc() 265 vp->areap = ATEMP; in isglobal() 327 afree(vname.rw, ATEMP); in isglobal() 353 vp->areap = ATEMP; in local() [all …]
|
D | expr.c | 592 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 594 afree(tvar, ATEMP); in exprtoken() 601 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 615 tvar = alloc(c + /* NUL */ 1, ATEMP); in exprtoken() 625 strndupx(tvar, es->tokp, --cp - es->tokp, ATEMP); in exprtoken() 633 afree(tvar, ATEMP); in exprtoken() 668 vp = alloc(offsetof(struct tbl, name[0]) + vsize, ATEMP); in tempvar() 672 vp->areap = ATEMP; in tempvar()
|
D | funcs.c | 283 afree(allocd, ATEMP); in c_pwd() 459 Xinit(xs, xp, 128, ATEMP); in c_print() 519 Xinit(xs, xp, 128, ATEMP); in c_print() 536 afree(XPptrv(po.words)[w], ATEMP); in c_print() 726 char *xp = alloc(xlen + 1 + clen, ATEMP); in do_whence() 735 afree(xp, ATEMP); in do_whence() 889 strndupx(xalias, alias, val++ - alias, ATEMP); in c_alias() 894 afree(xalias, ATEMP); in c_alias() 938 afree(xalias, ATEMP); in c_alias() 1702 strdupx(allocd, *wp, ATEMP); in c_read() [all …]
|
D | main.c | 215 strdupx(x, cx, ATEMP); in isuc() 225 afree(x, ATEMP); in isuc() 509 s = pushs(SSTRINGCMDLINE, ATEMP); in main_init() 528 s = pushs(SFILE, ATEMP); in main_init() 556 s = pushs(SSTDIN, ATEMP); in main_init() 820 s = pushs(SFILE, ATEMP); in include() 822 strdupx(s->file, name, ATEMP); in include() 840 s = pushs(SSTRING, ATEMP); in command() 1038 cp = alloc(sizeof(struct env) - sizeof(ALLOC_ITEM), ATEMP); in newenv() 1135 afree(cp + sizeof(ALLOC_ITEM), ATEMP); in quitenv() [all …]
|
D | histrap.c | 112 editor = alloc(len + 4, ATEMP); in c_fc() 171 strdupx(pat, *wp, ATEMP); in c_fc() 190 strdupx(line, *hp, ATEMP); in c_fc() 200 Xinit(xs, xp, 128, ATEMP); in c_fc() 223 return (hist_execute(line, ATEMP)); in c_fc() 295 tf = maketemp(ATEMP, TT_HIST_EDIT, &e->temps); in c_fc() 857 afree(nhname, ATEMP); in hist_persist_init() 1196 strdupx(as, cs, ATEMP); in gettrap() 1221 afree(as, ATEMP); in gettrap()
|
D | shf.c | 60 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open() 61 shf->areap = ATEMP; in shf_open() 138 shf->buf = alloc(bsize, ATEMP); in shf_fdopen() 143 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_fdopen() 147 shf->areap = ATEMP; in shf_fdopen() 206 shf = alloc(sizeof(struct shf), ATEMP); in shf_sopen() 209 shf->areap = ATEMP; in shf_sopen()
|
D | edit.c | 363 afree(s, ATEMP); in x_glob_hlp_tilde_and_rem_qchar() 405 s = pushs(SWSTR, ATEMP); in x_file_glob() 414 afree(s, ATEMP); in x_file_glob() 523 alloc2(nwords, sizeof(struct path_order_info), ATEMP); in x_command_glob() 538 afree(info, ATEMP); in x_command_glob() 549 afree(words[i], ATEMP); in x_command_glob() 643 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); in x_cf_glob() 688 afree(toglob, ATEMP); in x_cf_glob() 733 afree(words[--nwords], ATEMP); in x_free_words() 734 afree(words, ATEMP); in x_free_words() [all …]
|
D | exec.c | 116 afree(dp, ATEMP); in execute() 135 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); in execute() 1237 afree(npath.rw, ATEMP); in findcom() 1345 Xinit(xs, xp, 128, ATEMP); in search_path() 1487 afree(sp, ATEMP); in iosetup() 1556 afree(sp, ATEMP); in iosetup() 1605 s = pushs(SSTRING, ATEMP); in hereinval() 1642 h = maketemp(ATEMP, TT_HEREDOC_EXP, &e->temps); in herein()
|
D | sh.h | 725 char *strdup_dst = alloc(strndup_len + strndup_ln2, ATEMP); \ 737 char *strdup_dst = alloc(strndup_len + strndup_ln2, ATEMP); \ 824 #define ATEMP &e->area macro 2147 (x).beg = alloc2((x).siz, sizeof(void *), ATEMP); \ 2153 2 * sizeof(void *), ATEMP); \ 2161 #define XPclose(x) aresize2((x).beg, XPsize(x), sizeof(void *), ATEMP) 2162 #define XPfree(x) afree((x).beg, ATEMP)
|
D | tree.c | 112 afree(cp, ATEMP); in ptree() 791 buf = alloc(sz + 16, ATEMP); in vistree() 825 afree(buf, ATEMP); in vistree()
|