jcf-parse.c (java_parse_file): Handle the case that input_filename is NULL.
* jcf-parse.c (java_parse_file): Handle the case that input_filename is NULL. From-SVN: r78649
This commit is contained in:
parent
bc41842bb2
commit
083474cc69
|
@ -1,3 +1,8 @@
|
|||
2004-02-29 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* jcf-parse.c (java_parse_file): Handle the case that input_filename
|
||||
is NULL.
|
||||
|
||||
2004-02-27 Per Bothner <per@bothner.com>
|
||||
|
||||
* parse.y (build_assertion): Re-do 02-25 change following Jeff Sturm
|
||||
|
|
|
@ -910,9 +910,9 @@ java_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
|
|||
finput = NULL;
|
||||
}
|
||||
else
|
||||
list = xstrdup (input_filename);
|
||||
list = input_filename ? xstrdup (input_filename) : 0;
|
||||
|
||||
do
|
||||
while (list)
|
||||
{
|
||||
for (next = list; ; )
|
||||
{
|
||||
|
@ -991,7 +991,6 @@ java_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
|
|||
}
|
||||
list = next;
|
||||
}
|
||||
while (next);
|
||||
|
||||
if (filename_count == 0)
|
||||
warning ("no input file specified");
|
||||
|
|
Loading…
Reference in New Issue