This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Java: Minor fix in qualification mark of class name quanditates
- To: egcs-patches at egcs dot cygnus dot com
- Subject: [PATCH] Java: Minor fix in qualification mark of class name quanditates
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Mon, 7 Jun 1999 17:14:45 -0700
Mark class name candidate identifier nodes (guessed after file names)
QUALIFIED_P only if they originally contained a `/' character (turned
into a `.' by ident_subst.) The patch has already been checked in.
./A
Mon Jun 7 16:09:51 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (note_possible_classname): Mark returned node with
QUALIFIED_P only if the original class name contained a '/'.
Index: parse.y
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/java/parse.y,v
retrieving revision 1.90
diff -u -p -r1.90 parse.y
--- parse.y 1999/05/28 19:26:08 1.90
+++ parse.y 1999/06/08 00:08:21
@@ -5036,7 +5036,7 @@ note_possible_classname (name, len)
return 0;
node = ident_subst (name, len, "", '/', '.', "");
IS_A_CLASSFILE_NAME (node) = 1; /* Or soon to be */
- QUALIFIED_P (node) = 1; /* As soon as we turn / into . */
+ QUALIFIED_P (node) = strchr (name, '/') ? 1 : 0;
return 1;
}