Commit 063df563 by Per Bothner Committed by Per Bothner

parse.y (java_pop_parser_context): The TREE_VALUE of a link in the import_list…

parse.y (java_pop_parser_context): The TREE_VALUE of a link in the import_list contains the name, not the TREE_PURPOSE.


	* parse.y (java_pop_parser_context):  The TREE_VALUE of a link in the
	import_list contains the name, not the TREE_PURPOSE.

From-SVN: r41739
parent aa32d8f6
2001-05-01 Per Bothner <per@bothner.com>
* parse.y (java_pop_parser_context): The TREE_VALUE of a link in the
import_list contains the name, not the TREE_PURPOSE.
2001-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* jcf-io.c (read_zip_member): Cast to long in comparison with * jcf-io.c (read_zip_member): Cast to long in comparison with
......
...@@ -2671,12 +2671,12 @@ java_pop_parser_context (generate) ...@@ -2671,12 +2671,12 @@ java_pop_parser_context (generate)
/* Set the single import class file flag to 0 for the current list /* Set the single import class file flag to 0 for the current list
of imported things */ of imported things */
for (current = ctxp->import_list; current; current = TREE_CHAIN (current)) for (current = ctxp->import_list; current; current = TREE_CHAIN (current))
IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_PURPOSE (current)) = 0; IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_VALUE (current)) = 0;
/* And restore those of the previous context */ /* And restore those of the previous context */
if ((ctxp = next)) /* Assignment is really meant here */ if ((ctxp = next)) /* Assignment is really meant here */
for (current = ctxp->import_list; current; current = TREE_CHAIN (current)) for (current = ctxp->import_list; current; current = TREE_CHAIN (current))
IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_PURPOSE (current)) = 1; IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_VALUE (current)) = 1;
/* If we pushed a context to parse a class intended to be generated, /* If we pushed a context to parse a class intended to be generated,
we keep it so we can remember the class. What we could actually we keep it so we can remember the class. What we could actually
......
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