Lines Matching refs:fail_stack

1485 #  define FAIL_STACK_EMPTY()     (fail_stack.avail == 0)
1487 # define FAIL_STACK_FULL() (fail_stack.avail == fail_stack.size)
1497 fail_stack.stack = (PREFIX(fail_stack_elt_t) *) \
1500 if (fail_stack.stack == NULL) \
1503 fail_stack.size = INIT_FAILURE_ALLOC; \
1504 fail_stack.avail = 0; \
1507 # define RESET_FAIL_STACK() REGEX_FREE_STACK (fail_stack.stack)
1511 fail_stack.avail = 0; \
1525 # define DOUBLE_FAIL_STACK(fail_stack) \ argument
1526 ((fail_stack).size > (unsigned) (re_max_failures * MAX_FAILURE_ITEMS) \
1528 : ((fail_stack).stack = (PREFIX(fail_stack_elt_t) *) \
1529 REGEX_REALLOCATE_STACK ((fail_stack).stack, \
1530 (fail_stack).size * sizeof (PREFIX(fail_stack_elt_t)), \
1531 ((fail_stack).size << 1) * sizeof (PREFIX(fail_stack_elt_t))),\
1533 (fail_stack).stack == NULL \
1535 : ((fail_stack).size <<= 1, \
1553 fail_stack.stack[fail_stack.avail++].pointer = (UCHAR_T *) (item)
1559 fail_stack.stack[fail_stack.avail++].integer = (item)
1565 fail_stack.stack[fail_stack.avail++] = (item)
1569 # define POP_FAILURE_POINTER() fail_stack.stack[--fail_stack.avail].pointer
1570 # define POP_FAILURE_INT() fail_stack.stack[--fail_stack.avail].integer
1571 # define POP_FAILURE_ELT() fail_stack.stack[--fail_stack.avail]
1605 DEBUG_PRINT2 (" Before push, next avail: %d\n", (fail_stack).avail);\
1606 DEBUG_PRINT2 (" size: %d\n", (fail_stack).size);\
1614 if (!DOUBLE_FAIL_STACK (fail_stack)) \
1618 (fail_stack).size); \
1697 # define REMAINING_AVAIL_SLOTS ((fail_stack).size - (fail_stack).avail)
1722 DEBUG_PRINT2 (" Before pop, next avail: %d\n", fail_stack.avail); \
1723 DEBUG_PRINT2 (" size: %d\n", fail_stack.size); \
1725 assert (fail_stack.avail >= NUM_NONREG_ITEMS); \
2210 static PREFIX(fail_stack_type) fail_stack;
4191 if (fail_stack.size < (2 * re_max_failures * MAX_FAILURE_ITEMS)) in PREFIX()
4193 fail_stack.size = (2 * re_max_failures * MAX_FAILURE_ITEMS); in PREFIX()
4196 if (! fail_stack.stack) in PREFIX()
4197 fail_stack.stack in PREFIX()
4198 = (PREFIX(fail_stack_elt_t) *) xmalloc (fail_stack.size in PREFIX()
4201 fail_stack.stack in PREFIX()
4202 = (PREFIX(fail_stack_elt_t) *) xrealloc (fail_stack.stack, in PREFIX()
4203 (fail_stack.size in PREFIX()
4206 if (! fail_stack.stack) in PREFIX()
4207 fail_stack.stack in PREFIX()
4208 = (PREFIX(fail_stack_elt_t) *) malloc (fail_stack.size in PREFIX()
4211 fail_stack.stack in PREFIX()
4212 = (PREFIX(fail_stack_elt_t) *) realloc (fail_stack.stack, in PREFIX()
4213 (fail_stack.size in PREFIX()
4547 PREFIX(fail_stack_type) fail_stack; in PREFIX()
4600 p = fail_stack.stack[--fail_stack.avail].pointer; in PREFIX()
4772 && fail_stack.stack[fail_stack.avail - 1].pointer == p) in PREFIX()
4773 fail_stack.avail--; in PREFIX()
4792 if (!PUSH_PATTERN_OP (p + j, fail_stack)) in PREFIX()
5328 REGEX_FREE_STACK (fail_stack.stack); \
5349 REGEX_FREE_STACK (fail_stack.stack); \
5598 PREFIX(fail_stack_type) fail_stack; in wcs_re_match_2_internal()