diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2003-12-07 00:08:41 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2003-12-07 00:08:41 +0000 |
commit | 48ecb30c92a29b12766e9b1b0bac69aba01bd9ea (patch) | |
tree | e170576289e85a683cc1523447ba2b1186483a36 /ld/lexsup.c | |
parent | ff85c3bec462300ba827282f07307ae4981a2104 (diff) | |
download | gdb-48ecb30c92a29b12766e9b1b0bac69aba01bd9ea.zip gdb-48ecb30c92a29b12766e9b1b0bac69aba01bd9ea.tar.gz gdb-48ecb30c92a29b12766e9b1b0bac69aba01bd9ea.tar.bz2 |
* lexsup.c (is_num): Remove.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 611f838..e43e15e 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) { |