* decl2.c (lang_decode_option): Use read_integral_parameter.

From-SVN: r24986
This commit is contained in:
Theodore Papadopoulo 1999-02-02 22:47:20 +01:00 committed by Jeff Law
parent 132e01b1e6
commit 0daa67d1d6
2 changed files with 8 additions and 26 deletions

View File

@ -1,3 +1,7 @@
Tue Feb 2 22:38:48 1999 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* decl2.c (lang_decode_option): Use read_integral_parameter.
1999-02-01 Mark Mitchell <mark@markmitchell.com>
* pt.c (tsubst, case TYPENAME_TYPE): Check TYPE_BEING_DEFINED

View File

@ -601,35 +601,13 @@ lang_decode_option (argc, argv)
}
else if (!strncmp (p, "template-depth-", 15))
{
char *endp = p + 15;
while (*endp)
{
if (*endp >= '0' && *endp <= '9')
endp++;
else
{
error ("Invalid option `%s'", p - 2);
goto template_depth_lose;
}
}
max_tinst_depth = atoi (p + 15);
template_depth_lose: ;
max_tinst_depth =
read_integral_parameter (p + 15, p - 2, max_tinst_depth);
}
else if (!strncmp (p, "name-mangling-version-", 22))
{
char *endp = p + 22;
while (*endp)
{
if (*endp >= '0' && *endp <= '9')
endp++;
else
{
error ("Invalid option `%s'", p - 2);
goto mangling_version_lose;
}
}
name_mangling_version = atoi (p + 22);
mangling_version_lose: ;
name_mangling_version =
read_integral_parameter (p + 22, p - 2, name_mangling_version);
}
else for (j = 0;
!found && j < sizeof (lang_f_options) / sizeof (lang_f_options[0]);