X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/09d7a3ba918e6e685992034f67fd84290a3df894..e737dcc5adb493caa5a9ba93970c4d3e4a8ed30f:/mathoms.c diff --git a/mathoms.c b/mathoms.c index 378c409..2a65fb4 100644 --- a/mathoms.c +++ b/mathoms.c @@ -24,6 +24,9 @@ * versions of Perl. For binary or source compatibility reasons, though, * we cannot completely remove them from the core code. * + * REMEMBER to update makedef.pl when adding a function to mathoms.c whose + * name doesn't begin with "Perl_". + * * SMP - Oct. 24, 2005 * * The compilation of this file can be suppressed; see INSTALL @@ -1016,8 +1019,6 @@ Perl_hv_delete(pTHX_ HV *hv, const char *key, I32 klen_i32, I32 flags) NULL, 0)); } -/* Functions after here were made mathoms post 5.10.0 but pre 5.8.9 */ - AV * Perl_newAV(pTHX) { @@ -1214,6 +1215,14 @@ Perl_sv_mortalcopy(pTHX_ SV *const oldstr) return Perl_sv_mortalcopy_flags(aTHX_ oldstr, SV_GMAGIC); } +void +Perl_sv_copypv(pTHX_ SV *const dsv, SV *const ssv) +{ + PERL_ARGS_ASSERT_SV_COPYPV; + + sv_copypv_flags(dsv, ssv, 0); +} + UV /* Made into a function, so can be deprecated */ NATIVE_TO_NEED(const UV enc, const UV ch) { @@ -1692,6 +1701,22 @@ Perl_is_utf8_char(const U8 *s) return isUTF8_CHAR(s, s + UTF8SKIP(s)); } +/* +=for apidoc is_utf8_char_buf + +This is identical to the macro L. + +=cut */ + +STRLEN +Perl_is_utf8_char_buf(const U8 *buf, const U8* buf_end) +{ + + PERL_ARGS_ASSERT_IS_UTF8_CHAR_BUF; + + return isUTF8_CHAR(buf, buf_end); +} + /* DEPRECATED! * Like L(), but should only be called when it is known that * there are no malformations in the input UTF-8 string C. Surrogates,