From 6dd9dce957a17e45449a2fa4e684b1b241302529 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 24 Aug 2012 14:20:41 -0600 Subject: embed.fnc: Turn null wrapper function into macro This function only does something on EBCDIC platforms. On ASCII ones make it a macro, like similar ones to avoid useless function nesting --- utf8.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index 334746acbc..6c43f8246e 100644 --- a/utf8.c +++ b/utf8.c @@ -37,6 +37,7 @@ /* Separate prototypes needed because in ASCII systems these are * usually macros but they still are compiled as code, too. */ PERL_CALLCONV UV Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags); +PERL_CALLCONV UV Perl_valid_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen); PERL_CALLCONV U8* Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv); #endif @@ -921,7 +922,8 @@ Perl_utf8_to_uvchr_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen) /* Like L(), but should only be called when it is known that * there are no malformations in the input UTF-8 string C. surrogates, - * non-character code points, and non-Unicode code points are allowed */ + * non-character code points, and non-Unicode code points are allowed. A macro + * in utf8.h is used to normally avoid this function wrapper */ UV Perl_valid_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen) -- cgit v1.2.1