Home | History | Annotate | Download | only in src

Lines Matching refs:gcontext

118 pcre2_general_context *gcontext;
121 gcontext = private_malloc(sizeof(pcre2_real_general_context), memory_data);
122 if (gcontext == NULL) return NULL;
123 gcontext->memctl.malloc = private_malloc;
124 gcontext->memctl.free = private_free;
125 gcontext->memctl.memory_data = memory_data;
126 return gcontext;
145 override the default memory handling functions if a gcontext was provided. */
148 pcre2_compile_context_create(pcre2_general_context *gcontext)
151 sizeof(pcre2_real_compile_context), (pcre2_memctl *)gcontext);
154 if (gcontext != NULL)
155 *((pcre2_memctl *)ccontext) = *((pcre2_memctl *)gcontext);
177 override the default memory handling functions if a gcontext was provided. */
180 pcre2_match_context_create(pcre2_general_context *gcontext)
183 sizeof(pcre2_real_match_context), (pcre2_memctl *)gcontext);
186 if (gcontext != NULL)
187 *((pcre2_memctl *)mcontext) = *((pcre2_memctl *)gcontext);
207 override the default memory handling functions if a gcontext was provided. */
210 pcre2_convert_context_create(pcre2_general_context *gcontext)
213 sizeof(pcre2_real_convert_context), (pcre2_memctl *)gcontext);
216 if (gcontext != NULL)
217 *((pcre2_memctl *)ccontext) = *((pcre2_memctl *)gcontext);
227 pcre2_general_context_copy(pcre2_general_context *gcontext)
230 gcontext->memctl.malloc(sizeof(pcre2_real_general_context),
231 gcontext->memctl.memory_data);
233 memcpy(new, gcontext, sizeof(pcre2_real_general_context));
280 pcre2_general_context_free(pcre2_general_context *gcontext)
282 if (gcontext != NULL)
283 gcontext->memctl.free(gcontext, gcontext->memctl.memory_data);