summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-08-22 12:21:06 -0600
committerKarl Williamson <khw@cpan.org>2016-08-31 20:32:35 -0600
commit2fe720e22e785c4e6125ac67a259c4385eb89a64 (patch)
treef8c9a6614f955e6e4de4df8dc83f75bf721c5843 /embed.h
parent8c879e491ff4ff91b4a4b96054663a5fb4e5a513 (diff)
downloadperl-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index f3a855e9e4..19d11f5c61 100644
--- a/embed.h
+++ b/embed.h
@@ -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)