diff options
| author | Chong Yidong | 2005-09-20 13:19:29 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-09-20 13:19:29 +0000 |
| commit | 41ea4df8c30cb9c1c7254188c5aa812d9875f383 (patch) | |
| tree | 1049db2c8f921ec9bba2d7602901c781a180aa71 /lib-src | |
| parent | 1768573d120182bb272b9696112bc8427340346b (diff) | |
| download | emacs-41ea4df8c30cb9c1c7254188c5aa812d9875f383.tar.gz emacs-41ea4df8c30cb9c1c7254188c5aa812d9875f383.zip | |
(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')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 76e56e77e16..7d22972794f 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-09-20 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * ebrowse.c (add_sym): Compare namespace names instead of | ||
| 4 | namespace objects. This prevents the parser from incorrectly | ||
| 5 | treating classes whose superclass is in another namespace. | ||
| 6 | |||
| 1 | 2005-09-15 Richard M. Stallman <rms@gnu.org> | 7 | 2005-09-15 Richard M. Stallman <rms@gnu.org> |
| 2 | 8 | ||
| 3 | * Makefile.in (update-game-score.o): New target. | 9 | * Makefile.in (update-game-score.o): New target. |
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) | |||
| 648 | h %= TABLE_SIZE; | 648 | h %= TABLE_SIZE; |
| 649 | 649 | ||
| 650 | for (sym = class_table[h]; sym; sym = sym->next) | 650 | for (sym = class_table[h]; sym; sym = sym->next) |
| 651 | if (streq (name, sym->name) && sym->namesp == scope) | 651 | if (streq (name, sym->name) |
| 652 | && ((!sym->namesp && !scope) | ||
| 653 | || (sym->namesp && scope | ||
| 654 | && streq (sym->namesp->name, scope->name)))) | ||
| 652 | break; | 655 | break; |
| 653 | 656 | ||
| 654 | if (sym == NULL) | 657 | if (sym == NULL) |