home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / rn_4_3_blars.lzh / artsrch.h < prev    next >
C/C++ Source or Header  |  1990-08-23  |  963b  |  41 lines

  1. /* $Header: artsrch.h,v 4.3 85/05/01 11:35:55 lwall Exp $
  2.  *
  3.  * $Log:    artsrch.h,v $
  4.  * Revision 4.3  85/05/01  11:35:55  lwall
  5.  * Baseline for release with 4.3bsd.
  6.  * 
  7.  */
  8.  
  9. #ifndef NBRA
  10. #include "search.h"
  11. #endif
  12.  
  13. #ifdef ARTSEARCH
  14.  
  15. #define SRCH_ABORT 0
  16. #define SRCH_INTR 1
  17. #define SRCH_FOUND 2
  18. #define SRCH_NOTFOUND 3
  19. #define SRCH_DONE 4
  20. #define SRCH_SUBJDONE 5
  21. #define SRCH_ERROR 6
  22. #endif
  23.  
  24. EXT char *lastpat INIT(nullstr);    /* last search pattern */
  25. #ifdef ARTSEARCH
  26.     EXT COMPEX sub_compex;        /* last compiled subject search */
  27.     EXT COMPEX art_compex;        /* last compiled normal search */
  28. #   ifdef CONDSUB
  29.     EXT COMPEX *bra_compex INIT(&art_compex);
  30.                     /* current compex with brackets */
  31. #   endif
  32.     EXT char art_howmuch;        /* search just the subjects */
  33.     EXT bool art_doread;        /* search read articles? */
  34. #endif
  35.  
  36. void    artsrch_init();
  37. #ifdef ARTSEARCH
  38.     int        art_search();
  39.     bool    wanted();    /* return TRUE if current article matches pattern */
  40. #endif
  41.