4 From: Bram Moolenaar <Bram@moolenaar.net>
8 Problem: When using a Vim script for Vim 6.0 with <SID> before a function
9 name, it produces an error message even when inside an "if version
10 >= 600". (Charles Campbell)
11 Solution: Ignore errors in the function name when the function is not going
16 *** ../vim-5.7.16/src/eval.c Tue Jun 6 12:55:14 2000
17 --- src/eval.c Thu Nov 16 15:18:27 2000
23 ! if (!isupper(*eap->arg))
25 EMSG2("Function name must start with a capital: %s", eap->arg);
31 ! if (!isupper(*eap->arg) && !eap->skip)
33 EMSG2("Function name must start with a capital: %s", eap->arg);
38 for (p = name; isalpha(*p) || isdigit(*p) || *p == '_'; ++p)
42 EMSG("Function name required");
46 for (p = name; isalpha(*p) || isdigit(*p) || *p == '_'; ++p)
48 ! if (p == name && !eap->skip)
50 EMSG("Function name required");
57 ! EMSG2("Missing '(': %s", name);
68 ! EMSG2("Missing '(': %s", name);
71 ! p = vim_strchr(p, '(');
78 if (arg == p || isdigit(*arg))
80 ! EMSG2("Illegal argument: %s", arg);
83 if (ga_grow(&newargs, 1) == FAIL)
86 if (arg == p || isdigit(*arg))
89 ! EMSG2("Illegal argument: %s", arg);
92 if (ga_grow(&newargs, 1) == FAIL)
96 if (mustend && *p != ')')
98 ! EMSG2(e_invarg2, eap->arg);
104 if (mustend && *p != ')')
107 ! EMSG2(e_invarg2, eap->arg);
114 if (*p != NUL && *p != '"' && *p != '\n')
122 if (*p != NUL && *p != '"' && *p != '\n')
129 *** ../vim-5.7.16/src/version.c Thu Nov 16 15:15:50 2000
130 --- src/version.c Thu Nov 16 15:15:17 2000
134 { /* Add new patch number below this line */
140 hundred-and-one symptoms of being an internet addict:
141 145. You e-mail your boss, informing him you'll be late.
143 /// Bram Moolenaar Bram@moolenaar.net http://www.moolenaar.net \\\
144 \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///