diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-18 09:10:13 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-18 09:10:13 +0200 |
commit | c908277be21c27a0894404821605134958521fd6 (patch) | |
tree | cf247a2a6753c527a7985aeeeb4b0dee3b4626b8 /build/parseSpec.c | |
parent | 9df54a8622b6640e54288835e62c6c0d0b23c748 (diff) | |
download | librpm-tizen-c908277be21c27a0894404821605134958521fd6.tar.gz librpm-tizen-c908277be21c27a0894404821605134958521fd6.tar.bz2 librpm-tizen-c908277be21c27a0894404821605134958521fd6.zip |
Minimal namespacing for locale-insensitive x*() string functions
Diffstat (limited to 'build/parseSpec.c')
-rw-r--r-- | build/parseSpec.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c index 690166b07..32234e3d8 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -14,8 +14,8 @@ #include <rpm/rpmfileutil.h> #include "debug.h" -#define SKIPSPACE(s) { while (*(s) && xisspace(*(s))) (s)++; } -#define SKIPNONSPACE(s) { while (*(s) && !xisspace(*(s))) (s)++; } +#define SKIPSPACE(s) { while (*(s) && risspace(*(s))) (s)++; } +#define SKIPNONSPACE(s) { while (*(s) && !risspace(*(s))) (s)++; } /* XXX FIXME: strlen for these is calculated at runtime, preventing const */ static struct PartRec { @@ -64,10 +64,10 @@ rpmParseState isPart(const char *line) for (p = partList; p->token != NULL; p++) { char c; - if (xstrncasecmp(line, p->token, p->len)) + if (rstrncasecmp(line, p->token, p->len)) continue; c = *(line + p->len); - if (c == '\0' || xisspace(c)) + if (c == '\0' || risspace(c)) break; } @@ -88,7 +88,7 @@ static int matchTok(const char *token, const char *line) SKIPNONSPACE(be); if (be == b) break; - if (toklen != (be-b) || xstrncasecmp(token, b, (be-b))) + if (toklen != (be-b) || rstrncasecmp(token, b, (be-b))) continue; rc = 1; break; @@ -199,7 +199,7 @@ static void copyNextLineFinish(rpmSpec spec, int strip) ch = ' '; while (*spec->nextline && ch != '\n') { ch = *spec->nextline++; - if (!xisspace(ch)) + if (!risspace(ch)) last = spec->nextline; } @@ -360,7 +360,7 @@ int readLine(rpmSpec spec, int strip) s += 8; fileName = s; - if (! xisspace(*fileName)) { + if (! risspace(*fileName)) { rpmlog(RPMLOG_ERR, _("malformed %%include statement\n")); return RPMRC_FAIL; } |