X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=74400fb7ad296c8a03eddc5248a1327cc1cf919f;hb=f3425fb457792aae865096cf9acf5cb41798b1d1;hp=8120ebe667c54bebfe52e60cb0c06e5261488082;hpb=4ed5fbcd29d2a98b048d1d94510b262d352b4f7c;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 8120ebe..74400fb 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zebraapi.c,v $ - * Revision 1.18 1999-05-15 14:36:38 adam + * Revision 1.20 1999-07-06 12:28:04 adam + * Updated record index structure. Format includes version ID. Compression + * algorithm ID is stored for each record block. + * + * 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 @@ -138,7 +145,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); + zh->records = rec_open (zh->bfs, 0, 0); if (!(zh->dict = dict_open (zh->bfs, FNAME_DICT, 40, 0, 0))) { logf (LOG_WARN, "dict_open"); @@ -213,7 +220,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))) { @@ -298,7 +305,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]; @@ -379,7 +386,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