summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-31 14:51:48 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-31 14:51:48 +0000
commit1754c1a12c44346c579c5581660df4064b19f4a0 (patch)
treeff519f47f9edf2597cd636d6dc5d332fda778c57 /utf8.c
parent9fe371da3bdc2d1a5eae907101756f87eb5d2168 (diff)
downloadperl-1754c1a12c44346c579c5581660df4064b19f4a0.tar.gz
A more elegant way to deal with utf8n_to_uvchr() and utf8n_to_uvuni().
p4raw-id: //depot/perl@25926
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/utf8.c b/utf8.c
index e9794fcfdb..84d5553524 100644
--- a/utf8.c
+++ b/utf8.c
@@ -614,8 +614,8 @@ returned and retlen is set, if possible, to -1.
UV
Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen)
{
- return Perl_utf8n_to_uvchr(aTHX_ s, UTF8_MAXBYTES, retlen,
- ckWARN(WARN_UTF8) ? 0 : UTF8_ALLOW_ANY);
+ return utf8n_to_uvchr(s, UTF8_MAXBYTES, retlen,
+ ckWARN(WARN_UTF8) ? 0 : UTF8_ALLOW_ANY);
}
/*
@@ -1773,7 +1773,6 @@ is the recommended wide native character-aware way of saying
/* On ASCII machines this is normally a macro but we want a
real function in case XS code wants it
*/
-#undef Perl_uvchr_to_utf8
U8 *
Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv)
{
@@ -1802,7 +1801,6 @@ Allows length and flags to be passed to low level routine.
/* On ASCII machines this is normally a macro but we want
a real function in case XS code wants it
*/
-#undef Perl_utf8n_to_uvchr
UV
Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen,
U32 flags)