From: kazu Date: Sun, 7 Dec 2003 00:08:41 +0000 (+0000) Subject: * lexsup.c (is_num): Remove. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a41ef3a1e02cdd7cf0cb88c819c5c1699ea5bec7;p=pf3gnuchains%2Fsourceware.git * lexsup.c (is_num): Remove. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index de662ea8d4..a6a4bf0ede 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2003-12-06 Kazu Hirata + + * lexsup.c (is_num): Remove. + 2003-12-05 Dmitry Semyonov * pe-dll.c (generate_reloc): Remap ARM_26D relocation from 5 to diff --git a/ld/lexsup.c b/ld/lexsup.c index 611f838e23..e43e15ef4b 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -444,29 +444,6 @@ static const struct ld_option ld_options[] = #define OPTION_COUNT ARRAY_SIZE (ld_options) -/* Test STRING for containing a string of digits that form a number - between MIN and MAX. The return value is the number or ERR. */ - -static int -is_num (const char *string, int min, int max, int err) -{ - int result = 0; - - for (; *string; ++string) - { - if (! ISDIGIT (*string)) - { - result = err; - break; - } - result = result * 10 + (*string - '0'); - } - if (result < min || result > max) - result = err; - - return result; -} - void parse_args (unsigned argc, char **argv) {