X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=cf81adc35ab127afb378482d15ab0744e627ec15;hb=795af4e3c7346eff351ff387228ec548956eada8;hp=ee30db032ec04801749eb6dac2ac02456c61f4ee;hpb=bceca936710690858ea162e7bc22de819f0e280f;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index ee30db0..cf81adc 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zebraapi.c,v $ - * Revision 1.17 1999-05-12 13:08:06 adam + * Revision 1.19 1999-05-26 07:49:13 adam + * C++ compilation. + * + * Revision 1.18 1999/05/15 14:36:38 adam + * Updated dictionary. Implemented "compression" of dictionary. + * + * Revision 1.17 1999/05/12 13:08:06 adam * First version of ISAMS. * * Revision 1.16 1999/02/19 10:38:30 adam @@ -136,7 +142,7 @@ static int zebra_register_lock (ZebraHandle zh) bf_cache (zh->bfs, state ? res_get (zh->res, "shadow") : NULL); zh->registerState = state; zh->records = rec_open (zh->bfs, 0); - if (!(zh->dict = dict_open (zh->bfs, FNAME_DICT, 40, 0))) + if (!(zh->dict = dict_open (zh->bfs, FNAME_DICT, 40, 0, 0))) { logf (LOG_WARN, "dict_open"); return -1; @@ -210,7 +216,7 @@ static void zebra_register_unlock (ZebraHandle zh) ZebraHandle zebra_open (const char *configName) { - ZebraHandle zh = xmalloc (sizeof(*zh)); + ZebraHandle zh = (ZebraHandle) xmalloc (sizeof(*zh)); if (!(zh->res = res_open (configName))) { @@ -295,7 +301,7 @@ struct map_baseinfo { void map_basenames_func (void *vp, const char *name, const char *value) { - struct map_baseinfo *p = vp; + struct map_baseinfo *p = (struct map_baseinfo *) vp; int i, no; char fromdb[128], todb[8][128]; @@ -376,7 +382,7 @@ void zebra_records_retrieve (ZebraHandle zh, ODR stream, zh->errCode = 0; zh->errString = NULL; - pos_array = xmalloc (num_recs * sizeof(*pos_array)); + pos_array = (int *) xmalloc (num_recs * sizeof(*pos_array)); for (i = 0; i