Merge pull request #1497 from splinterofchaos/const-attr

constify and func-attribute memory.c and strings.c
This commit is contained in:
Justin M. Keyes
2014-11-29 22:48:23 -05:00
9 changed files with 93 additions and 72 deletions

View File

@@ -7482,7 +7482,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;