From 0740a4aabbcbe33f51408bd91e1609aea8bdaacd Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Wed, 1 Dec 2004 11:04:36 +0000 Subject: [PATCH] Added convenience macros for pointers. [r4532] --- ir/adt/pset.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ir/adt/pset.h b/ir/adt/pset.h index f32095b7b..6d93bde8f 100644 --- a/ir/adt/pset.h +++ b/ir/adt/pset.h @@ -15,6 +15,16 @@ #include +#include "hashptr.h" + +/* + * Define some convenience macros using the predefined hash function. + */ +#define pset_insert_ptr(set,key) pset_insert(set, key, HASH_PTR(key)) +#define pset_hinsert_ptr(set,key) pset_hinsert(set, key, HASH_PTR(key)) +#define pset_remove_ptr(set,key) pset_remove(set, key, HASH_PTR(key)) +#define pset_find_ptr(set,key) pset_find(set, key, HASH_PTR(key)) + /** * The abstract type of a pset (Set of pointers). * -- 2.20.1