diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-02 16:21:18 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-02 16:21:18 +0000 |
commit | 8a6f311ec471a5f351d390a168b792fa20a1cac1 (patch) | |
tree | 97448ca0855bf51affb027c103796bd44462c67f /gcc/pointer-set.h | |
parent | 72fde5e21f3978db94610e1e2be61e9458adc33e (diff) | |
download | gcc-8a6f311ec471a5f351d390a168b792fa20a1cac1.tar.gz |
2007-02-02 Paolo Bonzini <bonzini@gnu.org>
* pointer-set.c (insert_aux): Only return insertion slot.
(pointer_set_insert): Adjust.
(pointer_set_traverse, struct pointer_map_t, pointer_map_create,
pointer_map_destroy, pointer_map_insert, pointer_map_contains,
pointer_map_traverse): New.
* pointer-set.h (pointer_set_traverse, struct pointer_map_t,
pointer_map_create, pointer_map_destroy, pointer_map_insert,
pointer_map_contains, pointer_map_traverse): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/pointer-set.h')
-rw-r--r-- | gcc/pointer-set.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/pointer-set.h b/gcc/pointer-set.h index 7b2e6bc3d2c..55d080eb5eb 100644 --- a/gcc/pointer-set.h +++ b/gcc/pointer-set.h @@ -22,11 +22,21 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #define POINTER_SET_H struct pointer_set_t; - struct pointer_set_t *pointer_set_create (void); void pointer_set_destroy (struct pointer_set_t *pset); int pointer_set_contains (struct pointer_set_t *pset, void *p); int pointer_set_insert (struct pointer_set_t *pset, void *p); +void pointer_set_traverse (struct pointer_set_t *, bool (*) (void *, void *), + void *); + +struct pointer_map_t; +struct pointer_map_t *pointer_map_create (void); +void pointer_map_destroy (struct pointer_map_t *pmap); + +void **pointer_map_contains (struct pointer_map_t *pmap, void *p); +void **pointer_map_insert (struct pointer_map_t *pmap, void *p); +void pointer_map_traverse (struct pointer_map_t *, + bool (*) (void *, void **, void *), void *); #endif /* POINTER_SET_H */ |