strings/memory: constify and func_attr.

Fix MB_COPY_cHAR() to accept const pointers.
This commit is contained in:
Scott Prager
2014-11-19 14:44:45 -05:00
parent 763b62698a
commit ecf81c3f20
6 changed files with 70 additions and 47 deletions

View File

@@ -3003,7 +3003,7 @@ int utf_head_off(const char_u *base, const char_u *p)
/*
* Copy a character from "*fp" to "*tp" and advance the pointers.
*/
void mb_copy_char(char_u **fp, char_u **tp)
void mb_copy_char(const char_u **fp, char_u **tp)
{
int l = (*mb_ptr2len)(*fp);