summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-26 12:08:50 -0700
committerKarl Williamson <public@khwilliamson.com>2013-08-29 09:55:58 -0600
commit378516de21aea9be747038c25876881aaf56e166 (patch)
treec4130c17547e61ec24210b629f60f18895d29396 /utf8.h
parenta27992ccf5d1a0c50667fb21ba8ca973f50a7508 (diff)
downloadperl-378516de21aea9be747038c25876881aaf56e166.tar.gz
utf8.c: Stop using two functions
This is in preparation for deprecating these functions, to force any code that has been using these functions to change. Since the Unicode tables are now stored in native order, these functions should only rarely be needed. However, the functionality of these is needed, and in actuality, on ASCII platforms, the native functions are #defined to these. So what this commit does is rename the functions to something else, and create wrappers with the old names, so that anyone using them will get the deprecation when it actually goes into effect: we are waiting for CPAN files distributed with the core to change before doing the deprecation. According to cpan.grep.me, this should affect fewer than 10 additional CPAN distributions.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.h b/utf8.h
index 251e32d813..b3bf997efb 100644
--- a/utf8.h
+++ b/utf8.h
@@ -123,8 +123,8 @@ END_EXTERN_C
#define NATIVE_TO_UNI(ch) (ch)
/* As there are no translations, avoid the function wrapper */
-#define utf8n_to_uvchr utf8n_to_uvuni
-#define uvchr_to_utf8(a,b) uvuni_to_utf8_flags(a,b,0)
+#define utf8n_to_uvchr utf8n_to_uvoffuni
+#define uvchr_to_utf8(a,b) uvoffuni_to_utf8_flags(a,b,0)
/*