* lexsup.c (is_num): Remove.
This commit is contained in:
parent
ff85c3bec4
commit
48ecb30c92
|
@ -1,3 +1,7 @@
|
|||
2003-12-06 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* lexsup.c (is_num): Remove.
|
||||
|
||||
2003-12-05 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
|
||||
|
||||
* pe-dll.c (generate_reloc): Remap ARM_26D relocation from 5 to
|
||||
|
|
23
ld/lexsup.c
23
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue