Lines Matching refs:newcode
1167 pcre2_code *newcode; in pcre2_code_copy() local
1170 newcode = code->memctl.malloc(code->blocksize, code->memctl.memory_data); in pcre2_code_copy()
1171 if (newcode == NULL) return NULL; in pcre2_code_copy()
1172 memcpy(newcode, code, code->blocksize); in pcre2_code_copy()
1173 newcode->executable_jit = NULL; in pcre2_code_copy()
1184 return newcode; in pcre2_code_copy()
1201 pcre2_code *newcode; in pcre2_code_copy_with_tables() local
1205 newcode = code->memctl.malloc(code->blocksize, code->memctl.memory_data); in pcre2_code_copy_with_tables()
1206 if (newcode == NULL) return NULL; in pcre2_code_copy_with_tables()
1207 memcpy(newcode, code, code->blocksize); in pcre2_code_copy_with_tables()
1208 newcode->executable_jit = NULL; in pcre2_code_copy_with_tables()
1214 code->memctl.free((void *)newcode, code->memctl.memory_data); in pcre2_code_copy_with_tables()
1221 newcode->tables = newtables; in pcre2_code_copy_with_tables()
1222 newcode->flags |= PCRE2_DEREF_TABLES; in pcre2_code_copy_with_tables()
1223 return newcode; in pcre2_code_copy_with_tables()