diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-22 00:55:32 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-24 18:23:24 -0300 |
commit | 5c66dfea3c5f332784f4c67ce4d4644e20c92b4c (patch) | |
tree | 63220cce30def754836d5968a59ffdf9c7f1cae5 | |
parent | 8b2a5e678e4a8f24328ecd438f6907ef25398f95 (diff) | |
download | rneovim-5c66dfea3c5f332784f4c67ce4d4644e20c92b4c.tar.gz rneovim-5c66dfea3c5f332784f4c67ce4d4644e20c92b4c.tar.bz2 rneovim-5c66dfea3c5f332784f4c67ce4d4644e20c92b4c.zip |
Reformat new function in arabic.c to comply with style guide
-rw-r--r-- | src/arabic.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/arabic.c b/src/arabic.c index df97010655..c72ed306a5 100644 --- a/src/arabic.c +++ b/src/arabic.c @@ -1440,31 +1440,29 @@ int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1, return curr_c; } -/* - * Check whether we are dealing with Arabic combining characters. - * Note: these are NOT really composing characters! - */ -int arabic_combine( - int one, /* first character */ - int two /* character just after "one" */ - ) +/// Check whether we are dealing with Arabic combining characters. +/// Note: these are NOT really composing characters! +/// +/// @param one First character. +/// @param two Character just after "one". +int arabic_combine(int one, int two) { - if (one == a_LAM) + if (one == a_LAM) { return arabic_maycombine(two); + } return FALSE; } -/* - * Check whether we are dealing with a character that could be regarded as an - * Arabic combining character, need to check the character before this. - */ +/// Check whether we are dealing with a character that could be regarded as an +/// Arabic combining character, need to check the character before this. int arabic_maycombine(int two) { - if (p_arshape && !p_tbidi) + if (p_arshape && !p_tbidi) { return two == a_ALEF_MADDA || two == a_ALEF_HAMZA_ABOVE || two == a_ALEF_HAMZA_BELOW || two == a_ALEF; + } return FALSE; } |