Lines Matching refs:stk

447     stk        = stk_base;\
455 stk = stk_base;\
487 StackType *x, *stk_base, *stk_end, *stk; in stack_double() local
491 stk = *arg_stk; in stack_double()
517 *arg_stk = x + (stk - stk_base); in stack_double()
524 if (stk_end - stk < (n)) {\
525 int r = stack_double(&stk_base, &stk_end, &stk, stk_alloc, msa);\
531 #define GET_STACK_INDEX(stk) ((stk) - stk_base) argument
535 stk->type = (stack_type);\
539 #define IS_TO_VOID_TARGET(stk) (((stk)->type & STK_MASK_TO_VOID_TARGET) != 0) argument
553 #define ELSE_IF_STATE_CHECK_MARK(stk) \ argument
554 else if ((stk)->type == STK_STATE_CHECK_MARK) { \
555 int x = STATE_CHECK_POS(stk->u.state.pstr, stk->u.state.state_check);\
561 stk->type = (stack_type);\
562 stk->u.state.pcode = (pat);\
563 stk->u.state.pstr = (s);\
564 stk->u.state.pstr_prev = (sprev);\
565 stk->u.state.state_check = 0;\
570 stk->type = (stack_type);\
571 stk->u.state.pcode = (pat);\
572 stk->u.state.state_check = 0;\
578 stk->type = STK_ALT;\
579 stk->u.state.pcode = (pat);\
580 stk->u.state.pstr = (s);\
581 stk->u.state.pstr_prev = (sprev);\
582 stk->u.state.state_check = ((state_check_buff != NULL) ? (snum) : 0);\
589 stk->type = STK_STATE_CHECK_MARK;\
590 stk->u.state.pstr = (s);\
591 stk->u.state.state_check = (snum);\
598 #define ELSE_IF_STATE_CHECK_MARK(stk) argument
602 stk->type = (stack_type);\
603 stk->u.state.pcode = (pat);\
604 stk->u.state.pstr = (s);\
605 stk->u.state.pstr_prev = (sprev);\
610 stk->type = (stack_type);\
611 stk->u.state.pcode = (pat);\
625 stk->type = STK_REPEAT;\
626 stk->u.repeat.num = (id);\
627 stk->u.repeat.pcode = (pat);\
628 stk->u.repeat.count = 0;\
634 stk->type = STK_REPEAT_INC;\
635 stk->u.repeat_inc.si = (sindex);\
641 stk->type = STK_MEM_START;\
642 stk->u.mem.num = (mnum);\
643 stk->u.mem.pstr = (s);\
644 stk->u.mem.start = mem_start_stk[mnum];\
645 stk->u.mem.end = mem_end_stk[mnum];\
646 mem_start_stk[mnum] = GET_STACK_INDEX(stk);\
653 stk->type = STK_MEM_END;\
654 stk->u.mem.num = (mnum);\
655 stk->u.mem.pstr = (s);\
656 stk->u.mem.start = mem_start_stk[mnum];\
657 stk->u.mem.end = mem_end_stk[mnum];\
658 mem_end_stk[mnum] = GET_STACK_INDEX(stk);\
664 stk->type = STK_MEM_END_MARK;\
665 stk->u.mem.num = (mnum);\
671 k = stk;\
687 while (k < stk) {\
705 stk->type = STK_NULL_CHECK_START;\
706 stk->u.null_check.num = (cnum);\
707 stk->u.null_check.pstr = (s);\
713 stk->type = STK_NULL_CHECK_END;\
714 stk->u.null_check.num = (cnum);\
720 stk->type = STK_CALL_FRAME;\
721 stk->u.call_frame.ret_addr = (pat);\
727 stk->type = STK_RETURN;\
743 stk--;\
744 STACK_BASE_CHECK(stk, "STACK_POP_ONE"); \
751 stk--;\
752 STACK_BASE_CHECK(stk, "STACK_POP"); \
753 if ((stk->type & STK_MASK_POP_USED) != 0) break;\
754 ELSE_IF_STATE_CHECK_MARK(stk);\
759 stk--;\
760 STACK_BASE_CHECK(stk, "STACK_POP 2"); \
761 if ((stk->type & STK_MASK_POP_USED) != 0) break;\
762 else if (stk->type == STK_MEM_START) {\
763 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
764 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
766 ELSE_IF_STATE_CHECK_MARK(stk);\
771 stk--;\
772 STACK_BASE_CHECK(stk, "STACK_POP 3"); \
773 if ((stk->type & STK_MASK_POP_USED) != 0) break;\
774 else if (stk->type == STK_MEM_START) {\
775 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
776 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
778 else if (stk->type == STK_REPEAT_INC) {\
779 STACK_AT(stk->u.repeat_inc.si)->u.repeat.count--;\
781 else if (stk->type == STK_MEM_END) {\
782 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
783 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
785 ELSE_IF_STATE_CHECK_MARK(stk);\
793 stk--;\
794 STACK_BASE_CHECK(stk, "STACK_POP_TIL_POS_NOT"); \
795 if (stk->type == STK_POS_NOT) break;\
796 else if (stk->type == STK_MEM_START) {\
797 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
798 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
800 else if (stk->type == STK_REPEAT_INC) {\
801 STACK_AT(stk->u.repeat_inc.si)->u.repeat.count--;\
803 else if (stk->type == STK_MEM_END) {\
804 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
805 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
807 ELSE_IF_STATE_CHECK_MARK(stk);\
813 stk--;\
814 STACK_BASE_CHECK(stk, "STACK_POP_TIL_LOOK_BEHIND_NOT"); \
815 if (stk->type == STK_LOOK_BEHIND_NOT) break;\
816 else if (stk->type == STK_MEM_START) {\
817 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
818 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
820 else if (stk->type == STK_REPEAT_INC) {\
821 STACK_AT(stk->u.repeat_inc.si)->u.repeat.count--;\
823 else if (stk->type == STK_MEM_END) {\
824 mem_start_stk[stk->u.mem.num] = stk->u.mem.start;\
825 mem_end_stk[stk->u.mem.num] = stk->u.mem.end;\
827 ELSE_IF_STATE_CHECK_MARK(stk);\
832 k = stk;\
847 StackType *k = stk;\
862 StackType* k = stk;\
877 StackType* k = stk;\
897 StackType* k = stk;\
910 while (k < stk) {\
937 StackType* k = stk;\
951 while (k < stk) {\
985 k = stk;\
1003 StackType* k = stk;\
1341 stk++;\
1342 if (stk - stk_base > MaxStackDepth) \
1343 MaxStackDepth = stk - stk_base;\
1347 #define STACK_INC stk++
1438 StackType *stk_alloc, *stk_base, *stk, *stk_end; in match_at() local
1577 stk, (UChar* )str, reg); in match_at()
2475 if (backref_match_at_nested_level(reg, stk, stk_base, ic, ambig_flag in match_at()
2687 repeat_stk[mem] = GET_STACK_INDEX(stk); in match_at()
2704 repeat_stk[mem] = GET_STACK_INDEX(stk); in match_at()
2879 p = stk->u.state.pcode; in match_at()
2880 s = stk->u.state.pstr; in match_at()
2881 sprev = stk->u.state.pstr_prev; in match_at()
2884 if (stk->u.state.state_check != 0) { in match_at()
2885 stk->type = STK_STATE_CHECK_MARK; in match_at()
2886 stk++; in match_at()