summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-12-22 19:37:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-12-22 19:37:42 +0000
commitfd7cb28932b10967bdc6b5b22df7b182830362a3 (patch)
tree18732eb494ea18b6caed9949b29f3031b265d555 /utf8.h
parent329b93cd165ae2f0ce223aadada619c461255001 (diff)
downloadperl-fd7cb28932b10967bdc6b5b22df7b182830362a3.tar.gz
Compilation help for EBCDIC platforms, from Jarkko,
tested by Rajarshi Das p4raw-id: //depot/perl@26452
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/utf8.h b/utf8.h
index d1989ecc88..64dc393020 100644
--- a/utf8.h
+++ b/utf8.h
@@ -16,12 +16,17 @@
# define USE_UTF8_IN_NAMES (PL_hints & HINT_UTF8)
#endif
+/* Source backward compatibility. */
+#define uvuni_to_utf8(d, uv) uvuni_to_utf8_flags(d, uv, 0)
+#define is_utf8_string_loc(s, len, ep) is_utf8_string_loclen(s, len, ep, 0)
+
#ifdef EBCDIC
/* The equivalent of these macros but implementing UTF-EBCDIC
are in the following header file:
*/
#include "utfebcdic.h"
+
#else
START_EXTERN_C
@@ -332,7 +337,4 @@ encoded character.
#define IS_UTF8_CHAR_FAST(n) ((n) <= 4)
-#define uvuni_to_utf8(d, uv) uvuni_to_utf8_flags(d, uv, 0)
-#define is_utf8_string_loc(s, len, ep) is_utf8_string_loclen(s, len, ep, 0)
-
#endif /* IS_UTF8_CHAR() for UTF-8 */