Lines Matching refs:mcontext
183 pcre2_match_context *mcontext = PRIV(memctl_malloc)( in pcre2_match_context_create() local
185 if (mcontext == NULL) return NULL; in pcre2_match_context_create()
186 *mcontext = PRIV(default_match_context); in pcre2_match_context_create()
188 *((pcre2_memctl *)mcontext) = *((pcre2_memctl *)gcontext); in pcre2_match_context_create()
189 return mcontext; in pcre2_match_context_create()
222 pcre2_match_context_copy(pcre2_match_context *mcontext) in pcre2_match_context_copy() argument
225 mcontext->memctl.malloc(sizeof(pcre2_real_match_context), in pcre2_match_context_copy()
226 mcontext->memctl.memory_data); in pcre2_match_context_copy()
228 memcpy(new, mcontext, sizeof(pcre2_real_match_context)); in pcre2_match_context_copy()
256 pcre2_match_context_free(pcre2_match_context *mcontext) in pcre2_match_context_free() argument
258 if (mcontext != NULL) in pcre2_match_context_free()
259 mcontext->memctl.free(mcontext, mcontext->memctl.memory_data); in pcre2_match_context_free()
344 pcre2_set_callout(pcre2_match_context *mcontext, in pcre2_set_callout() argument
347 mcontext->callout = callout; in pcre2_set_callout()
348 mcontext->callout_data = callout_data; in pcre2_set_callout()
353 pcre2_set_match_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_match_limit() argument
355 mcontext->match_limit = limit; in pcre2_set_match_limit()
360 pcre2_set_offset_limit(pcre2_match_context *mcontext, PCRE2_SIZE limit) in pcre2_set_offset_limit() argument
362 mcontext->offset_limit = limit; in pcre2_set_offset_limit()
367 pcre2_set_recursion_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_recursion_limit() argument
369 mcontext->recursion_limit = limit; in pcre2_set_recursion_limit()
374 pcre2_set_recursion_memory_management(pcre2_match_context *mcontext, in pcre2_set_recursion_memory_management() argument
379 mcontext->stack_memctl.malloc = mymalloc; in pcre2_set_recursion_memory_management()
380 mcontext->stack_memctl.free = myfree; in pcre2_set_recursion_memory_management()
381 mcontext->stack_memctl.memory_data = mydata; in pcre2_set_recursion_memory_management()
383 (void)mcontext; in pcre2_set_recursion_memory_management()