fix possible crash on user deletion
[srvx.git] / rx / rxstr.h
1 /* classes: h_files */
2
3 #ifndef RXSTRH
4 #define RXSTRH
5 /*      Copyright (C) 1995, 1996 Tom Lord
6  * 
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Library General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  * 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Library General Public License for more details.
16  * 
17  * You should have received a copy of the GNU Library General Public License
18  * along with this software; see the file COPYING.  If not, write to
19  * the Free Software Foundation, 59 Temple Place - Suite 330, 
20  * Boston, MA 02111-1307, USA. 
21  */
22
23 \f
24
25
26 #include "rxspencer.h"
27 #include "rxcontext.h"
28
29 \f
30
31   
32
33 struct rx_str_closure
34 {
35   struct rx_context_rules rules;
36   const unsigned char * str;
37   int len;
38 };
39
40
41 \f
42 #ifdef __STDC__
43 extern enum rx_answers rx_str_vmfn (void * closure, unsigned const char ** burstp, int * lenp, int * offsetp, int start, int end, int need);
44 extern enum rx_answers rx_str_contextfn (void * closure, struct rexp_node * node, int start, int end, struct rx_registers * regs);
45
46 #else /* STDC */
47 extern enum rx_answers rx_str_vmfn ();
48 extern enum rx_answers rx_str_contextfn ();
49
50 #endif /* STDC */
51
52
53
54
55
56
57 #endif  /* RXSTRH */