-/* $Id: zinfo.c,v 1.56 2006-03-26 14:17:01 adam Exp $
+/* $Id: zinfo.c,v 1.58 2006-05-10 08:13:23 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord,
int *index_type,
const char **db,
- int *set, int *use)
+ int *set, int *use,
+ const char **string_index)
{
struct zebDatabaseInfoB *zdb;
+
+ if (set)
+ *set = -1;
+ if (use)
+ *use = -1;
+ if (index_type)
+ *index_type = 0;
+ if (string_index)
+ *string_index = 0;
+
for (zdb = zei->databaseInfo; zdb; zdb = zdb->next)
{
struct zebSUInfoB *zsui;
if (use)
*use = zsui->info.u.su.use;
}
+
+ if (zsui->info.which == ZEB_SU_STR)
+ if (string_index)
+ *string_index = zsui->info.u.str;
+
if (index_type)
*index_type = zsui->info.index_type;
return 0;
If the database doesn't exist globally (in TargetInfo) an
AttributeSetInfo must be added (globally).
*/
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+