Searched refs:alloc2 (Results 1 - 9 of 9) sorted by relevance

/external/mksh/src/
H A Dtree.c502 rw = r->vars = alloc2(tw - (const char **)t->vars + 1,
516 r->args = (const char **)(rw = alloc2(tw - t->args + 1,
621 ior = alloc2(ior - iow + 1, sizeof(struct ioword *), ap);
H A Dmain.c1502 ntblp = alloc2(i, sizeof(struct tbl *), tp->areap);
1503 /* multiplication cannot overflow: alloc2 checked that */
1644 p = alloc2(i, sizeof(struct tbl *), ATEMP);
H A Dsh.h1334 XPinit_vp = alloc2((n), sizeof(void *), ATEMP); \
1535 #define alloc2(m, n, ap) aresize2(NULL, (m), (n), (ap)) macro
H A Dhistrap.c596 history = alloc2(histsize, sizeof(char *), APERM);
H A Dlex.c1804 Lex_state *news = alloc2(STATE_BSIZE, sizeof(Lex_state), ATEMP);
H A Dsyn.c245 iops = alloc2((NUFILE + 1), sizeof(struct ioword *), ATEMP);
H A Dexec.c152 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP);
H A Dedit.c419 alloc2(nwords, sizeof(struct path_order_info), ATEMP);
2505 x_tab = alloc2(X_NTABS, sizeof(*x_tab), AEDIT);
2516 x_atab = alloc2(X_NTABS, sizeof(*x_atab), AEDIT);
H A Dfuncs.c2381 l->argv = alloc2(l->argc + 2, sizeof(char *), &l->area);

Completed in 156 milliseconds