@@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language.
7
7
8
8
Written by Philip Hazel
9
9
Original API code Copyright (c) 1997-2012 University of Cambridge
10
- New API code Copyright (c) 2016-2022 University of Cambridge
10
+ New API code Copyright (c) 2016-2023 University of Cambridge
11
11
12
12
-----------------------------------------------------------------------------
13
13
Redistribution and use in source and binary forms, with or without
@@ -228,49 +228,48 @@ return ccontext;
228
228
PCRE2_EXP_DEFN pcre2_general_context * PCRE2_CALL_CONVENTION
229
229
pcre2_general_context_copy (pcre2_general_context * gcontext )
230
230
{
231
- pcre2_general_context * new =
231
+ pcre2_general_context * newcontext =
232
232
gcontext -> memctl .malloc (sizeof (pcre2_real_general_context ),
233
233
gcontext -> memctl .memory_data );
234
- if (new == NULL ) return NULL ;
235
- memcpy (new , gcontext , sizeof (pcre2_real_general_context ));
236
- return new ;
234
+ if (newcontext == NULL ) return NULL ;
235
+ memcpy (newcontext , gcontext , sizeof (pcre2_real_general_context ));
236
+ return newcontext ;
237
237
}
238
238
239
239
240
240
PCRE2_EXP_DEFN pcre2_compile_context * PCRE2_CALL_CONVENTION
241
241
pcre2_compile_context_copy (pcre2_compile_context * ccontext )
242
242
{
243
- pcre2_compile_context * new =
243
+ pcre2_compile_context * newcontext =
244
244
ccontext -> memctl .malloc (sizeof (pcre2_real_compile_context ),
245
245
ccontext -> memctl .memory_data );
246
- if (new == NULL ) return NULL ;
247
- memcpy (new , ccontext , sizeof (pcre2_real_compile_context ));
248
- return new ;
246
+ if (newcontext == NULL ) return NULL ;
247
+ memcpy (newcontext , ccontext , sizeof (pcre2_real_compile_context ));
248
+ return newcontext ;
249
249
}
250
250
251
251
252
252
PCRE2_EXP_DEFN pcre2_match_context * PCRE2_CALL_CONVENTION
253
253
pcre2_match_context_copy (pcre2_match_context * mcontext )
254
254
{
255
- pcre2_match_context * new =
255
+ pcre2_match_context * newcontext =
256
256
mcontext -> memctl .malloc (sizeof (pcre2_real_match_context ),
257
257
mcontext -> memctl .memory_data );
258
- if (new == NULL ) return NULL ;
259
- memcpy (new , mcontext , sizeof (pcre2_real_match_context ));
260
- return new ;
258
+ if (newcontext == NULL ) return NULL ;
259
+ memcpy (newcontext , mcontext , sizeof (pcre2_real_match_context ));
260
+ return newcontext ;
261
261
}
262
262
263
263
264
-
265
264
PCRE2_EXP_DEFN pcre2_convert_context * PCRE2_CALL_CONVENTION
266
265
pcre2_convert_context_copy (pcre2_convert_context * ccontext )
267
266
{
268
- pcre2_convert_context * new =
267
+ pcre2_convert_context * newcontext =
269
268
ccontext -> memctl .malloc (sizeof (pcre2_real_convert_context ),
270
269
ccontext -> memctl .memory_data );
271
- if (new == NULL ) return NULL ;
272
- memcpy (new , ccontext , sizeof (pcre2_real_convert_context ));
273
- return new ;
270
+ if (newcontext == NULL ) return NULL ;
271
+ memcpy (newcontext , ccontext , sizeof (pcre2_real_convert_context ));
272
+ return newcontext ;
274
273
}
275
274
276
275
0 commit comments