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
Only use inline on GCC
[idzebra-moved-to-github.git]
/
index
/
kcompare.c
diff --git
a/index/kcompare.c
b/index/kcompare.c
index
e874af1
..
bb4fd08
100644
(file)
--- a/
index/kcompare.c
+++ b/
index/kcompare.c
@@
-1,4
+1,4
@@
-/* $Id: kcompare.c,v 1.47 2004-08-04 08:35:23 adam Exp $
+/* $Id: kcompare.c,v 1.49 2004-08-06 09:37:37 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
@@
-33,7
+33,12
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define INT_CODEC_NEW 0
#endif
#define INT_CODEC_NEW 0
#endif
+#ifdef __GNUC__
#define CODEC_INLINE inline
#define CODEC_INLINE inline
+#else
+#define CODEC_INLINE
+#endif
+
void key_logdump_txt (int logmask, const void *p, const char *txt)
{
struct it_key key;
void key_logdump_txt (int logmask, const void *p, const char *txt)
{
struct it_key key;
@@
-118,10
+123,13
@@
char *key_print_it (const void *p, char *buf)
int key_compare (const void *p1, const void *p2)
{
struct it_key i1, i2;
int key_compare (const void *p1, const void *p2)
{
struct it_key i1, i2;
+#if IT_KEY_NEW
+ int i, l;
+#endif
memcpy (&i1, p1, sizeof(i1));
memcpy (&i2, p2, sizeof(i2));
#if IT_KEY_NEW
memcpy (&i1, p1, sizeof(i1));
memcpy (&i2, p2, sizeof(i2));
#if IT_KEY_NEW
- int i, l = i1.len;
+ l = i1.len;
if (i2.len > l)
l = i2.len;
assert (l <= 4 && l > 0);
if (i2.len > l)
l = i2.len;
assert (l <= 4 && l > 0);