Commit 0daa67d1 by Theodore Papadopoulo Committed by Jeff Law

* decl2.c (lang_decode_option): Use read_integral_parameter.

From-SVN: r24986
parent 132e01b1
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> 1999-02-01 Mark Mitchell <mark@markmitchell.com>
* pt.c (tsubst, case TYPENAME_TYPE): Check TYPE_BEING_DEFINED * pt.c (tsubst, case TYPENAME_TYPE): Check TYPE_BEING_DEFINED
......
...@@ -601,35 +601,13 @@ lang_decode_option (argc, argv) ...@@ -601,35 +601,13 @@ lang_decode_option (argc, argv)
} }
else if (!strncmp (p, "template-depth-", 15)) else if (!strncmp (p, "template-depth-", 15))
{ {
char *endp = p + 15; max_tinst_depth =
while (*endp) read_integral_parameter (p + 15, p - 2, max_tinst_depth);
{
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: ;
} }
else if (!strncmp (p, "name-mangling-version-", 22)) else if (!strncmp (p, "name-mangling-version-", 22))
{ {
char *endp = p + 22; name_mangling_version =
while (*endp) read_integral_parameter (p + 22, p - 2, name_mangling_version);
{
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: ;
} }
else for (j = 0; else for (j = 0;
!found && j < sizeof (lang_f_options) / sizeof (lang_f_options[0]); !found && j < sizeof (lang_f_options) / sizeof (lang_f_options[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment