Lines Matching refs:k

669 #define STACK_GET_MEM_START(mnum, k) do {\  argument
671 k = stk;\
672 while (k > stk_base) {\
673 k--;\
674 if ((k->type & STK_MASK_MEM_END_OR_MARK) != 0 \
675 && k->u.mem.num == (mnum)) {\
678 else if (k->type == STK_MEM_START && k->u.mem.num == (mnum)) {\
685 #define STACK_GET_MEM_RANGE(k, mnum, start, end) do {\ argument
687 while (k < stk) {\
688 if (k->type == STK_MEM_START && k->u.mem.num == (mnum)) {\
689 if (level == 0) (start) = k->u.mem.pstr;\
692 else if (k->type == STK_MEM_END && k->u.mem.num == (mnum)) {\
695 (end) = k->u.mem.pstr;\
699 k++;\
831 #define STACK_POS_END(k) do {\ argument
832 k = stk;\
834 k--;\
835 STACK_BASE_CHECK(k, "STACK_POS_END"); \
836 if (IS_TO_VOID_TARGET(k)) {\
837 k->type = STK_VOID;\
839 else if (k->type == STK_POS) {\
840 k->type = STK_VOID;\
847 StackType *k = stk;\
849 k--;\
850 STACK_BASE_CHECK(k, "STACK_STOP_BT_END"); \
851 if (IS_TO_VOID_TARGET(k)) {\
852 k->type = STK_VOID;\
854 else if (k->type == STK_STOP_BT) {\
855 k->type = STK_VOID;\
862 StackType* k = stk;\
864 k--;\
865 STACK_BASE_CHECK(k, "STACK_NULL_CHECK"); \
866 if (k->type == STK_NULL_CHECK_START) {\
867 if (k->u.null_check.num == (id)) {\
868 (isnull) = (k->u.null_check.pstr == (s));\
877 StackType* k = stk;\
879 k--;\
880 STACK_BASE_CHECK(k, "STACK_NULL_CHECK_REC"); \
881 if (k->type == STK_NULL_CHECK_START) {\
882 if (k->u.null_check.num == (id)) {\
884 (isnull) = (k->u.null_check.pstr == (s));\
890 else if (k->type == STK_NULL_CHECK_END) {\
897 StackType* k = stk;\
899 k--;\
900 STACK_BASE_CHECK(k, "STACK_NULL_CHECK_MEMST"); \
901 if (k->type == STK_NULL_CHECK_START) {\
902 if (k->u.null_check.num == (id)) {\
903 if (k->u.null_check.pstr != (s)) {\
910 while (k < stk) {\
911 if (k->type == STK_MEM_START) {\
912 if (k->u.mem.end == INVALID_STACK_INDEX) {\
915 if (BIT_STATUS_AT(reg->bt_mem_end, k->u.mem.num))\
916 endp = STACK_AT(k->u.mem.end)->u.mem.pstr;\
918 endp = (UChar* )k->u.mem.end;\
919 if (STACK_AT(k->u.mem.start)->u.mem.pstr != endp) {\
926 k++;\
937 StackType* k = stk;\
939 k--;\
940 STACK_BASE_CHECK(k, "STACK_NULL_CHECK_MEMST_REC"); \
941 if (k->type == STK_NULL_CHECK_START) {\
942 if (k->u.null_check.num == (id)) {\
944 if (k->u.null_check.pstr != (s)) {\
951 while (k < stk) {\
952 if (k->type == STK_MEM_START) {\
953 if (k->u.mem.end == INVALID_STACK_INDEX) {\
956 if (BIT_STATUS_AT(reg->bt_mem_end, k->u.mem.num))\
957 endp = STACK_AT(k->u.mem.end)->u.mem.pstr;\
959 endp = (UChar* )k->u.mem.end;\
960 if (STACK_AT(k->u.mem.start)->u.mem.pstr != endp) {\
967 k++;\
977 else if (k->type == STK_NULL_CHECK_END) {\
978 if (k->u.null_check.num == (id)) level++;\
983 #define STACK_GET_REPEAT(id, k) do {\ argument
985 k = stk;\
987 k--;\
988 STACK_BASE_CHECK(k, "STACK_GET_REPEAT"); \
989 if (k->type == STK_REPEAT) {\
991 if (k->u.repeat.num == (id)) {\
996 else if (k->type == STK_CALL_FRAME) level--;\
997 else if (k->type == STK_RETURN) level++;\
1003 StackType* k = stk;\
1005 k--;\
1006 STACK_BASE_CHECK(k, "STACK_RETURN"); \
1007 if (k->type == STK_CALL_FRAME) {\
1009 (addr) = k->u.call_frame.ret_addr;\
1014 else if (k->type == STK_RETURN)\
1092 StackType* k = *kp; in make_capture_history_tree() local
1094 while (k < stk_top) { in make_capture_history_tree()
1095 if (k->type == STK_MEM_START) { in make_capture_history_tree()
1096 n = k->u.mem.num; in make_capture_history_tree()
1102 child->beg = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
1105 *kp = (k + 1); in make_capture_history_tree()
1109 k = *kp; in make_capture_history_tree()
1110 child->end = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
1113 else if (k->type == STK_MEM_END) { in make_capture_history_tree()
1114 if (k->u.mem.num == node->group) { in make_capture_history_tree()
1115 node->end = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
1116 *kp = k; in make_capture_history_tree()
1120 k++; in make_capture_history_tree()
1147 StackType* k; in backref_match_at_nested_level() local
1150 k = top; in backref_match_at_nested_level()
1151 k--; in backref_match_at_nested_level()
1152 while (k >= stk_base) { in backref_match_at_nested_level()
1153 if (k->type == STK_CALL_FRAME) { in backref_match_at_nested_level()
1156 else if (k->type == STK_RETURN) { in backref_match_at_nested_level()
1160 if (k->type == STK_MEM_START) { in backref_match_at_nested_level()
1161 if (mem_is_in_memp(k->u.mem.num, mem_num, memp)) { in backref_match_at_nested_level()
1162 pstart = k->u.mem.pstr; in backref_match_at_nested_level()
1184 else if (k->type == STK_MEM_END) { in backref_match_at_nested_level()
1185 if (mem_is_in_memp(k->u.mem.num, mem_num, memp)) { in backref_match_at_nested_level()
1186 pend = k->u.mem.pstr; in backref_match_at_nested_level()
1190 k--; in backref_match_at_nested_level()