Lines Matching refs:stack
1279 /* Otherwise, push the second epsilon-transition on the fail stack. */
1357 new_array = realloc (fs->stack, (sizeof (struct re_fail_stack_ent_t)
1362 fs->stack = new_array;
1364 fs->stack[num].idx = str_idx;
1365 fs->stack[num].node = dest_node;
1366 fs->stack[num].regs = re_malloc (regmatch_t, nregs);
1367 if (fs->stack[num].regs == NULL)
1369 memcpy (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs);
1370 err = re_node_set_init_copy (&fs->stack[num].eps_via_nodes, eps_via_nodes);
1381 *pidx = fs->stack[num].idx;
1382 memcpy (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs);
1384 re_free (fs->stack[num].regs);
1385 *eps_via_nodes = fs->stack[num].eps_via_nodes;
1386 return fs->stack[num].node;
1414 fs->stack = re_malloc (struct re_fail_stack_ent_t, fs->alloc);
1415 if (fs->stack == NULL)
1510 re_node_set_free (&fs->stack[fs_idx].eps_via_nodes);
1511 re_free (fs->stack[fs_idx].regs);
1513 re_free (fs->stack);