# HG changeset patch # User Chong Yidong # Date 1127222369 0 # Node ID 69a9e146ef3587209e8e7ee97c151207f8d9f69b # Parent 348c05075334c460c85ab89b1cacebfa8eb4679b (add_sym): Compare namespace names instead of namespace objects. This prevents the parser from incorrectly treating classes whose superclass is in another namespace. diff -r 348c05075334 -r 69a9e146ef35 lib-src/ChangeLog --- a/lib-src/ChangeLog Tue Sep 20 08:05:56 2005 +0000 +++ b/lib-src/ChangeLog Tue Sep 20 13:19:29 2005 +0000 @@ -1,3 +1,9 @@ +2005-09-20 Chong Yidong + + * 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 * Makefile.in (update-game-score.o): New target. diff -r 348c05075334 -r 69a9e146ef35 lib-src/ebrowse.c --- 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)