| 72 | | struct DAfile * DAopen(byte * s, int type); |
| 73 | | void DAclose(struct DAfile * p); |
| 74 | | int DAterm(byte * k, int d, struct terminfo * t, struct DAfile * p); |
| 75 | | struct postings * DAopenpostings(struct terminfo * t, struct DAfile * p); |
| 76 | | void DAreadpostings(struct postings * q, int style, int Z0); |
| 77 | | void DAclosepostings(struct postings * q); |
| | 69 | struct record |
| | 70 | { byte * p; /* the record */ |
| | 71 | int size; /* size of malloc-ed space */ |
| | 72 | int number; /* its number */ |
| | 73 | }; |
| 79 | | #ifdef __cplusplus |
| 80 | | } |
| 81 | | #endif |
| | 75 | |
| | 76 | struct termvec |
| | 77 | { byte * p; /* the termvec */ |
| | 78 | int size; /* size of malloc-ed space */ |
| | 79 | int number; /* its number */ |
| | 80 | |
| | 81 | /* termvec inherits record, and is cast to (record) at one |
| | 82 | significant point */ |
| | 83 | |
| | 84 | byte * l; /* its end point */ |
| | 85 | byte * term; /* current term is tv->term */ |
| | 86 | byte * nextterm; |
| | 87 | /* next term is tv->nextterm */ |
| | 88 | int rel; /* marked for relevance feedback? */ |
| | 89 | int wdf; /* its wdf (or 0) */ |
| | 90 | int freq; /* its frequency (or -1) */ |
| | 91 | byte * termp; /* pointer to position info (or 0) */ |
| | 92 | }; |
| | 93 | |
| | 94 | extern struct DAfile * DAopen(byte * s, int type); |
| | 95 | extern void DAclose(struct DAfile * p); |
| | 96 | extern int DAterm(byte * k, struct terminfo * t, struct DAfile * p); |
| | 97 | extern struct postings * DAopenpostings(struct terminfo * t, struct DAfile * p); |
| | 98 | extern void DAreadpostings(struct postings * q, int style, int Z0); |
| | 99 | extern void DAclosepostings(struct postings * q); |
| | 100 | |
| | 101 | extern int DAnextterm(struct terminfo * v, struct DAfile * p); |
| | 102 | extern int DAprevterm(struct terminfo * v, struct DAfile * p); |
| | 103 | |
| | 104 | extern struct record * makerecord(); |
| | 105 | extern void loserecord(struct record * r); |
| | 106 | extern int DAgetrecord(struct DAfile * p, int n, struct record * r); |
| | 107 | |
| | 108 | extern struct termvec * maketermvec(); |
| | 109 | extern void losetermvec(struct termvec * tv); |
| | 110 | extern int DAgettermvec(struct DAfile * p, int n, struct termvec * tv); |
| | 111 | |
| | 112 | extern struct terms * openterms(struct termvec * tv); |
| | 113 | extern void readterms(struct termvec * tv); |