summaryrefslogtreecommitdiff
path: root/lib-src/ebrowse.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2005-09-20 13:19:29 +0000
committerChong Yidong <cyd@stupidchicken.com>2005-09-20 13:19:29 +0000
commit41ea4df8c30cb9c1c7254188c5aa812d9875f383 (patch)
tree1049db2c8f921ec9bba2d7602901c781a180aa71 /lib-src/ebrowse.c
parent1768573d120182bb272b9696112bc8427340346b (diff)
downloademacs-41ea4df8c30cb9c1c7254188c5aa812d9875f383.tar.gz
(add_sym): Compare namespace names instead of namespace objects. This
prevents the parser from incorrectly treating classes whose superclass is in another namespace.
Diffstat (limited to 'lib-src/ebrowse.c')
-rw-r--r--lib-src/ebrowse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 49e353cf536..a9a3eb78442 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -648,7 +648,10 @@ add_sym (name, nested_in_class)
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)