mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
(add_sym): Compare namespace names instead of namespace objects. This
prevents the parser from incorrectly treating classes whose superclass is in another namespace.
This commit is contained in:
parent
1768573d12
commit
41ea4df8c3
@ -1,3 +1,9 @@
|
||||
2005-09-20 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* ebrowse.c (add_sym): Compare namespace names instead of
|
||||
namespace objects. This prevents the parser from incorrectly
|
||||
treating classes whose superclass is in another namespace.
|
||||
|
||||
2005-09-15 Richard M. Stallman <rms@gnu.org>
|
||||
|
||||
* Makefile.in (update-game-score.o): New target.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user