mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-21 05:04:12 +08:00
Use htab_eq_string in libctf
* ctf-impl.h (ctf_dynset_eq_string): Don't declare. * ctf-hash.c (ctf_dynset_eq_string): Delete function. * ctf-dedup.c (make_set_element): Use htab_eq_string. (ctf_dedup_atoms_init, ADD_CITER, ctf_dedup_init): Likewise. (ctf_dedup_conflictify_unshared): Likewise. (ctf_dedup_walk_output_mapping): Likewise.
This commit is contained in:
@ -140,15 +140,6 @@ ctf_hash_eq_type_id_key (const void *a, const void *b)
|
||||
&& (key_a->ctii_type == key_b->ctii_type);
|
||||
}
|
||||
|
||||
/* Hash and eq functions for the dynset. Most of these can just use the
|
||||
underlying hashtab functions directly. */
|
||||
|
||||
int
|
||||
ctf_dynset_eq_string (const void *a, const void *b)
|
||||
{
|
||||
return !strcmp((const char *) a, (const char *) b);
|
||||
}
|
||||
|
||||
/* The dynhash, used for hashes whose size is not known at creation time. */
|
||||
|
||||
/* Free a single ctf_helem with arbitrary key/value functions. */
|
||||
|
Reference in New Issue
Block a user