| 2 |
* Perl-Compatible Regular Expressions * |
* Perl-Compatible Regular Expressions * |
| 3 |
*************************************************/ |
*************************************************/ |
| 4 |
|
|
| 5 |
/* Copyright (c) 1997 University of Cambridge */ |
/* Copyright (c) 1997-2001 University of Cambridge */ |
| 6 |
|
|
| 7 |
#ifndef _PCREPOSIX_H |
#ifndef _PCREPOSIX_H |
| 8 |
#define _PCREPOSIX_H |
#define _PCREPOSIX_H |
| 15 |
|
|
| 16 |
#include <stdlib.h> |
#include <stdlib.h> |
| 17 |
|
|
| 18 |
|
/* Allow for C++ users */ |
| 19 |
|
|
| 20 |
|
#ifdef __cplusplus |
| 21 |
|
extern "C" { |
| 22 |
|
#endif |
| 23 |
|
|
| 24 |
/* Options defined by POSIX. */ |
/* Options defined by POSIX. */ |
| 25 |
|
|
| 26 |
#define REG_ICASE 0x01 |
#define REG_ICASE 0x01 |
| 28 |
#define REG_NOTBOL 0x04 |
#define REG_NOTBOL 0x04 |
| 29 |
#define REG_NOTEOL 0x08 |
#define REG_NOTEOL 0x08 |
| 30 |
|
|
| 31 |
|
/* These are not used by PCRE, but by defining them we make it easier |
| 32 |
|
to slot PCRE into existing programs that make POSIX calls. */ |
| 33 |
|
|
| 34 |
|
#define REG_EXTENDED 0 |
| 35 |
|
#define REG_NOSUB 0 |
| 36 |
|
|
| 37 |
/* Error values. Not all these are relevant or used by the wrapper. */ |
/* Error values. Not all these are relevant or used by the wrapper. */ |
| 38 |
|
|
| 39 |
enum { |
enum { |
| 81 |
extern size_t regerror(int, const regex_t *, char *, size_t); |
extern size_t regerror(int, const regex_t *, char *, size_t); |
| 82 |
extern void regfree(regex_t *); |
extern void regfree(regex_t *); |
| 83 |
|
|
| 84 |
|
#ifdef __cplusplus |
| 85 |
|
} /* extern "C" */ |
| 86 |
|
#endif |
| 87 |
|
|
| 88 |
#endif /* End of pcreposix.h */ |
#endif /* End of pcreposix.h */ |