BSD 4_3 development
[unix-history] / usr / contrib / rn / artsrch.h
CommitLineData
9c4b96b4
C
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
24EXT 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
36void artsrch_init();
37#ifdef ARTSEARCH
38 int art_search();
39 bool wanted(); /* return TRUE if current article matches pattern */
40#endif