]> jfr.im git - irc/evilnet/x3.git/blob - rx/rxposix.h
Rewrote PHP X3 DB parser function sample code as a class and faster code
[irc/evilnet/x3.git] / rx / rxposix.h
1 /* classes: h_files */
2
3 #ifndef RXPOSIXH
4 #define RXPOSIXH
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 #include "rxspencer.h"
25 #include "rxcontext.h"
26 #include "inst-rxposix.h"
27
28 #ifdef __STDC__
29 extern int regncomp (regex_t * preg, const char * pattern, int len, int cflags);
30 extern int regcomp (regex_t * preg, const char * pattern, int cflags);
31 extern size_t regerror (int errcode, const regex_t *preg,
32 char *errbuf, size_t errbuf_size);
33 extern int rx_regmatch (regmatch_t pmatch[], const regex_t *preg, struct rx_context_rules * rules, int start, int end, const char *string);
34 extern int rx_regexec (regmatch_t pmatch[], const regex_t *preg, struct rx_context_rules * rules, int start, int end, const char *string);
35 extern int regnexec (const regex_t *preg, const char *string, int len, size_t nmatch, regmatch_t **pmatch, int eflags);
36 extern int regexec (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
37 extern void regfree (regex_t *preg);
38
39 #else /* STDC */
40 extern int regncomp ();
41 extern int regcomp ();
42 extern size_t regerror ();
43 extern int rx_regmatch ();
44 extern int rx_regexec ();
45 extern int regnexec ();
46 extern int regexec ();
47 extern void regfree ();
48
49 #endif /* STDC */
50
51 #endif /* RXPOSIXH */