Lines Matching refs:msa
952 args.msa = msa;\
1092 MatchArg* msa; member
1138 #define MATCH_ARG_INIT(msa, reg, arg_option, arg_region, arg_start, mpv) do { \ argument
1139 (msa).stack_p = (void* )0;\
1140 (msa).options = (arg_option);\
1141 (msa).region = (arg_region);\
1142 (msa).start = (arg_start);\
1143 (msa).match_stack_limit = (mpv)->match_stack_limit;\
1144 (msa).retry_limit_in_match = (mpv)->retry_limit_in_match;\
1145 (msa).mp = mpv;\
1146 (msa).best_len = ONIG_MISMATCH;\
1147 (msa).ptr_num = PTR_NUM_SIZE(reg);\
1150 #define MATCH_ARG_INIT(msa, reg, arg_option, arg_region, arg_start, mpv) do { \ argument
1151 (msa).stack_p = (void* )0;\
1152 (msa).options = (arg_option);\
1153 (msa).region = (arg_region);\
1154 (msa).start = (arg_start);\
1155 (msa).match_stack_limit = (mpv)->match_stack_limit;\
1156 (msa).retry_limit_in_match = (mpv)->retry_limit_in_match;\
1157 (msa).mp = mpv;\
1158 (msa).ptr_num = PTR_NUM_SIZE(reg);\
1162 #define MATCH_ARG_FREE(msa) if ((msa).stack_p) xfree((msa).stack_p) argument
1168 if (msa->stack_p) {\
1170 alloc_base = msa->stack_p;\
1172 + (sizeof(StackIndex) * msa->ptr_num));\
1174 stk_end = stk_base + msa->stack_n;\
1176 else if (msa->ptr_num > ALLOCA_PTR_NUM_LIMIT) {\
1178 alloc_base = (char* )xmalloc(sizeof(StackIndex) * msa->ptr_num\
1182 + (sizeof(StackIndex) * msa->ptr_num));\
1188 alloc_base = (char* )xalloca(sizeof(StackIndex) * msa->ptr_num\
1192 + (sizeof(StackIndex) * msa->ptr_num));\
1200 msa->stack_n = (int )(stk_end - stk_base);\
1202 size_t size = sizeof(StackIndex) * msa->ptr_num \
1203 + sizeof(StackType) * msa->stack_n;\
1204 msa->stack_p = xmalloc(size);\
1205 CHECK_NULL_RETURN_MEMERR(msa->stack_p);\
1206 xmemcpy(msa->stack_p, alloc_base, size);\
1209 msa->stack_p = alloc_base;\
1365 mp = args->msa->mp; in onig_check_callout_data_and_clear_old_values()
1400 return onig_get_callout_data_dont_clear_old(args->regex, args->msa->mp, in onig_get_callout_data_by_callout_args_self_dont_clear_old()
1445 return onig_get_callout_data(args->regex, args->msa->mp, callout_num, slot, in onig_get_callout_data_by_callout_args()
1453 return onig_get_callout_data(args->regex, args->msa->mp, args->num, slot, in onig_get_callout_data_by_callout_args_self()
1493 return onig_set_callout_data(args->regex, args->msa->mp, callout_num, slot, in onig_set_callout_data_by_callout_args()
1501 return onig_set_callout_data(args->regex, args->msa->mp, args->num, slot, in onig_set_callout_data_by_callout_args_self()
1513 MatchArg* msa) in stack_double() argument
1529 size = sizeof(StackIndex) * msa->ptr_num + sizeof(StackType) * n; in stack_double()
1531 new_size = sizeof(StackIndex) * msa->ptr_num + sizeof(StackType) * n; in stack_double()
1541 if (msa->match_stack_limit != 0 && n > msa->match_stack_limit) { in stack_double()
1542 if ((unsigned int )(stk_end - stk_base) == msa->match_stack_limit) in stack_double()
1545 n = msa->match_stack_limit; in stack_double()
1558 + (sizeof(StackIndex) * msa->ptr_num)); in stack_double()
1566 int r = stack_double(is_alloca, &alloc_base, &stk_base, &stk_end, &stk, msa);\
1868 …RETRACTION_CALLOUT(stk->u.callout.func, stk->zid, stk->u.callout.num, msa->mp->callout_user_data);\
2585 MatchArg* msa) in match_at() argument
2735 if (IS_NULL(msa)) { in match_at()
2747 msa->mp->match_at_call_counter++; in match_at()
2751 retry_limit_in_match = msa->retry_limit_in_match; in match_at()
2785 if (n > msa->best_len) { in match_at()
2786 msa->best_len = n; in match_at()
2787 msa->best_s = (UChar* )sstart; in match_at()
2794 region = msa->region; in match_at()
2799 if (IS_POSIX_REGION(msa->options)) { in match_at()
3423 if (IS_NOTBOL(msa->options)) goto fail; in match_at()
3438 if (IS_NOTEOL(msa->options)) goto fail; in match_at()
3462 if (IS_NOTEOL(msa->options)) goto fail; in match_at()
3487 if (s != msa->start) in match_at()
4096 func = msa->mp->progress_callout_of_contents; in match_at()
4101 (int )mem, msa->mp->callout_user_data, args, call_result); in match_at()
4127 func = msa->mp->retraction_callout_of_contents; in match_at()
4891 MatchArg msa; in onig_match_with_param() local
4894 MATCH_ARG_INIT(msa, reg, option, region, at, mp); in onig_match_with_param()
4914 r = match_at(reg, str, end, end, at, prev, &msa); in onig_match_with_param()
4918 MATCH_ARG_FREE(msa); in onig_match_with_param()
5201 MatchArg msa; in search_in_range() local
5233 r = match_at(reg, str, end, (upper_range), s, prev, &msa); \ in search_in_range()
5244 r = match_at(reg, str, end, (upper_range), s, prev, &msa); \ in search_in_range()
5361 MATCH_ARG_INIT(msa, reg, option, region, start, mp); in search_in_range()
5373 MATCH_ARG_INIT(msa, reg, option, region, orig_start, mp); in search_in_range()
5513 if (msa.best_len >= 0) { in search_in_range()
5514 s = msa.best_s; in search_in_range()
5522 MATCH_ARG_FREE(msa); in search_in_range()
5550 MATCH_ARG_FREE(msa); in search_in_range()