Commit 3136eb07 authored by Pekka Pessi's avatar Pekka Pessi

test_htable2.c: define struct before using it in prototypes

darcs-hash:20071120030507-55b16-5ed7d425d1cc9824206b190454e35e9f6a1cbccd.gz
parent fa6ed356
......@@ -83,15 +83,15 @@ 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, size_t);
struct hentry_s
{
unsigned long e_hash;
hash_value_t e_hash;
unsigned long e_n;
};
HTABLE2_DECLARE2(htable2_t, htable2_s, ht2_, entry_t, size_t);
HTABLE2_PROTOS2(htable2_t, htable2, ht2_, entry_t, size_t);
#define HENTRY_HASH(e) ((e).e_hash)
#define HENTRY_IS_USED(e) ((e).e_n != 0)
#define HENTRY_REMOVE(e) ((e)->e_n = 0, (e)->e_hash = 0)
......
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