/*
- * 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.
*
#define pset_new_ptr(slots) new_pset(pset_default_ptr_cmp, slots)
#define pset_new_ptr_default() pset_new_ptr(64)
-/** The entry of a pset, representing an element pointer in the set and it's meta-information */
+/** The entry of a pset, representing an element pointer in the set and its meta-information */
typedef struct {
unsigned hash;
void *dptr;
* @returns
* created pset
*/
-FIRM_API pset *new_pset(pset_cmp_fun func, int slots);
+FIRM_API pset *new_pset(pset_cmp_fun func, size_t slots);
/**
* Deletes a pset.
* @param pset the pset
*
* @note
- * This does NOT delete the elements of this pset, just it's pointers!
+ * This does NOT delete the elements of this pset, just its pointers!
*/
FIRM_API void del_pset(pset *pset);
*
* @param pset the pset
*/
-FIRM_API int pset_count(pset *pset);
+FIRM_API size_t pset_count(pset *pset);
/**
* Searches an element pointer in a pset.