projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
section on relation attributes added
[idzebra-moved-to-github.git]
/
index
/
kcompare.c
diff --git
a/index/kcompare.c
b/index/kcompare.c
index
b53c516
..
83f5af5
100644
(file)
--- a/
index/kcompare.c
+++ b/
index/kcompare.c
@@
-1,4
+1,4
@@
-/* $Id: kcompare.c,v 1.56 2005-04-13 13:03:47 adam Exp $
+/* $Id: kcompare.c,v 1.58 2006-05-10 08:13:21 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
Copyright (C) 1995-2005
Index Data ApS
@@
-33,9
+33,11
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define CODEC_INLINE
#endif
#define CODEC_INLINE
#endif
-void key_logdump_txt (int logmask, const void *p, const char *txt)
+void key_logdump_txt(int logmask, const void *p, const char *txt)
{
struct it_key key;
{
struct it_key key;
+ if (!txt)
+ txt = "(none)";
if (p)
{
char formstr[128];
if (p)
{
char formstr[128];
@@
-50,13
+52,13
@@
void key_logdump_txt (int logmask, const void *p, const char *txt)
strcat(formstr, ".");
sprintf(formstr + strlen(formstr), ZINT_FORMAT, key.mem[i]);
}
strcat(formstr, ".");
sprintf(formstr + strlen(formstr), ZINT_FORMAT, key.mem[i]);
}
- yaz_log (logmask, "%s %s", formstr, txt);
+ yaz_log(logmask, "%s %s", formstr, txt);
}
else
}
else
- yaz_log(logmask, " (null) %s",txt);
+ yaz_log(logmask, " (no key) %s",txt);
}
}
-void key_logdump (int logmask, const void *p)
+void key_logdump(int logmask, const void *p)
{
key_logdump_txt(logmask, p, "");
}
{
key_logdump_txt(logmask, p, "");
}
@@
-336,3
+338,11
@@
int key_SU_decode (int *ch, const unsigned char *out)
return len;
}
return len;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+