|
|
c6d234 |
commit 0cdddc25a47509262a9a55a343395971b492b0fa
|
|
|
c6d234 |
Author: Steve Ellcey <sellcey@mips.com>
|
|
|
c6d234 |
Date: Thu May 1 10:22:35 2014 -0700
|
|
|
c6d234 |
|
|
|
c6d234 |
2014-05-01 Steve Ellcey <sellcey@mips.com>
|
|
|
c6d234 |
|
|
|
c6d234 |
* intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
|
|
|
c6d234 |
* iconv/gconv_simple.c (ONE_DIRECTION): Define.
|
|
|
c6d234 |
* iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
|
|
|
c6d234 |
* iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c
|
|
|
c6d234 |
index 03fa5f2e2c771ebc..78c2421ecf77f198 100644
|
|
|
c6d234 |
--- a/iconv/gconv_simple.c
|
|
|
c6d234 |
+++ b/iconv/gconv_simple.c
|
|
|
c6d234 |
@@ -68,6 +68,7 @@ __gconv_btwoc_ascii (struct __gconv_step *step, unsigned char c)
|
|
|
c6d234 |
#define FROM_LOOP internal_ucs4_loop
|
|
|
c6d234 |
#define TO_LOOP internal_ucs4_loop /* This is not used. */
|
|
|
c6d234 |
#define FUNCTION_NAME __gconv_transform_internal_ucs4
|
|
|
c6d234 |
+#define ONE_DIRECTION 0
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
static inline int
|
|
|
c6d234 |
@@ -222,6 +223,7 @@ internal_ucs4_loop_single (struct __gconv_step *step,
|
|
|
c6d234 |
#define FROM_LOOP ucs4_internal_loop
|
|
|
c6d234 |
#define TO_LOOP ucs4_internal_loop /* This is not used. */
|
|
|
c6d234 |
#define FUNCTION_NAME __gconv_transform_ucs4_internal
|
|
|
c6d234 |
+#define ONE_DIRECTION 0
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
static inline int
|
|
|
c6d234 |
@@ -433,6 +435,7 @@ ucs4_internal_loop_single (struct __gconv_step *step,
|
|
|
c6d234 |
#define FROM_LOOP internal_ucs4le_loop
|
|
|
c6d234 |
#define TO_LOOP internal_ucs4le_loop /* This is not used. */
|
|
|
c6d234 |
#define FUNCTION_NAME __gconv_transform_internal_ucs4le
|
|
|
c6d234 |
+#define ONE_DIRECTION 0
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
static inline int
|
|
|
c6d234 |
@@ -590,6 +593,7 @@ internal_ucs4le_loop_single (struct __gconv_step *step,
|
|
|
c6d234 |
#define FROM_LOOP ucs4le_internal_loop
|
|
|
c6d234 |
#define TO_LOOP ucs4le_internal_loop /* This is not used. */
|
|
|
c6d234 |
#define FUNCTION_NAME __gconv_transform_ucs4le_internal
|
|
|
c6d234 |
+#define ONE_DIRECTION 0
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
static inline int
|
|
|
c6d234 |
diff --git a/iconv/skeleton.c b/iconv/skeleton.c
|
|
|
c6d234 |
index 527ef0380c999740..3384d520661f88ed 100644
|
|
|
c6d234 |
--- a/iconv/skeleton.c
|
|
|
c6d234 |
+++ b/iconv/skeleton.c
|
|
|
c6d234 |
@@ -162,11 +162,6 @@
|
|
|
c6d234 |
# endif
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
-#ifndef ONE_DIRECTION
|
|
|
c6d234 |
-# define ONE_DIRECTION 0
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-
|
|
|
c6d234 |
/* How many bytes are needed at most for the from-charset. */
|
|
|
c6d234 |
#ifndef MAX_NEEDED_FROM
|
|
|
c6d234 |
# define MAX_NEEDED_FROM MIN_NEEDED_FROM
|
|
|
c6d234 |
diff --git a/iconvdata/8bit-gap.c b/iconvdata/8bit-gap.c
|
|
|
c6d234 |
index d2e4efc2b7ee9c4a..5139c4cef6ea8788 100644
|
|
|
c6d234 |
--- a/iconvdata/8bit-gap.c
|
|
|
c6d234 |
+++ b/iconvdata/8bit-gap.c
|
|
|
c6d234 |
@@ -42,6 +42,7 @@ struct gap
|
|
|
c6d234 |
#define DEFINE_FINI 1
|
|
|
c6d234 |
#define MIN_NEEDED_FROM 1
|
|
|
c6d234 |
#define MIN_NEEDED_TO 4
|
|
|
c6d234 |
+#define ONE_DIRECTION 0
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
/* First define the conversion function from the 8bit charset to UCS4. */
|
|
|
c6d234 |
diff --git a/iconvdata/8bit-generic.c b/iconvdata/8bit-generic.c
|
|
|
c6d234 |
index 4757d18a1f4dc037..f9bb50cb3d8bc482 100644
|
|
|
c6d234 |
--- a/iconvdata/8bit-generic.c
|
|
|
c6d234 |
+++ b/iconvdata/8bit-generic.c
|
|
|
c6d234 |
@@ -25,6 +25,7 @@
|
|
|
c6d234 |
#define DEFINE_FINI 1
|
|
|
c6d234 |
#define MIN_NEEDED_FROM 1
|
|
|
c6d234 |
#define MIN_NEEDED_TO 4
|
|
|
c6d234 |
+#define ONE_DIRECTION 0
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
/* First define the conversion function from the 8bit charset to UCS4. */
|