Enable custom bcache hash function.
2010-08-25 Sami Wagiaalla <swagiaal@redhat.com> * psymtab.c (add_psymbol_to_bcache): Remove 'static' from 'static partial_symbol psymbol'. (psymbol_hash): New function. (psymbol_compare): New function. * bcache.c (hash_continue): New. (hash): Use hash_continue. * bcache.c: Add hash_function and compare_function pointers to bcache struct. (bcache_full): Use bcache->hash_function, and bcache->compare_function. (bcache_compare): New function. (bcache_xmalloc): Take hash_function and compare_function arguments and initialize the bcach's pointers. Updated comment. * objfiles.c (allocate_objfile): Updated. * symfile.c (reread_symbols): Updated. * python/py-type.c (typy_richcompare): Updated.
This commit is contained in:
parent
107c6e11a7
commit
cbd7053759
8 changed files with 128 additions and 25 deletions
|
@ -895,7 +895,7 @@ typy_richcompare (PyObject *self, PyObject *other, int op)
|
|||
VEC (type_equality_entry_d) *worklist = NULL;
|
||||
struct type_equality_entry entry;
|
||||
|
||||
cache = bcache_xmalloc ();
|
||||
cache = bcache_xmalloc (NULL, NULL);
|
||||
|
||||
entry.type1 = type1;
|
||||
entry.type2 = type2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue