diff options
author | Karl Williamson <khw@cpan.org> | 2016-08-22 12:21:06 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2016-08-31 20:32:35 -0600 |
commit | 2fe720e22e785c4e6125ac67a259c4385eb89a64 (patch) | |
tree | f8c9a6614f955e6e4de4df8dc83f75bf721c5843 /embed.h | |
parent | 8c879e491ff4ff91b4a4b96054663a5fb4e5a513 (diff) | |
download | perl-2fe720e22e785c4e6125ac67a259c4385eb89a64.tar.gz |
Document valid_utf8_to_uvchr() and inline it
This function has been in several releases without problem, and is short
enough that some compilers can inline it. This commit also notes that
the result should not be ignored, and removes the unused pTHX. The
function has explicitly been marked as being changeable, and has not
been part of the API until now.
Diffstat (limited to 'embed.h')
-rw-r--r-- | embed.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -734,7 +734,7 @@ #define uvoffuni_to_utf8_flags(a,b,c) Perl_uvoffuni_to_utf8_flags(aTHX_ a,b,c) #define uvuni_to_utf8(a,b) Perl_uvuni_to_utf8(aTHX_ a,b) #define uvuni_to_utf8_flags(a,b,c) Perl_uvuni_to_utf8_flags(aTHX_ a,b,c) -#define valid_utf8_to_uvchr(a,b) Perl_valid_utf8_to_uvchr(aTHX_ a,b) +#define valid_utf8_to_uvchr Perl_valid_utf8_to_uvchr #define valid_utf8_to_uvuni(a,b) Perl_valid_utf8_to_uvuni(aTHX_ a,b) #define vcmp(a,b) Perl_vcmp(aTHX_ a,b) #define vcroak(a,b) Perl_vcroak(aTHX_ a,b) |