diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-04-15 21:00:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-04-15 21:00:38 +0000 |
commit | 402d2fea7025356c7abcb891017a1b7ddf99cbbf (patch) | |
tree | 83c5973b6316912331d4a4c070996d7888097e5c /src/macros.h | |
parent | 4499d2ee58db42e4ec59bb2c2dbb5eeca2313e8b (diff) | |
download | vim-402d2fea7025356c7abcb891017a1b7ddf99cbbf.zip |
updated for version 7.0066
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h index 233df0f25..f7bb10dca 100644 --- a/src/macros.h +++ b/src/macros.h @@ -260,8 +260,10 @@ # define mb_ptr_adv(p) p += has_mbyte ? (*mb_ptr2len_check)(p) : 1 # define mb_ptr_back(s, p) p -= has_mbyte ? ((*mb_head_off)(s, p - 1) + 1) : 1 # define MB_COPY_CHAR(f, t) if (has_mbyte) mb_copy_char(&f, &t); else *t++ = *f++ +# define MB_CHARLEN(p) mb_charlen(p) #else # define mb_ptr_adv(p) ++p # define mb_ptr_back(s, p) --p # define MB_COPY_CHAR(f, t) *t++ = *f++ +# define MB_CHARLEN(p) STRLEN(p) #endif |