summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2002-02-12 03:00:05 +0000
committerAndrei Zmievski <andrei@php.net>2002-02-12 03:00:05 +0000
commit51f1739983f4ebe840e7c4dec22dee3a5a8217de (patch)
tree835f5eeb134ad5d3f59072c71bf919d516c7a3b0 /ext/pcre
parentcc2580f5a44429e5bff5c5aa12a21392d5ae9c92 (diff)
downloadphp-git-51f1739983f4ebe840e7c4dec22dee3a5a8217de.tar.gz
Expose pcre_get_compiled_regex as an API function.
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c10
-rw-r--r--ext/pcre/php_pcre.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 7d588cc10b..ff14d1fb5c 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -124,7 +124,7 @@ static PHP_RINIT_FUNCTION(pcre)
/* {{{ pcre_get_compiled_regex
*/
-static pcre* pcre_get_compiled_regex(char *regex, pcre_extra *extra, int *preg_options) {
+PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra *extra, int *preg_options) {
pcre *re = NULL;
int coptions = 0;
int soptions = 0;
@@ -675,10 +675,10 @@ static int preg_do_eval(char *eval_str, int eval_str_len, char *subject,
/* {{{ php_pcre_replace
*/
-char *php_pcre_replace(char *regex, int regex_len,
- char *subject, int subject_len,
- zval *replace_val, int is_callable_replace,
- int *result_len, int limit TSRMLS_DC)
+PHPAPI char *php_pcre_replace(char *regex, int regex_len,
+ char *subject, int subject_len,
+ zval *replace_val, int is_callable_replace,
+ int *result_len, int limit TSRMLS_DC)
{
pcre *re = NULL; /* Compiled regular expression */
pcre_extra *extra = NULL; /* Holds results of studying */
diff --git a/ext/pcre/php_pcre.h b/ext/pcre/php_pcre.h
index 2e6eaf2d0b..a561ced319 100644
--- a/ext/pcre/php_pcre.h
+++ b/ext/pcre/php_pcre.h
@@ -41,8 +41,8 @@ PHP_FUNCTION(preg_split);
PHP_FUNCTION(preg_quote);
PHP_FUNCTION(preg_grep);
-char *php_pcre_replace(char *regex, int regex_len, char *subject, int subject_len,
- zval *replace_val, int is_callable_replace, int *result_len, int limit TSRMLS_DC);
+PHPAPI char *php_pcre_replace(char *regex, int regex_len, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int *result_len, int limit TSRMLS_DC);
+PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra *extra, int *options);
extern zend_module_entry pcre_module_entry;
#define pcre_module_ptr &pcre_module_entry