Skip to content

Commit 9ccb479

Browse files
committed
Use new embed.fnc implementation for strict_utf8_to_uv
This shows how the new capability works for elements without a thread context parameter
1 parent 67fcf3f commit 9ccb479

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

embed.fnc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,11 +3086,12 @@ dopx |PerlIO *|start_glob |NN SV *tmpglob \
30863086
|NN IO *io
30873087
Adp |I32 |start_subparse |I32 is_format \
30883088
|U32 flags
3089-
ATdmp |bool |strict_utf8_to_uv \
3089+
ATdp |bool |strict_utf8_to_uv \
30903090
|NN const U8 * const s \
30913091
|NN const U8 * const e \
30923092
|NN UV *cp_p \
3093-
|NULLOK Size_t *advance_p
3093+
|NULLOK Size_t *advance_p \
3094+
= utf8_to_uv_flags(s,e,cp_p,advance_p,UTF8_DISALLOW_ILLEGAL_INTERCHANGE)
30943095
CRp |NV |str_to_version |NN SV *sv
30953096
: Used in pp_ctl.c
30963097
p |void |sub_crush_depth|NN CV *cv

embed.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,8 @@
652652
# define stack_grow(a,b,c) Perl_stack_grow(aTHX_ a,b,c)
653653
# define start_subparse(a,b) Perl_start_subparse(aTHX_ a,b)
654654
# define str_to_version(a) Perl_str_to_version(aTHX_ a)
655-
# define strict_utf8_to_uv Perl_strict_utf8_to_uv
655+
# define strict_utf8_to_uv(s,e,cp_p,advance_p) utf8_to_uv_flags(s,e,cp_p,advance_p,UTF8_DISALLOW_ILLEGAL_INTERCHANGE)
656+
# define Perl_strict_utf8_to_uv strict_utf8_to_uv
656657
# define suspend_compcv(a) Perl_suspend_compcv(aTHX_ a)
657658
# define sv_2bool_flags(a,b) Perl_sv_2bool_flags(aTHX_ a,b)
658659
# define sv_2cv(a,b,c,d) Perl_sv_2cv(aTHX_ a,b,c,d)

proto.h

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utf8.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ typedef enum {
165165
Perl_utf8_to_uv_errors( s, e, cp_p, advance_p, flags, 0)
166166
#define Perl_utf8_to_uv_errors( s, e, cp_p, advance_p, flags, errors) \
167167
Perl_utf8_to_uv_msgs( s, e, cp_p, advance_p, flags, errors, 0)
168-
#define Perl_strict_utf8_to_uv( s, e, cp_p, advance_p) \
169-
Perl_utf8_to_uv_flags( s, e, cp_p, advance_p, \
170-
UTF8_DISALLOW_ILLEGAL_INTERCHANGE)
171168
#define Perl_c9strict_utf8_to_uv(s, e, cp_p, advance_p) \
172169
Perl_utf8_to_uv_flags( s, e, cp_p, advance_p, \
173170
UTF8_DISALLOW_ILLEGAL_C9_INTERCHANGE)

0 commit comments

Comments
 (0)