]>
jfr.im git - irc/evilnet/x3.git/blob - rx/rxposix.h
5 /* Copyright (C) 1995, 1996 Tom Lord
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)
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.
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.
24 #include "rxspencer.h"
25 #include "rxcontext.h"
26 #include "inst-rxposix.h"
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
);
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 ();