home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / ir / irverify.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-22  |  1.0 KB  |  40 lines

  1.  
  2. /* Copyright (c) CNIDR (see ../COPYRIGHT) */
  3.  
  4. #ifndef irverify_H
  5. #define irverify_H
  6.  
  7. #include "irfiles.h"
  8.  
  9. #ifndef docID
  10. #define docID         unsigned long
  11. #define postingWeight     unsigned char
  12. #endif
  13.  
  14. typedef struct serialPostingFile
  15.   FILE* stream;
  16.   long length;
  17.   long current_index_block;
  18. } serialPostingFile;
  19.  
  20. typedef struct postingsForATerm
  21.   char        word[MAX_WORD_LENGTH + 1];
  22.   unsigned long entries;
  23.   docID*    docs;
  24.   postingWeight* weights;
  25. } postingsForATerm;
  26.  
  27. serialPostingFile* initSerialPostingFile _AP((char* filename));
  28. void disposeSerialPostingFile _AP((serialPostingFile* pf));
  29. void  printPostingsForATerm _AP((postingsForATerm* pfat));
  30. postingsForATerm* getPostingsAt _AP((serialPostingFile* spf,long position));
  31. postingsForATerm* getPostingsForNextTerm _AP((serialPostingFile* spf));
  32. void disposePostingsForATerm _AP((postingsForATerm* pfat));
  33. void removePostings _AP((postingsForATerm* pfat,long start,long run));
  34. void printIndex _AP((database* db));
  35. void printIndexUsingDictionary _AP((database* db));
  36.  
  37. #endif /* ndef irverify_H */
  38.