X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkcompare.c;h=6f9bbfd1866f0f804dd2e6f50a67e5d643faa335;hb=9765f689118107e45f5fba7261363980d378f7b3;hp=fa407ecbdb0ebb608cfb52fdc46ccc007ddae6b0;hpb=ddbba72d6ac2d51d596775b72ad64999e5cb0b77;p=idzebra-moved-to-github.git diff --git a/index/kcompare.c b/index/kcompare.c index fa407ec..6f9bbfd 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: kcompare.c,v $ - * Revision 1.3 1995-09-07 13:58:36 adam + * Revision 1.4 1995-09-08 14:52:27 adam + * Minor changes. Dictionary is lower case now. + * + * Revision 1.3 1995/09/07 13:58:36 adam * New parameter: result-set file descriptor (RSFD) to support multiple * positions within the same result-set. * Boolean operators: and, or, not implemented. @@ -23,6 +26,7 @@ #include #include #include +#include #include #include "index.h" @@ -58,16 +62,7 @@ int key_compare (const void *p1, const void *p2) return 0; } -int key_compare_x (const struct it_key *i1, const struct it_key *i2) +int index_char_cvt (int c) { - if ( i1->sysno != i2->sysno) - return i1->sysno - i2->sysno; -#if IT_KEY_HAVE_FIELD - if ( i1->seqno != i2->seqno) - return i1->seqno - i2->seqno; - return i1->field - i2->field; -#else - return i1->seqno - i2->seqno; -#endif + return tolower (c); } -