X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=index%2Fkcompare.c;h=c32998e3c8fc88c57ccaa3a6c5136fafe6c27bc6;hb=6617321a09d4d5bf442feaea2d7f1347acd82e3c;hp=82f9343f24390b675d612acd23bfba89ef80e180;hpb=9fe3bf8d659adc5c0623185779272d933fc51d15;p=idzebra-moved-to-github.git diff --git a/index/kcompare.c b/index/kcompare.c index 82f9343..c32998e 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: kcompare.c,v $ - * Revision 1.12 1995-10-17 18:02:08 adam + * Revision 1.13 1995-10-27 14:00:11 adam + * Implemented detection of database availability. + * + * Revision 1.12 1995/10/17 18:02:08 adam * New feature: databases. Implemented as prefix to words in dictionary. * * Revision 1.11 1995/10/06 16:33:37 adam @@ -117,24 +120,11 @@ int index_char_cvt (int c) int index_word_prefix (char *string, int attset_ordinal, int local_attribute, - int num_bases, - char **databaseNames) + char *databaseName) { int i; - if (num_bases > 1) - { - sprintf (string, "%c%04d(", attset_ordinal + '0', local_attribute); - strcat (string, databaseNames[i]); - for (i = 1; i < num_bases; i++) - { - strcat (string, "|"); - strcat (string, databaseNames[i]); - } - strcat (string, ")@"); - } - else - sprintf (string, "%c%04d%s@", attset_ordinal + '0', local_attribute, - *databaseNames); + sprintf (string, "%s@%c%04d", databaseName, + attset_ordinal + '0', local_attribute); for (i = 0; string[i]; i++) string[i] = index_char_cvt (string[i]); return i;