| 46 |
#define PCRE_PRERELEASE @PCRE_PRERELEASE@ |
#define PCRE_PRERELEASE @PCRE_PRERELEASE@ |
| 47 |
#define PCRE_DATE @PCRE_DATE@ |
#define PCRE_DATE @PCRE_DATE@ |
| 48 |
|
|
| 49 |
/* Win32 uses DLL by default; it needs special stuff for exported functions |
/* When an application links to a PCRE DLL in Windows, the symbols that are |
| 50 |
when building PCRE. */ |
imported have to be identified as such. When building PCRE, the appropriate |
| 51 |
|
export setting is defined in pcre_internal.h, which includes this file. So we |
| 52 |
|
don't change an existing definition of PCRE_EXP_DECL. */ |
| 53 |
|
|
| 54 |
#ifdef _WIN32 |
#ifndef PCRE_EXP_DECL |
| 55 |
# ifdef PCRE_DEFINITION |
# ifdef _WIN32 |
|
# ifdef DLL_EXPORT |
|
|
# define PCRE_DATA_SCOPE __declspec(dllexport) |
|
|
# endif |
|
|
# else |
|
| 56 |
# ifndef PCRE_STATIC |
# ifndef PCRE_STATIC |
| 57 |
# define PCRE_DATA_SCOPE extern __declspec(dllimport) |
# define PCRE_EXP_DECL extern __declspec(dllimport) |
| 58 |
# endif |
# endif |
| 59 |
# endif |
# endif |
| 60 |
#endif |
#endif |
| 61 |
|
|
| 62 |
/* Otherwise, we use the standard "extern". */ |
/* By default, we use the standard "extern" declarations. */ |
| 63 |
|
|
| 64 |
#ifndef PCRE_DATA_SCOPE |
#ifndef PCRE_EXP_DECL |
| 65 |
# ifdef __cplusplus |
# ifdef __cplusplus |
| 66 |
# define PCRE_DATA_SCOPE extern "C" |
# define PCRE_EXP_DECL extern "C" |
| 67 |
# else |
# else |
| 68 |
# define PCRE_DATA_SCOPE extern |
# define PCRE_EXP_DECL extern |
| 69 |
# endif |
# endif |
| 70 |
#endif |
#endif |
| 71 |
|
|
| 227 |
have to take another form. */ |
have to take another form. */ |
| 228 |
|
|
| 229 |
#ifndef VPCOMPAT |
#ifndef VPCOMPAT |
| 230 |
PCRE_DATA_SCOPE void *(*pcre_malloc)(size_t); |
PCRE_EXP_DECL void *(*pcre_malloc)(size_t); |
| 231 |
PCRE_DATA_SCOPE void (*pcre_free)(void *); |
PCRE_EXP_DECL void (*pcre_free)(void *); |
| 232 |
PCRE_DATA_SCOPE void *(*pcre_stack_malloc)(size_t); |
PCRE_EXP_DECL void *(*pcre_stack_malloc)(size_t); |
| 233 |
PCRE_DATA_SCOPE void (*pcre_stack_free)(void *); |
PCRE_EXP_DECL void (*pcre_stack_free)(void *); |
| 234 |
PCRE_DATA_SCOPE int (*pcre_callout)(pcre_callout_block *); |
PCRE_EXP_DECL int (*pcre_callout)(pcre_callout_block *); |
| 235 |
#else /* VPCOMPAT */ |
#else /* VPCOMPAT */ |
| 236 |
PCRE_DATA_SCOPE void *pcre_malloc(size_t); |
PCRE_EXP_DECL void *pcre_malloc(size_t); |
| 237 |
PCRE_DATA_SCOPE void pcre_free(void *); |
PCRE_EXP_DECL void pcre_free(void *); |
| 238 |
PCRE_DATA_SCOPE void *pcre_stack_malloc(size_t); |
PCRE_EXP_DECL void *pcre_stack_malloc(size_t); |
| 239 |
PCRE_DATA_SCOPE void pcre_stack_free(void *); |
PCRE_EXP_DECL void pcre_stack_free(void *); |
| 240 |
PCRE_DATA_SCOPE int pcre_callout(pcre_callout_block *); |
PCRE_EXP_DECL int pcre_callout(pcre_callout_block *); |
| 241 |
#endif /* VPCOMPAT */ |
#endif /* VPCOMPAT */ |
| 242 |
|
|
| 243 |
/* Exported PCRE functions */ |
/* Exported PCRE functions */ |
| 244 |
|
|
| 245 |
PCRE_DATA_SCOPE pcre *pcre_compile(const char *, int, const char **, int *, |
PCRE_EXP_DECL pcre *pcre_compile(const char *, int, const char **, int *, |
| 246 |
const unsigned char *); |
const unsigned char *); |
| 247 |
PCRE_DATA_SCOPE pcre *pcre_compile2(const char *, int, int *, const char **, |
PCRE_EXP_DECL pcre *pcre_compile2(const char *, int, int *, const char **, |
| 248 |
int *, const unsigned char *); |
int *, const unsigned char *); |
| 249 |
PCRE_DATA_SCOPE int pcre_config(int, void *); |
PCRE_EXP_DECL int pcre_config(int, void *); |
| 250 |
PCRE_DATA_SCOPE int pcre_copy_named_substring(const pcre *, const char *, |
PCRE_EXP_DECL int pcre_copy_named_substring(const pcre *, const char *, |
| 251 |
int *, int, const char *, char *, int); |
int *, int, const char *, char *, int); |
| 252 |
PCRE_DATA_SCOPE int pcre_copy_substring(const char *, int *, int, int, char *, |
PCRE_EXP_DECL int pcre_copy_substring(const char *, int *, int, int, char *, |
| 253 |
int); |
int); |
| 254 |
PCRE_DATA_SCOPE int pcre_dfa_exec(const pcre *, const pcre_extra *, |
PCRE_EXP_DECL int pcre_dfa_exec(const pcre *, const pcre_extra *, |
| 255 |
const char *, int, int, int, int *, int , int *, int); |
const char *, int, int, int, int *, int , int *, int); |
| 256 |
PCRE_DATA_SCOPE int pcre_exec(const pcre *, const pcre_extra *, PCRE_SPTR, |
PCRE_EXP_DECL int pcre_exec(const pcre *, const pcre_extra *, PCRE_SPTR, |
| 257 |
int, int, int, int *, int); |
int, int, int, int *, int); |
| 258 |
PCRE_DATA_SCOPE void pcre_free_substring(const char *); |
PCRE_EXP_DECL void pcre_free_substring(const char *); |
| 259 |
PCRE_DATA_SCOPE void pcre_free_substring_list(const char **); |
PCRE_EXP_DECL void pcre_free_substring_list(const char **); |
| 260 |
PCRE_DATA_SCOPE int pcre_fullinfo(const pcre *, const pcre_extra *, int, |
PCRE_EXP_DECL int pcre_fullinfo(const pcre *, const pcre_extra *, int, |
| 261 |
void *); |
void *); |
| 262 |
PCRE_DATA_SCOPE int pcre_get_named_substring(const pcre *, const char *, |
PCRE_EXP_DECL int pcre_get_named_substring(const pcre *, const char *, |
| 263 |
int *, int, const char *, const char **); |
int *, int, const char *, const char **); |
| 264 |
PCRE_DATA_SCOPE int pcre_get_stringnumber(const pcre *, const char *); |
PCRE_EXP_DECL int pcre_get_stringnumber(const pcre *, const char *); |
| 265 |
PCRE_DATA_SCOPE int pcre_get_stringtable_entries(const pcre *, const char *, |
PCRE_EXP_DECL int pcre_get_stringtable_entries(const pcre *, const char *, |
| 266 |
char **, char **); |
char **, char **); |
| 267 |
PCRE_DATA_SCOPE int pcre_get_substring(const char *, int *, int, int, |
PCRE_EXP_DECL int pcre_get_substring(const char *, int *, int, int, |
| 268 |
const char **); |
const char **); |
| 269 |
PCRE_DATA_SCOPE int pcre_get_substring_list(const char *, int *, int, |
PCRE_EXP_DECL int pcre_get_substring_list(const char *, int *, int, |
| 270 |
const char ***); |
const char ***); |
| 271 |
PCRE_DATA_SCOPE int pcre_info(const pcre *, int *, int *); |
PCRE_EXP_DECL int pcre_info(const pcre *, int *, int *); |
| 272 |
PCRE_DATA_SCOPE const unsigned char *pcre_maketables(void); |
PCRE_EXP_DECL const unsigned char *pcre_maketables(void); |
| 273 |
PCRE_DATA_SCOPE int pcre_refcount(pcre *, int); |
PCRE_EXP_DECL int pcre_refcount(pcre *, int); |
| 274 |
PCRE_DATA_SCOPE pcre_extra *pcre_study(const pcre *, int, const char **); |
PCRE_EXP_DECL pcre_extra *pcre_study(const pcre *, int, const char **); |
| 275 |
PCRE_DATA_SCOPE const char *pcre_version(void); |
PCRE_EXP_DECL const char *pcre_version(void); |
| 276 |
|
|
| 277 |
#ifdef __cplusplus |
#ifdef __cplusplus |
| 278 |
} /* extern "C" */ |
} /* extern "C" */ |