summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-07-24 19:31:11 +0000
committerBram Moolenaar <Bram@vim.org>2008-07-24 19:31:11 +0000
commit1387a60919113bd37e7d666b7f0e5f7eb3aa26a4 (patch)
tree7c77a668be17428ccd3a7f4f738f322a429a7555 /src/charset.c
parente6a91fd99467f5259d675047760088efcbaf050e (diff)
downloadvim-git-1387a60919113bd37e7d666b7f0e5f7eb3aa26a4.tar.gz
updated for version 7.2b-020v7.2b.020
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/charset.c b/src/charset.c
index 0c9c51136..0f4b0b992 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1466,9 +1466,11 @@ getvcols(wp, pos1, pos2, left, right)
* skipwhite: skip over ' ' and '\t'.
*/
char_u *
-skipwhite(p)
- char_u *p;
+skipwhite(q)
+ char_u *q;
{
+ char_u *p = q;
+
while (vim_iswhite(*p)) /* skip to next non-white */
++p;
return p;
@@ -1478,9 +1480,11 @@ skipwhite(p)
* skip over digits
*/
char_u *
-skipdigits(p)
- char_u *p;
+skipdigits(q)
+ char_u *q;
{
+ char_u *p = q;
+
while (VIM_ISDIGIT(*p)) /* skip to next non-digit */
++p;
return p;
@@ -1491,9 +1495,11 @@ skipdigits(p)
* skip over digits and hex characters
*/
char_u *
-skiphex(p)
- char_u *p;
+skiphex(q)
+ char_u *q;
{
+ char_u *p = q;
+
while (vim_isxdigit(*p)) /* skip to next non-digit */
++p;
return p;
@@ -1505,9 +1511,11 @@ skiphex(p)
* skip to digit (or NUL after the string)
*/
char_u *
-skiptodigit(p)
- char_u *p;
+skiptodigit(q)
+ char_u *q;
{
+ char_u *p = q;
+
while (*p != NUL && !VIM_ISDIGIT(*p)) /* skip to next digit */
++p;
return p;
@@ -1517,9 +1525,11 @@ skiptodigit(p)
* skip to hex character (or NUL after the string)
*/
char_u *
-skiptohex(p)
- char_u *p;
+skiptohex(q)
+ char_u *q;
{
+ char_u *p = q;
+
while (*p != NUL && !vim_isxdigit(*p)) /* skip to next digit */
++p;
return p;