Commit abadf548 authored by Pekka Pessi's avatar Pekka Pessi

sofia-sip/htable2.h: fixed HTABLE_PROTOS2()

darcs-hash:20071107125808-65a35-3e213f9204b2025b87bbcd4a0d1a79e4527da642.gz
parent 7a766395
......@@ -102,8 +102,8 @@ typedef struct sname { \
* @param pr hash table field prefix (not used)
* @param entrytype entry type
*/
#define HTABLE2_PROTOS2(type, prefix, pr, entrytype) \
HTABLE2_SCOPE int prefix##_resize(void *a, type *, usize_t); \
#define HTABLE2_PROTOS2(type, prefix, pr, entrytype, size_t) \
HTABLE2_SCOPE int prefix##_resize(void *a, type *, size_t); \
HTABLE2_SCOPE int prefix##_is_full(type const *); \
HTABLE2_SCOPE entrytype *prefix##_hash(type const *, hash_value_t); \
HTABLE2_SCOPE entrytype *prefix##_next(type const *, entrytype *); \
......@@ -112,7 +112,7 @@ HTABLE2_SCOPE entrytype *prefix##_insert(type *, entrytype); \
HTABLE2_SCOPE int prefix##_remove(type *, entrytype const)
#define HTABLE2_PROTOS(type, prefix, pr, entrytype) \
HTABLE2_PROTOS2(type, prefix, pr, entrytype)
HTABLE2_PROTOS2(type, prefix, pr, entrytype, unsigned)
/** Hash table implementation.
*
......
......@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
typedef struct hentry_s entry_t;
HTABLE2_DECLARE2(htable2_t, htable2_s, ht2_, entry_t, size_t);
HTABLE2_PROTOS2(htable2_t, htable2, ht2_, entry_t);
HTABLE2_PROTOS2(htable2_t, htable2, ht2_, entry_t, size_t);
struct hentry_s
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment