28 #include <yaz/options.h>
32 #define USERINFO_SIZE 4
34 int main(
int argc,
char **argv)
40 YAZ_CHECK_INIT(argc, argv);
56 for (pass = 0; pass < 2; pass++)
60 for (i = 0; i < no; i++)
67 for (j = 0; j < sz; j++)
69 lex[j] = 1 + (random() & 127L);
72 for (j = 0; j < userlen; j++)
87 YAZ_CHECK_EQ(userlen, info[0]);
88 YAZ_CHECK(memcmp(userinfo, info + 1, userlen) == 0);
void bf_reset(BFiles bfs)
Removes register and shadow completely.
BFiles bfs_create(const char *spec, const char *base)
creates a Block files collection
void bfs_destroy(BFiles bfiles)
destroys a block files handle
static void lex(struct DFA_parse *parse_info)
char * dict_lookup(Dict dict, const char *p)
lookup item in dictionary
Dict dict_open(BFiles bfs, const char *name, int cache, int rw, int compact_flag, int page_size)
open dictionary
int dict_insert(Dict dict, const char *p, int userlen, void *userinfo)
insert item into dictionary
int dict_close(Dict dict)
closes dictionary
int main(int argc, char **argv)