| 105 |
regoff_t rm_eo; |
regoff_t rm_eo; |
| 106 |
} regmatch_t; |
} regmatch_t; |
| 107 |
|
|
| 108 |
/* 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 |
| 109 |
when building PCRE. */ |
imported have to be identified as such. When building PCRE, the appropriate |
| 110 |
|
export settings are needed. */ |
| 111 |
|
|
|
#ifndef PCRE_DATA_SCOPE |
|
| 112 |
#ifdef _WIN32 |
#ifdef _WIN32 |
| 113 |
# ifdef PCRE_DEFINITION |
# ifndef PCREPOSIX_STATIC |
| 114 |
# ifdef DLL_EXPORT |
# define PCREPOSIX_EXP_DECL extern __declspec(dllimport) |
| 115 |
# define PCRE_DATA_SCOPE __declspec(dllexport) |
# define PCREPOSIX_EXP_DEFN __declspec(dllimport) |
|
# endif |
|
|
# else |
|
|
# ifndef PCRE_STATIC |
|
|
# define PCRE_DATA_SCOPE extern __declspec(dllimport) |
|
|
# endif |
|
| 116 |
# endif |
# endif |
| 117 |
#endif |
#endif |
|
#endif |
|
| 118 |
|
|
| 119 |
/* Otherwise, we use the standard "extern". */ |
/* By default, we use the standard "extern" declarations. */ |
| 120 |
|
|
| 121 |
#ifndef PCRE_DATA_SCOPE |
#ifndef PCREPOSIX_EXP_DECL |
| 122 |
# ifdef __cplusplus |
# ifdef __cplusplus |
| 123 |
# define PCRE_DATA_SCOPE extern "C" |
# define PCREPOSIX_EXP_DECL extern "C" |
| 124 |
|
# define PCREPOSIX_EXP_DEFN extern "C" |
| 125 |
# else |
# else |
| 126 |
# define PCRE_DATA_SCOPE extern |
# define PCREPOSIX_EXP_DECL extern |
| 127 |
|
# define PCREPOSIX_EXP_DEFN extern |
| 128 |
# endif |
# endif |
| 129 |
#endif |
#endif |
| 130 |
|
|
| 131 |
/* The functions */ |
/* The functions */ |
| 132 |
|
|
| 133 |
PCRE_DATA_SCOPE int regcomp(regex_t *, const char *, int); |
PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int); |
| 134 |
PCRE_DATA_SCOPE int regexec(const regex_t *, const char *, size_t, |
PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t, |
| 135 |
regmatch_t *, int); |
regmatch_t *, int); |
| 136 |
PCRE_DATA_SCOPE size_t regerror(int, const regex_t *, char *, size_t); |
PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t); |
| 137 |
PCRE_DATA_SCOPE void regfree(regex_t *); |
PCREPOSIX_EXP_DECL void regfree(regex_t *); |
| 138 |
|
|
| 139 |
#ifdef __cplusplus |
#ifdef __cplusplus |
| 140 |
} /* extern "C" */ |
} /* extern "C" */ |