diff src/arabic.c @ 11221:3fa27b97d263 v8.0.0497

patch 8.0.0497: arabic support is not fully tested commit https://github.com/vim/vim/commit/3ff2f09525e3461419886763efa1a01f08882d8c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 21 13:22:44 2017 +0100 patch 8.0.0497: arabic support is not fully tested Problem: Arabic support is not fully tested. Solution: Add more tests for the untested functions. Comment out unreachable code.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Mar 2017 13:30:05 +0100
parents 8ae6d6052b14
children 27b9a84395b5
line wrap: on
line diff
--- 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