Lines Matching refs:mem
44 STACK_AT(mem_start_stk[i])->u.mem.pstr : (UChar* )((void* )(mem_start_stk[i])))
48 STACK_AT(mem_end_stk[i])->u.mem.pstr : (UChar* )((void* )(mem_end_stk[i])))
326 MemNumType mem; in print_compiled_byte_code() local
438 mem = p->backref_n.n1; in print_compiled_byte_code()
439 fprintf(f, ":%d", mem); in print_compiled_byte_code()
447 mem = (n == 1) ? p->backref_general.n1 : p->backref_general.ns[i]; in print_compiled_byte_code()
449 fprintf(f, "%d", mem); in print_compiled_byte_code()
463 mem = (n == 1) ? p->backref_general.n1 : p->backref_general.ns[i]; in print_compiled_byte_code()
465 fprintf(f, "%d", mem); in print_compiled_byte_code()
472 mem = p->memory_start.num; in print_compiled_byte_code()
473 fprintf(f, ":%d", mem); in print_compiled_byte_code()
482 mem = p->memory_end.num; in print_compiled_byte_code()
483 fprintf(f, ":%d", mem); in print_compiled_byte_code()
517 mem = p->repeat.id; in print_compiled_byte_code()
519 fprintf(f, ":%d:", mem); in print_compiled_byte_code()
525 mem = p->repeat.id; in print_compiled_byte_code()
526 fprintf(f, ":%d", mem); in print_compiled_byte_code()
530 mem = p->empty_check_start.mem; in print_compiled_byte_code()
531 fprintf(f, ":%d", mem); in print_compiled_byte_code()
538 mem = p->empty_check_end.mem; in print_compiled_byte_code()
539 fprintf(f, ":%d", mem); in print_compiled_byte_code()
572 mem = p->push_save_val.id; in print_compiled_byte_code()
573 fprintf(f, ":%d:%d", type, mem); in print_compiled_byte_code()
582 mem = p->update_var.id; in print_compiled_byte_code()
583 fprintf(f, ":%d:%d", type, mem); in print_compiled_byte_code()
589 mem = p->callout_contents.num; in print_compiled_byte_code()
590 fprintf(f, ":%d", mem); in print_compiled_byte_code()
598 mem = p->callout_name.num; in print_compiled_byte_code()
599 fprintf(f, ":%d:%d", id, mem); in print_compiled_byte_code()
1050 } mem; member
1649 stk->u.mem.pstr = (s);\
1650 stk->u.mem.prev_start = mem_start_stk[mnum];\
1651 stk->u.mem.prev_end = mem_end_stk[mnum];\
1661 stk->u.mem.pstr = (s);\
1662 stk->u.mem.prev_start = mem_start_stk[mnum];\
1663 stk->u.mem.prev_end = mem_end_stk[mnum];\
1694 if (k->type == STK_MEM_START && k->u.mem.num == (mnum)) {\
1695 if (level == 0) (start) = k->u.mem.pstr;\
1698 else if (k->type == STK_MEM_END && k->u.mem.num == (mnum)) {\
1701 (end) = k->u.mem.pstr;\
1889 mem_start_stk[stk->zid] = stk->u.mem.prev_start;\
1890 mem_end_stk[stk->zid] = stk->u.mem.prev_end;\
1901 mem_start_stk[stk->zid] = stk->u.mem.prev_start;\
1902 mem_end_stk[stk->zid] = stk->u.mem.prev_end;\
1905 mem_start_stk[stk->zid] = stk->u.mem.prev_start;\
1906 mem_end_stk[stk->zid] = stk->u.mem.prev_end;\
1925 mem_start_stk[stk->zid] = stk->u.mem.prev_start;\
1926 mem_end_stk[stk->zid] = stk->u.mem.prev_end;\
1929 mem_start_stk[stk->zid] = stk->u.mem.prev_start;\
1930 mem_end_stk[stk->zid] = stk->u.mem.prev_end;\
2021 if (k->u.mem.prev_end == INVALID_STACK_INDEX) {\
2026 (addr) = STACK_AT(k->u.mem.prev_end)->u.mem.pstr;\
2028 (addr) = (UChar* )k->u.mem.prev_end;\
2049 else if (STACK_AT(k->u.mem.prev_start)->u.mem.pstr != endp) {\
2085 else if (STACK_AT(k->u.mem.prev_start)->u.mem.pstr != endp) { \
2277 child->beg = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
2285 child->end = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
2290 node->end = (int )(k->u.mem.pstr - str); in make_capture_history_tree()
2303 static int mem_is_in_memp(int mem, int num, MemNumType* memp) in mem_is_in_memp() argument
2308 if (mem == (int )memp[i]) return 1; in mem_is_in_memp()
2337 pstart = k->u.mem.pstr; in backref_match_at_nested_level()
2361 pend = k->u.mem.pstr; in backref_match_at_nested_level()
2702 MemNumType mem; in match_at() local
3494 mem = p->memory_start.num; in match_at()
3495 STACK_PUSH_MEM_START(mem, s); in match_at()
3500 mem = p->memory_start.num; in match_at()
3501 mem_start_stk[mem] = (StackIndex )((void* )s); in match_at()
3506 mem = p->memory_end.num; in match_at()
3507 STACK_PUSH_MEM_END(mem, s); in match_at()
3512 mem = p->memory_end.num; in match_at()
3513 mem_end_stk[mem] = (StackIndex )((void* )s); in match_at()
3522 mem = p->memory_end.num; in match_at()
3523 STACK_GET_MEM_START(mem, stkp); /* should be before push mem-end. */ in match_at()
3525 STACK_PUSH_MEM_END(mem, s); in match_at()
3526 mem_start_stk[mem] = si; in match_at()
3532 mem = p->memory_end.num; in match_at()
3533 mem_end_stk[mem] = (StackIndex )((void* )s); in match_at()
3534 STACK_GET_MEM_START(mem, stkp); in match_at()
3536 if (MEM_STATUS_AT(reg->push_mem_start, mem)) in match_at()
3537 mem_start_stk[mem] = GET_STACK_INDEX(stkp); in match_at()
3539 mem_start_stk[mem] = (StackIndex )((void* )stkp->u.mem.pstr); in match_at()
3541 STACK_PUSH_MEM_END_MARK(mem); in match_at()
3547 mem = 1; in match_at()
3551 mem = 2; in match_at()
3555 mem = p->backref_n.n1; in match_at()
3561 if (mem_end_stk[mem] == INVALID_STACK_INDEX) goto fail; in match_at()
3562 if (mem_start_stk[mem] == INVALID_STACK_INDEX) goto fail; in match_at()
3564 pstart = STACK_MEM_START(reg, mem); in match_at()
3565 pend = STACK_MEM_END(reg, mem); in match_at()
3579 mem = p->backref_n.n1; in match_at()
3584 if (mem_end_stk[mem] == INVALID_STACK_INDEX) goto fail; in match_at()
3585 if (mem_start_stk[mem] == INVALID_STACK_INDEX) goto fail; in match_at()
3587 pstart = STACK_MEM_START(reg, mem); in match_at()
3588 pend = STACK_MEM_END(reg, mem); in match_at()
3608 mem = tlen == 1 ? p->backref_general.n1 : p->backref_general.ns[i]; in match_at()
3610 if (mem_end_stk[mem] == INVALID_STACK_INDEX) continue; in match_at()
3611 if (mem_start_stk[mem] == INVALID_STACK_INDEX) continue; in match_at()
3613 pstart = STACK_MEM_START(reg, mem); in match_at()
3614 pend = STACK_MEM_END(reg, mem); in match_at()
3640 mem = tlen == 1 ? p->backref_general.n1 : p->backref_general.ns[i]; in match_at()
3642 if (mem_end_stk[mem] == INVALID_STACK_INDEX) continue; in match_at()
3643 if (mem_start_stk[mem] == INVALID_STACK_INDEX) continue; in match_at()
3645 pstart = STACK_MEM_START(reg, mem); in match_at()
3646 pend = STACK_MEM_END(reg, mem); in match_at()
3706 mem = mems[i]; in match_at()
3707 if (mem_end_stk[mem] == INVALID_STACK_INDEX) continue; in match_at()
3708 if (mem_start_stk[mem] == INVALID_STACK_INDEX) continue; in match_at()
3735 mem = p->empty_check_start.mem; /* mem: null check id */ in match_at()
3736 STACK_PUSH_EMPTY_CHECK_START(mem, s); in match_at()
3744 mem = p->empty_check_end.mem; /* mem: null check id */ in match_at()
3745 STACK_EMPTY_CHECK(is_empty, mem, s); in match_at()
3749 fprintf(stderr, "EMPTY_CHECK_END: skip id:%d, s:%p\n", (int )mem, s); in match_at()
3777 mem = p->empty_check_end.mem; /* mem: null check id */ in match_at()
3778 STACK_EMPTY_CHECK_MEM(is_empty, mem, s, reg); in match_at()
3782 fprintf(stderr, "EMPTY_CHECK_END_MEM: skip id:%d, s:%p\n", (int)mem, s); in match_at()
3796 mem = p->empty_check_end.mem; /* mem: null check id */ in match_at()
3798 STACK_EMPTY_CHECK_MEM_REC(is_empty, mem, s, reg); in match_at()
3800 STACK_EMPTY_CHECK_REC(is_empty, mem, s); in match_at()
3806 (int )mem, s); in match_at()
3812 STACK_PUSH_EMPTY_CHECK_END(mem); in match_at()
3875 mem = p->repeat.id; /* mem: OP_REPEAT ID */ in match_at()
3878 STACK_PUSH_REPEAT_INC(mem, 0); in match_at()
3879 if (reg->repeat_range[mem].lower == 0) { in match_at()
3886 mem = p->repeat.id; /* mem: OP_REPEAT ID */ in match_at()
3889 STACK_PUSH_REPEAT_INC(mem, 0); in match_at()
3890 if (reg->repeat_range[mem].lower == 0) { in match_at()
3899 mem = p->repeat_inc.id; /* mem: OP_REPEAT ID */ in match_at()
3900 STACK_GET_REPEAT_COUNT(mem, n); in match_at()
3902 if (n >= reg->repeat_range[mem].upper) { in match_at()
3906 else if (n >= reg->repeat_range[mem].lower) { in match_at()
3909 p = reg->repeat_range[mem].u.pcode; in match_at()
3912 p = reg->repeat_range[mem].u.pcode; in match_at()
3914 STACK_PUSH_REPEAT_INC(mem, n); in match_at()
3918 mem = p->repeat_inc.id; /* mem: OP_REPEAT ID */ in match_at()
3919 STACK_GET_REPEAT_COUNT(mem, n); in match_at()
3921 STACK_PUSH_REPEAT_INC(mem, n); in match_at()
3922 if (n == reg->repeat_range[mem].upper) { in match_at()
3926 if (n >= reg->repeat_range[mem].lower) { in match_at()
3927 STACK_PUSH_ALT(reg->repeat_range[mem].u.pcode, s, sprev); in match_at()
3931 p = reg->repeat_range[mem].u.pcode; in match_at()
4018 mem = p->push_save_val.id; /* mem: save id */ in match_at()
4021 STACK_PUSH_SAVE_VAL(mem, type, s); in match_at()
4025 STACK_PUSH_SAVE_VAL_WITH_SPREV(mem, type, s); in match_at()
4029 STACK_PUSH_SAVE_VAL(mem, SAVE_RIGHT_RANGE, right_range); in match_at()
4042 mem = p->update_var.id; /* mem: save id */ in match_at()
4049 STACK_GET_SAVE_VAL_TYPE_LAST_ID_WITH_SPREV(SAVE_S, mem, s); in match_at()
4058 STACK_GET_SAVE_VAL_TYPE_LAST_ID(save_type, mem, right_range); in match_at()
4071 mem = p->callout_contents.num; in match_at()
4085 mem = p->callout_name.num; in match_at()
4088 e = onig_reg_callout_list_at(reg, mem); in match_at()
4092 func = onig_get_callout_start_func(reg, mem); in match_at()
4101 (int )mem, msa->mp->callout_user_data, args, call_result); in match_at()
4123 STACK_PUSH_CALLOUT_NAME(name_id, mem, func); in match_at()
4129 STACK_PUSH_CALLOUT_CONTENTS(mem, func); in match_at()