diff lib-src/ebrowse.c @ 65626:69a9e146ef35

(add_sym): Compare namespace names instead of namespace objects. This prevents the parser from incorrectly treating classes whose superclass is in another namespace.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 20 Sep 2005 13:19:29 +0000
parents 6358e3c6075c
children 3661e9b3c48f ee12d75eb214
line wrap: on
line diff
--- a/lib-src/ebrowse.c	Tue Sep 20 08:05:56 2005 +0000
+++ b/lib-src/ebrowse.c	Tue Sep 20 13:19:29 2005 +0000
@@ -648,7 +648,10 @@
   h %= TABLE_SIZE;
 
   for (sym = class_table[h]; sym; sym = sym->next)
-    if (streq (name, sym->name) && sym->namesp == scope)
+    if (streq (name, sym->name)
+	&& ((!sym->namesp && !scope)
+	    || (sym->namesp && scope
+		&& streq (sym->namesp->name, scope->name))))
       break;
 
   if (sym == NULL)