diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-24 19:01:51 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-24 19:01:51 +0000 |
commit | 2edb89d30e939aeafb135c42ad96e80716f984b9 (patch) | |
tree | b6aa082c918612c2c7640a2f4f04cb5c7647629f /gdb/dictionary.h | |
parent | f6df29bc29c8eb8ec95a14c0f96906ead96c4107 (diff) | |
download | gdb-2edb89d30e939aeafb135c42ad96e80716f984b9.zip gdb-2edb89d30e939aeafb135c42ad96e80716f984b9.tar.gz gdb-2edb89d30e939aeafb135c42ad96e80716f984b9.tar.bz2 |
gdb/
Code cleanup.
* dictionary.c
(struct dict_vector) <iter_match_first, iter_match_next>
(iter_match_first_hashed, iter_match_next_hashed)
(iter_match_first_linear, iter_match_next_linear)
(dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
(iter_match_next_hashed, iter_match_first_linear)
(iter_match_next_linear): Use symbol_compare_ftype.
* dictionary.h: Include symfile.h.
(dict_iter_match_first, dict_iter_match_next): Use
symbol_compare_ftype.
* dwarf2read.c (dw2_map_matching_symbols): Likewise.
* psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
(map_matching_symbols_psymtab): Likewise.
* symfile.h (symbol_compare_ftype): New typedef.
(struct quick_symbol_functions) <map_matching_symbols): Use
symbol_compare_ftype.
Diffstat (limited to 'gdb/dictionary.h')
-rw-r--r-- | gdb/dictionary.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dictionary.h b/gdb/dictionary.h index f7d3035..b5b794c 100644 --- a/gdb/dictionary.h +++ b/gdb/dictionary.h @@ -23,6 +23,8 @@ #ifndef DICTIONARY_H #define DICTIONARY_H +#include "symfile.h" + /* An opaque type for dictionaries; only dictionary.c should know about its innards. */ @@ -142,8 +144,7 @@ extern struct symbol *dict_iter_name_next (const char *name, extern struct symbol *dict_iter_match_first (const struct dictionary *dict, const char *name, - int (*compare) (const char*, - const char *), + symbol_compare_ftype *compare, struct dict_iterator *iterator); /* Advance ITERATOR to point at the next symbol in DICT whose @@ -155,8 +156,7 @@ extern struct symbol *dict_iter_match_first (const struct dictionary *dict, previous call to dict_iter_match_first with the same NAME and COMPARE. */ extern struct symbol *dict_iter_match_next (const char *name, - int (*compare) (const char*, - const char *), + symbol_compare_ftype *compare, struct dict_iterator *iterator); /* Return some notion of the size of the dictionary: the number of |