home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / WAIS / ir / irhash.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-02  |  1.4 KB  |  49 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE:
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.
  4.  
  5.    Brewster@think.com
  6. */
  7.  
  8. /* Include file for the irhash.c file.
  9.    Implements the building functions in irext.h */
  10.  
  11. #ifndef IRHASH_H
  12. #define IRHASH_H
  13.  
  14. #include "cdialect.h"
  15. #include "cutil.h"
  16. #include "irlex.h"
  17. #include "hutil.h"
  18.  
  19. #ifdef __cplusplus
  20. /* declare these as C style functions */
  21. extern "C"
  22.     {
  23. #endif /* def __cplusplus */
  24.  
  25. long hash_word _AP((char *wd,long below_n));
  26. word_memory_hashtable *
  27.   init_word_memory_hashtable _AP((long size, long flush_after_n_words,
  28.                   word_memory_hashtable* the_word_memory_hashtable));
  29. void sort_word_memory_hashtable _AP((word_memory_hashtable *the_word_memory_hashtable));
  30. void collapse_word_memory_hashtable _AP((word_memory_hashtable *the_word_memory_hashtable));
  31. void clear_word_memory_hashtable _AP((word_memory_hashtable *the_word_memory_hashtable));
  32. void print_word_memory_hashtable _AP((word_memory_hashtable* the_word_memory_hashtable));
  33.  
  34. char *make_word_occurrance_block _AP((long size));
  35.  
  36. void free_word_occurance_block _AP((char *block));
  37.  
  38. void flush_word_occurance_buffers _AP((void));
  39.  
  40. void gc_word_occurance_buffers _AP((word_memory_hashtable * the_word_memory_hashtable));
  41.  
  42. void add_stop_words _AP((word_memory_hashtable *the_word_memory_hashtable));
  43.  
  44. #ifdef __cplusplus
  45.     }
  46. #endif /* def __cplusplus */
  47.  
  48. #endif /* nded IRHASH_H */
  49.