summaryrefslogtreecommitdiffstats
path: root/src/arabic.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-21 13:22:44 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-21 13:22:44 +0100
commit3ff2f09525e3461419886763efa1a01f08882d8c (patch)
tree9ce8f802ecfccf56c955ff659906fdd77b5b2002 /src/arabic.c
parent518c9b133baed4b1a555d7be0ece1b48bb234b1d (diff)
patch 8.0.0497: arabic support is not fully testedv8.0.0497
Problem: Arabic support is not fully tested. Solution: Add more tests for the untested functions. Comment out unreachable code.
Diffstat (limited to 'src/arabic.c')
-rw-r--r--src/arabic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arabic.c b/src/arabic.c
index cb43b802e8..9bc1669196 100644
--- a/src/arabic.c
+++ b/src/arabic.c
@@ -24,7 +24,9 @@ static int chg_c_a2s(int cur_c);
static int chg_c_a2i(int cur_c);
static int chg_c_a2m(int cur_c);
static int chg_c_a2f(int cur_c);
+#if 0
static int chg_c_i2m(int cur_c);
+#endif
static int chg_c_f2m(int cur_c);
static int chg_c_laa2i(int hid_c);
static int chg_c_laa2f(int hid_c);
@@ -418,7 +420,10 @@ chg_c_a2f(int cur_c)
/*
* Change shape - from Initial to Medial
+ * This code is unreachable, because for the relevant characters ARABIC_CHAR()
+ * is FALSE;
*/
+#if 0
static int
chg_c_i2m(int cur_c)
{
@@ -450,6 +455,7 @@ chg_c_i2m(int cur_c)
}
return 0;
}
+#endif
/*
@@ -608,7 +614,11 @@ arabic_shape(
else if (!shape_c || A_is_f(shape_c) || A_is_s(shape_c) || prev_laa)
curr_c = A_is_valid(next_c) ? chg_c_a2i(c) : chg_c_a2s(c);
else if (A_is_valid(next_c))
+#if 0
curr_c = A_is_iso(c) ? chg_c_a2m(c) : chg_c_i2m(c);
+#else
+ curr_c = A_is_iso(c) ? chg_c_a2m(c) : 0;
+#endif
else if (A_is_valid(prev_c))
curr_c = chg_c_a2f(c);
else