home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / trn_12.zip / src / artsrch.h < prev    next >
C/C++ Source or Header  |  1993-12-04  |  2KB  |  59 lines

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