Mercurial > vim
diff src/spellfile.c @ 11127:506f5d8b7d8b v8.0.0451
patch 8.0.0451: some macros are in lower case
commit https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 12 19:22:36 2017 +0100
patch 8.0.0451: some macros are in lower case
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Mar 2017 19:30:05 +0100 |
parents | 7d735b86f764 |
children | 514c1741ab8c |
line wrap: on
line diff
--- a/src/spellfile.c +++ b/src/spellfile.c @@ -1429,7 +1429,7 @@ set_sofo(slang_T *lp, char_u *from, char 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 { 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 { /* 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 /* 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)