-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathartsrch.h
47 lines (38 loc) · 1.13 KB
/
artsrch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* artsrch.h
*/
/* This software is copyrighted as detailed in the LICENSE file. */
#ifndef NBRA
#include "search.h"
#endif
#ifdef ARTSEARCH
#define SRCH_ABORT 0
#define SRCH_INTR 1
#define SRCH_FOUND 2
#define SRCH_NOTFOUND 3
#define SRCH_DONE 4
#define SRCH_SUBJDONE 5
#define SRCH_ERROR 6
#endif
EXT char* lastpat INIT(nullstr); /* last search pattern */
#ifdef ARTSEARCH
EXT COMPEX sub_compex; /* last compiled subject search */
EXT COMPEX art_compex; /* last compiled normal search */
EXT COMPEX* bra_compex INIT(&(art_compex)); /* current compex with brackets */
#define ARTSCOPE_SUBJECT 0
#define ARTSCOPE_FROM 1
#define ARTSCOPE_ONEHDR 2
#define ARTSCOPE_HEAD 3
#define ARTSCOPE_BODY_NOSIG 4
#define ARTSCOPE_BODY 5
#define ARTSCOPE_ARTICLE 6
EXT char scopestr[] INIT("sfHhbBa");
EXT int art_howmuch; /* search scope */
EXT int art_srchhdr; /* specific header number to search */
EXT bool art_doread; /* search read articles? */
#endif
/* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */
void artsrch_init _((void));
#ifdef ARTSEARCH
int art_search _((char*,int,int));
bool wanted _((COMPEX*,ART_NUM,char_int));
#endif