indexes (problem in zebraExplain_lookup_ord).
-/* $Id: extract.c,v 1.193 2005-08-26 10:13:30 adam Exp $
+/* $Id: extract.c,v 1.194 2005-08-30 12:23:02 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
char *dst = (char*) &key;
char dst_buf[IT_MAX_WORD];
char *dst_term = dst_buf;
- int index_type, ord;
+ int index_type = 0, ord;
iscz1_decode(decode_handle, &dst, &src);
assert(key.len <= 4 && key.len > 2);
zebraExplain_lookup_ord(zh->reg->zei, ord, &index_type,
0/* db */, 0/* set */, 0/* use */);
+ assert(index_type);
zebra_term_untrans_iconv(zh, nmem, index_type,
&dst_term, src);
zebra_snippets_append(snippets, seqno, ord, dst_term);
-/* $Id: zinfo.c,v 1.50 2005-08-26 10:13:31 adam Exp $
+/* $Id: zinfo.c,v 1.51 2005-08-30 12:23:02 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
{
struct zebSUInfoB *zsui = zdb->attributeDetails->SUInfo;
for ( ;zsui; zsui = zsui->next)
- if (zsui->info.which == ZEB_SU_SET_USE &&
- zsui->info.ordinal == ord)
+ if (zsui->info.ordinal == ord)
{
if (db)
*db = zdb->databaseName;
- if (set)
- *set = zsui->info.u.su.set;
- if (use)
- *use = zsui->info.u.su.use;
+ if (zsui->info.which == ZEB_SU_SET_USE)
+ {
+ if (set)
+ *set = zsui->info.u.su.set;
+ if (use)
+ *use = zsui->info.u.su.use;
+ }
if (index_type)
*index_type = zsui->info.index_type;
return 0;
-/* $Id: zebramap.c,v 1.42 2005-06-15 21:31:45 adam Exp $
+/* $Id: zebramap.c,v 1.43 2005-08-30 12:23:02 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
struct zebra_map *zebra_map_get (ZebraMaps zms, unsigned reg_id)
{
+ assert(reg_id >= 0 && reg_id <= 255);
return zms->lookup_array[reg_id];
}