/*
- * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
/** The entry of a set, representing an element in the set and it's meta-information */
typedef struct set_entry {
- unsigned hash; /**< the hash value of the element */
- size_t size; /**< the size of the element */
- int dptr[1]; /**< the element itself, data copied in must not need more
- alignment than this */
+ unsigned hash; /**< the hash value of the element */
+ size_t size; /**< the size of the element */
+ int dptr[1]; /**< the element itself, data copied in must not need more
+ alignment than this */
} set_entry;
/**
* @returns
* created set
*/
-FIRM_API set *new_set(set_cmp_fun func, int slots);
+FIRM_API set *new_set(set_cmp_fun func, size_t slots);
/**
* Deletes a set and all elements of it.
*
* @param set the set
*/
-FIRM_API int set_count(set *set);
+FIRM_API size_t set_count(set *set);
/**
* Searches an element in a set.
*
* @param set the set
*/
-FIRM_API void set_describe (set *set);
+FIRM_API void set_describe(set *set);
#endif