Skip to content

Commit 0d6c2e8

Browse files
committed
Remove mathoms.c stub Perl_is_utf8_string_loc
This is now implemented entirely via macros
1 parent ed58924 commit 0d6c2e8

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ ARTdip |bool |is_utf8_string_flags \
17401740
|NN const U8 *s \
17411741
|STRLEN len \
17421742
|const U32 flags
1743-
AMTbdp |bool |is_utf8_string_loc \
1743+
ATdmp |bool |is_utf8_string_loc \
17441744
|NN const U8 *s \
17451745
|const STRLEN len \
17461746
|NN const U8 **ep

embed.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
# define is_utf8_fixed_width_buf_loclen_flags Perl_is_utf8_fixed_width_buf_loclen_flags
323323
# define is_utf8_invariant_string_loc Perl_is_utf8_invariant_string_loc
324324
# define is_utf8_string_flags Perl_is_utf8_string_flags
325+
# define is_utf8_string_loc Perl_is_utf8_string_loc
325326
# define is_utf8_string_loclen Perl_is_utf8_string_loclen
326327
# define is_utf8_string_loclen_flags Perl_is_utf8_string_loclen_flags
327328
# define is_utf8_valid_partial_char_flags Perl_is_utf8_valid_partial_char_flags

inline.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,8 @@ Perl_is_utf8_string_flags(const U8 *s, STRLEN len, const U32 flags)
21142114
return TRUE;
21152115
}
21162116

2117-
#define is_utf8_string_loc(s, len, ep) is_utf8_string_loclen(s, len, ep, 0)
2117+
#define Perl_is_utf8_string_loc(s, len, ep) \
2118+
Perl_is_utf8_string_loclen(s, len, ep, 0)
21182119

21192120
PERL_STATIC_INLINE bool
21202121
Perl_is_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el)

mathoms.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,6 @@ Perl_do_aexec(pTHX_ SV *really, SV **mark, SV **sp)
437437
}
438438
#endif
439439

440-
bool
441-
Perl_is_utf8_string_loc(const U8 *s, const STRLEN len, const U8 **ep)
442-
{
443-
PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC;
444-
445-
return is_utf8_string_loclen(s, len, ep, 0);
446-
}
447-
448440
/*
449441
=for apidoc_section $SV
450442
=for apidoc sv_nolocking

proto.h

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

0 commit comments

Comments
 (0)