Home | History | Annotate | Download | only in lib

Lines Matching refs:stack

1324 	      /* Otherwise, push the second epsilon-transition on the fail stack.  */
1402 new_array = realloc (fs->stack, (sizeof (struct re_fail_stack_ent_t)
1407 fs->stack = new_array;
1409 fs->stack[num].idx = str_idx;
1410 fs->stack[num].node = dest_node;
1411 fs->stack[num].regs = re_malloc (regmatch_t, nregs);
1412 if (fs->stack[num].regs == NULL)
1414 memcpy (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs);
1415 err = re_node_set_init_copy (&fs->stack[num].eps_via_nodes, eps_via_nodes);
1426 *pidx = fs->stack[num].idx;
1427 memcpy (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs);
1429 re_free (fs->stack[num].regs);
1430 *eps_via_nodes = fs->stack[num].eps_via_nodes;
1431 return fs->stack[num].node;
1459 fs->stack = re_malloc (struct re_fail_stack_ent_t, fs->alloc);
1460 if (fs->stack == NULL)
1555 re_node_set_free (&fs->stack[fs_idx].eps_via_nodes);
1556 re_free (fs->stack[fs_idx].regs);
1558 re_free (fs->stack);