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

@@ -7480,7 +7480,7 @@ static void ex_tag_cmd(exarg_T *eap, char_u *name)
* If found return one of the SPEC_ values and set "*usedlen" to the length of
* the variable. Otherwise return -1 and "*usedlen" is unchanged.
*/
int find_cmdline_var(char_u *src, int *usedlen)
int find_cmdline_var(const char_u *src, int *usedlen) FUNC_ATTR_NONNULL_ALL
{
int len;
int i;