diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-09 04:37:02 +0200 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-09 04:37:02 +0200 |
commit | 0f49200c9a72f7d8144eb663dee2c684d52ef42a (patch) | |
tree | f0587f4a4ee07b4e96818cf28cb11c6ffe30727a /src/attr_file.c | |
parent | e65752bb3251f9a308fd4f9cb3b294c4f7d90783 (diff) | |
download | libgit2-0f49200c9a72f7d8144eb663dee2c684d52ef42a.tar.gz |
msvc: Do not use `isspace`
Locale-aware bullshit bitting my ass again yo
Diffstat (limited to 'src/attr_file.c')
-rw-r--r-- | src/attr_file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/attr_file.c b/src/attr_file.c index ab320a6c4..4409d744a 100644 --- a/src/attr_file.c +++ b/src/attr_file.c @@ -344,7 +344,7 @@ int git_attr_fnmatch__parse( pattern = *base; - while (isspace(*pattern)) pattern++; + while (git__isspace(*pattern)) pattern++; if (!*pattern || *pattern == '#') { *base = git__next_line(pattern); return GIT_ENOTFOUND; @@ -368,7 +368,7 @@ int git_attr_fnmatch__parse( slash_count = 0; for (scan = pattern; *scan != '\0'; ++scan) { /* scan until (non-escaped) white space */ - if (isspace(*scan) && *(scan - 1) != '\\') + if (git__isspace(*scan) && *(scan - 1) != '\\') break; if (*scan == '/') { @@ -485,7 +485,7 @@ int git_attr_assignment__parse( const char *name_start, *value_start; /* skip leading blanks */ - while (isspace(*scan) && *scan != '\n') scan++; + while (git__isspace(*scan) && *scan != '\n') scan++; /* allocate assign if needed */ if (!assign) { @@ -509,7 +509,7 @@ int git_attr_assignment__parse( /* find the name */ name_start = scan; - while (*scan && !isspace(*scan) && *scan != '=') { + while (*scan && !git__isspace(*scan) && *scan != '=') { assign->name_hash = ((assign->name_hash << 5) + assign->name_hash) + *scan; scan++; @@ -518,7 +518,7 @@ int git_attr_assignment__parse( /* must have found lone prefix (" - ") or leading = ("=foo") * or end of buffer -- advance until whitespace and continue */ - while (*scan && !isspace(*scan)) scan++; + while (*scan && !git__isspace(*scan)) scan++; continue; } @@ -528,7 +528,7 @@ int git_attr_assignment__parse( /* if there is an equals sign, find the value */ if (*scan == '=') { - for (value_start = ++scan; *scan && !isspace(*scan); ++scan); + for (value_start = ++scan; *scan && !git__isspace(*scan); ++scan); /* if we found a value, allocate permanent storage for it */ if (scan > value_start) { |