| 1 |
|
| 2 |
|
| 3 |
#ifndef RXPOSIXH |
| 4 |
#define RXPOSIXH |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 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 |
| 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 |
| 50 |
|
| 51 |
#endif |