/* Tests for hash table routines */
-#include "ucw/lib.h"
-#include "ucw/mempool.h"
+#include <ucw/lib.h>
+#include <ucw/mempool.h>
#include <stdio.h>
#include <string.h>
#define HASH_WANT_LOOKUP
#define HASH_WANT_REMOVE
-#include "ucw/hashtable.h"
+#include <ucw/hashtable.h>
static void test1(void)
{
#define HASH_WANT_FIND
#define HASH_WANT_NEW
-#include "ucw/hashtable.h"
+#include <ucw/hashtable.h>
static void test2(void)
{
#define HASH_USE_POOL pool3
-#include "ucw/hashtable.h"
+#include <ucw/hashtable.h>
static void test3(void)
{
/* TEST 4: complex keys */
-#include "ucw/hashfunc.h"
+#include <ucw/hashfunc.h>
struct node4 {
int port;
#define HASH_WANT_REMOVE
#define HASH_GIVE_HASHFN
-static uns test4_hash(char *host, int port)
+static uint test4_hash(char *host, int port)
{
return hash_string_nocase(host) ^ hash_u32(port);
}
}
#define HASH_GIVE_EXTRA_SIZE
-static inline uns test4_extra_size(char *host, int port UNUSED)
+static inline uint test4_extra_size(char *host, int port UNUSED)
{
return strlen(host);
}
n->port = port;
}
-#include "ucw/hashtable.h"
+#include <ucw/hashtable.h>
static void test4(void)
{
#define HASH_WANT_NEW
#define HASH_WANT_DELETE
-#include "ucw/hashtable.h"
+#include <ucw/hashtable.h>
static void test5(void)
{
int
main(int argc, char **argv)
{
- uns m = ~0U;
+ uint m = ~0U;
if (argc > 1)
{
m = 0;