From: Nicholas Nethercote Date: Sun, 13 Mar 2005 18:49:00 +0000 (+0000) Subject: Avoid name clash with builtin isdigit(). X-Git-Tag: svn/VALGRIND_3_0_0~974 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52333ee4229966d491593744efeace48f99340ac;p=thirdparty%2Fvalgrind.git Avoid name clash with builtin isdigit(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3344 --- diff --git a/coregrind/vg_stabs.c b/coregrind/vg_stabs.c index fdc00c68be..7c10861155 100644 --- a/coregrind/vg_stabs.c +++ b/coregrind/vg_stabs.c @@ -311,7 +311,7 @@ static StabType *getStabType(StabTypeTab *tab, Int file, Int sym) return &sf->types[sym]; } -static Bool isdigit(Char c, Int base, Int *vp) +static Bool isdigit_base(Char c, Int base, Int *vp) { Bool ret = False; Int v = 0; @@ -382,7 +382,7 @@ static Int atoi(Char **pp, Int base) if (base == 0) base = getbase(&p); - while(isdigit(*p, base, &v)) { + while(isdigit_base(*p, base, &v)) { ret *= base; ret += v; p++; @@ -403,7 +403,7 @@ static UInt atou(Char **pp, Int base) if (base == 0) base = getbase(&p); - while(isdigit(*p, base, &v)) { + while(isdigit_base(*p, base, &v)) { ret *= base; ret += v; p++;