summaryrefslogtreecommitdiff
path: root/src/spellfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-12 19:22:36 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-12 19:22:36 +0100
commit91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f (patch)
tree1923145c992a09b3adc06e40f02284ff0ef21bbd /src/spellfile.c
parent47ffb905f363571072faefbd417938e7ff351a9f (diff)
downloadvim-git-91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f.tar.gz
patch 8.0.0451: some macros are in lower casev8.0.0451
Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
Diffstat (limited to 'src/spellfile.c')
-rw-r--r--src/spellfile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/spellfile.c b/src/spellfile.c
index 00ef019a6..6188aaf40 100644
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -1429,7 +1429,7 @@ set_sofo(slang_T *lp, char_u *from, char_u *to)
for (p = from, s = to; *p != NUL && *s != NUL; )
{
c = mb_cptr2char_adv(&p);
- mb_cptr_adv(s);
+ MB_CPTR_ADV(s);
if (c >= 256)
++lp->sl_sal_first[c & 0xff];
}
@@ -2802,7 +2802,7 @@ spell_read_aff(spellinfo_T *spin, char_u *fname)
{
p = aff_entry->ae_add
+ STRLEN(aff_entry->ae_add);
- mb_ptr_back(aff_entry->ae_add, p);
+ MB_PTR_BACK(aff_entry->ae_add, p);
if (PTR2CHAR(p) == c_up)
{
upper = TRUE;
@@ -2930,10 +2930,10 @@ spell_read_aff(spellinfo_T *spin, char_u *fname)
{
/* Replace underscore with space (can't include a space
* directly). */
- for (p = items[1]; *p != NUL; mb_ptr_adv(p))
+ for (p = items[1]; *p != NUL; MB_PTR_ADV(p))
if (*p == '_')
*p = ' ';
- for (p = items[2]; *p != NUL; mb_ptr_adv(p))
+ for (p = items[2]; *p != NUL; MB_PTR_ADV(p))
if (*p == '_')
*p = ' ';
add_fromto(spin, items[0][3] == 'S'
@@ -3624,7 +3624,7 @@ spell_read_dic(spellinfo_T *spin, char_u *fname, afffile_T *affile)
/* Truncate the word at the "/", set "afflist" to what follows.
* Replace "\/" by "/" and "\\" by "\". */
afflist = NULL;
- for (p = w; *p != NUL; mb_ptr_adv(p))
+ for (p = w; *p != NUL; MB_PTR_ADV(p))
{
if (*p == '\\' && (p[1] == '\\' || p[1] == '/'))
STRMOVE(p, p + 1);
@@ -3947,7 +3947,7 @@ store_aff_word(
{
i = mb_charlen(ae->ae_chop);
for ( ; i > 0; --i)
- mb_ptr_adv(p);
+ MB_PTR_ADV(p);
}
else
#endif
@@ -3965,7 +3965,7 @@ store_aff_word(
p = newword + STRLEN(newword);
i = (int)MB_CHARLEN(ae->ae_chop);
for ( ; i > 0; --i)
- mb_ptr_back(newword, p);
+ MB_PTR_BACK(newword, p);
*p = NUL;
}
if (ae->ae_add != NULL)