X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=index%2Findex.h;h=6ac14c241c18e94ebc99170d74d22f08c99ad415;hb=2c7c2ca460fee75f3bebc0479b9787f0c401db03;hp=1d8ea486fb9ef3f44cc36e864fb7f92ed520466d;hpb=3003d747565b03bac252b43eca48bb691d1adbfc;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index 1d8ea48..6ac14c2 100644 --- a/index/index.h +++ b/index/index.h @@ -4,7 +4,19 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: index.h,v $ - * Revision 1.13 1995-09-28 14:22:56 adam + * Revision 1.17 1995-10-13 16:01:49 adam + * Work on relations. + * + * Revision 1.16 1995/10/10 12:24:38 adam + * Temporary sort files are compressed. + * + * Revision 1.15 1995/10/04 16:57:19 adam + * Key input and merge sort in one pass. + * + * Revision 1.14 1995/09/29 14:01:40 adam + * Bug fixes. + * + * Revision 1.13 1995/09/28 14:22:56 adam * Sort uses smaller temporary files. * * Revision 1.12 1995/09/28 12:10:32 adam @@ -57,8 +69,8 @@ #define IT_KEY_HAVE_FIELD 0 struct it_key { - int sysno : 24; - int seqno : 16; + int sysno; + int seqno; }; struct dir_entry { @@ -76,9 +88,10 @@ void key_open (int mem); int key_close (void); void key_write (int cmd, struct it_key *k, const char *str); int key_compare (const void *p1, const void *p2); +int key_qsort_compare (const void *p1, const void *p2); void key_logdump (int mask, const void *p); -void key_input (const char *dict_fname, const char *isam_fname, - const char *key_fname, int cache); +void key_input (const char *dict_fname, const char *isam_fname, + int nkeys, int cache); int merge_sort (char **buf, int from, int to); #define TEMP_FNAME "keys%d.tmp"