Lines Matching refs:k

614 #define STACK_GET_MEM_START(mnum, k) do {\  argument
616 k = stk;\
617 while (k > stk_base) {\
618 k--;\
619 if ((k->type & STK_MASK_MEM_END_OR_MARK) != 0 \
620 && k->u.mem.num == (mnum)) {\
623 else if (k->type == STK_MEM_START && k->u.mem.num == (mnum)) {\
630 #define STACK_GET_MEM_RANGE(k, mnum, start, end) do {\ argument
632 while (k < stk) {\
633 if (k->type == STK_MEM_START && k->u.mem.num == (mnum)) {\
634 if (level == 0) (start) = k->u.mem.pstr;\
637 else if (k->type == STK_MEM_END && k->u.mem.num == (mnum)) {\
640 (end) = k->u.mem.pstr;\
644 k++;\
776 #define STACK_POS_END(k) do {\ argument
777 k = stk;\
779 k--;\
780 STACK_BASE_CHECK(k, "STACK_POS_END"); \
781 if (IS_TO_VOID_TARGET(k)) {\
782 k->type = STK_VOID;\
784 else if (k->type == STK_POS) {\
785 k->type = STK_VOID;\
792 OnigStackType *k = stk;\
794 k--;\
795 STACK_BASE_CHECK(k, "STACK_STOP_BT_END"); \
796 if (IS_TO_VOID_TARGET(k)) {\
797 k->type = STK_VOID;\
799 else if (k->type == STK_STOP_BT) {\
800 k->type = STK_VOID;\
807 OnigStackType* k = stk;\
809 k--;\
810 STACK_BASE_CHECK(k, "STACK_NULL_CHECK"); \
811 if (k->type == STK_NULL_CHECK_START) {\
812 if (k->u.null_check.num == (id)) {\
813 (isnull) = (k->u.null_check.pstr == (s));\
822 OnigStackType* k = stk;\
824 k--;\
825 STACK_BASE_CHECK(k, "STACK_NULL_CHECK_REC"); \
826 if (k->type == STK_NULL_CHECK_START) {\
827 if (k->u.null_check.num == (id)) {\
829 (isnull) = (k->u.null_check.pstr == (s));\
835 else if (k->type == STK_NULL_CHECK_END) {\
842 OnigStackType* k = stk;\
844 k--;\
845 STACK_BASE_CHECK(k, "STACK_NULL_CHECK_MEMST"); \
846 if (k->type == STK_NULL_CHECK_START) {\
847 if (k->u.null_check.num == (id)) {\
848 if (k->u.null_check.pstr != (s)) {\
855 while (k < stk) {\
856 if (k->type == STK_MEM_START) {\
857 if (k->u.mem.end == INVALID_STACK_INDEX) {\
860 if (BIT_STATUS_AT(reg->bt_mem_end, k->u.mem.num))\
861 endp = STACK_AT(k->u.mem.end)->u.mem.pstr;\
863 endp = (UChar* )k->u.mem.end;\
864 if (STACK_AT(k->u.mem.start)->u.mem.pstr != endp) {\
871 k++;\
882 OnigStackType* k = stk;\
884 k--;\
885 STACK_BASE_CHECK(k, "STACK_NULL_CHECK_MEMST_REC"); \
886 if (k->type == STK_NULL_CHECK_START) {\
887 if (k->u.null_check.num == (id)) {\
889 if (k->u.null_check.pstr != (s)) {\
896 while (k < stk) {\
897 if (k->type == STK_MEM_START) {\
898 if (k->u.mem.end == INVALID_STACK_INDEX) {\
901 if (BIT_STATUS_AT(reg->bt_mem_end, k->u.mem.num))\
902 endp = STACK_AT(k->u.mem.end)->u.mem.pstr;\
904 endp = (UChar* )k->u.mem.end;\
905 if (STACK_AT(k->u.mem.start)->u.mem.pstr != endp) {\
912 k++;\
922 else if (k->type == STK_NULL_CHECK_END) {\
923 if (k->u.null_check.num == (id)) level++;\
928 #define STACK_GET_REPEAT(id, k) do {\ argument
930 k = stk;\
932 k--;\
933 STACK_BASE_CHECK(k, "STACK_GET_REPEAT"); \
934 if (k->type == STK_REPEAT) {\
936 if (k->u.repeat.num == (id)) {\
941 else if (k->type == STK_CALL_FRAME) level--;\
942 else if (k->type == STK_RETURN) level++;\
948 OnigStackType* k = stk;\
950 k--;\
951 STACK_BASE_CHECK(k, "STACK_RETURN"); \
952 if (k->type == STK_CALL_FRAME) {\
954 (addr) = k->u.call_frame.ret_addr;\
959 else if (k->type == STK_RETURN)\
1042 OnigStackType* k = *kp; in make_capture_history_tree() local
1044 while (k < stk_top) { in make_capture_history_tree()
1045 if (k->type == STK_MEM_START) { in make_capture_history_tree()
1046 n = k->u.mem.num; in make_capture_history_tree()
1052 child->beg = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
1055 *kp = (k + 1); in make_capture_history_tree()
1059 k = *kp; in make_capture_history_tree()
1060 child->end = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
1063 else if (k->type == STK_MEM_END) { in make_capture_history_tree()
1064 if (k->u.mem.num == node->group) { in make_capture_history_tree()
1065 node->end = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
1066 *kp = k; in make_capture_history_tree()
1070 k++; in make_capture_history_tree()
1097 OnigStackType* k; in backref_match_at_nested_level() local
1100 k = top; in backref_match_at_nested_level()
1101 k--; in backref_match_at_nested_level()
1102 while (k >= stk_base) { in backref_match_at_nested_level()
1103 if (k->type == STK_CALL_FRAME) { in backref_match_at_nested_level()
1106 else if (k->type == STK_RETURN) { in backref_match_at_nested_level()
1110 if (k->type == STK_MEM_START) { in backref_match_at_nested_level()
1111 if (mem_is_in_memp(k->u.mem.num, mem_num, memp)) { in backref_match_at_nested_level()
1112 pstart = k->u.mem.pstr; in backref_match_at_nested_level()
1134 else if (k->type == STK_MEM_END) { in backref_match_at_nested_level()
1135 if (mem_is_in_memp(k->u.mem.num, mem_num, memp)) { in backref_match_at_nested_level()
1136 pend = k->u.mem.pstr; in backref_match_at_nested_level()
1140 k--; in backref_match_at_nested_level()