home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / trn / part01 / artsrch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-02  |  1.6 KB  |  56 lines

  1. /* $Id: artsrch.h,v 4.4 1991/09/09 20:18:23 sob Exp sob $
  2.  *
  3.  * $Log: artsrch.h,v $
  4.  * Revision 4.4  1991/09/09  20:18:23  sob
  5.  * release 4.4
  6.  *
  7.  *
  8.  * 
  9.  */
  10. /* This software is Copyright 1991 by Stan Barber. 
  11.  *
  12.  * Permission is hereby granted to copy, reproduce, redistribute or otherwise
  13.  * use this software as long as: there is no monetary profit gained
  14.  * specifically from the use or reproduction of this software, it is not
  15.  * sold, rented, traded or otherwise marketed, and this copyright notice is
  16.  * included prominently in any copy made. 
  17.  *
  18.  * The author make no claims as to the fitness or correctness of this software
  19.  * for any use whatsoever, and it is provided as is. Any use of this software
  20.  * is at the user's own risk. 
  21.  */
  22.  
  23. #ifndef NBRA
  24. #include "search.h"
  25. #endif
  26.  
  27. #ifdef ARTSEARCH
  28.  
  29. #define SRCH_ABORT 0
  30. #define SRCH_INTR 1
  31. #define SRCH_FOUND 2
  32. #define SRCH_NOTFOUND 3
  33. #define SRCH_DONE 4
  34. #define SRCH_SUBJDONE 5
  35. #define SRCH_ERROR 6
  36. #endif
  37.  
  38. EXT char *lastpat INIT(nullstr);    /* last search pattern */
  39. #ifdef ARTSEARCH
  40.     EXT COMPEX sub_compex;        /* last compiled subject search */
  41.     EXT COMPEX art_compex;        /* last compiled normal search */
  42. #   ifdef CONDSUB
  43.     EXT COMPEX *bra_compex INIT(&(art_compex));
  44.                     /* current compex with brackets */
  45. #   endif
  46.     EXT char art_howmuch;        /* search just the subjects */
  47.     EXT bool art_doread;        /* search read articles? */
  48. #endif
  49.  
  50. void    artsrch_init ANSI((void));
  51. #ifdef ARTSEARCH
  52.     int        art_search ANSI((char *, int, int));
  53.     bool    wanted ANSI((COMPEX *, ART_NUM, char_int));
  54.             /* return TRUE if current article matches pattern */
  55. #endif
  56.