home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume23 / trn / part14 / artsrch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-22  |  1.1 KB  |  45 lines

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