44 YAZ_CHECK(data_buf && data_len ==
sizeof v
45 && v == *((
int*) data_buf));
49 YAZ_CHECK(data_buf == 0);
66 YAZ_CHECK(!strcmp(name,
"a") || !strcmp(name,
"b") ||
83 for (i = 0; i < no_iter; i++)
89 for (j = 0; j <
sizeof(str)-1; j++)
90 str[j] = rand() & 255;
100 for (i = 0; i < no_iter; i++)
108 for (j = 0; j <
sizeof(str)-1; j++)
109 str[j] = rand() & 255;
115 if (data_len ==
sizeof v && v == *((
int*) data_buf))
119 if (!(data_buf && data_len ==
sizeof v
120 && v == *((
int*) data_buf)))
124 YAZ_CHECK_EQ(failed, 0);
129 int main (
int argc,
char **argv)
131 YAZ_CHECK_INIT(argc, argv);
static void test2(int no_iter)
int main(int argc, char **argv)
int zebra_strmap_remove(zebra_strmap_t st, const char *name)
void zebra_strmap_destroy(zebra_strmap_t st)
void * zebra_strmap_lookup(zebra_strmap_t st, const char *name, int no, size_t *data_len)
const char * zebra_strmap_it_next(zebra_strmap_it it, void **data_buf, size_t *data_len)
zebra_strmap_t zebra_strmap_create(void)
void zebra_strmap_it_destroy(zebra_strmap_it it)
void zebra_strmap_add(zebra_strmap_t st, const char *name, void *data_buf, size_t data_len)
zebra_strmap_it zebra_strmap_it_create(zebra_strmap_t st)