cvs: php4 /ext/pcre php_pcre.c php_pcre.h

From: Date: Tue, 12 Feb 2002 03:00:05 +0000
Subject: cvs: php4 /ext/pcre php_pcre.c php_pcre.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9350@lists.php.net to get a copy of this message
andrei Mon Feb 11 22:00:05 2002 EDT Modified files: /php4/ext/pcre php_pcre.c php_pcre.h Log: Expose pcre_get_compiled_regex as an API function. Index: php4/ext/pcre/php_pcre.c diff -u php4/ext/pcre/php_pcre.c:1.116 php4/ext/pcre/php_pcre.c:1.117 --- php4/ext/pcre/php_pcre.c:1.116 Tue Jan 15 10:40:31 2002 +++ php4/ext/pcre/php_pcre.c Mon Feb 11 22:00:04 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.116 2002/01/15 15:40:31 andrei Exp $ */ +/* $Id: php_pcre.c,v 1.117 2002/02/12 03:00:04 andrei Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -124,7 +124,7 @@ /* {{{ 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 @@ /* {{{ 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 */ Index: php4/ext/pcre/php_pcre.h diff -u php4/ext/pcre/php_pcre.h:1.29 php4/ext/pcre/php_pcre.h:1.30 --- php4/ext/pcre/php_pcre.h:1.29 Tue Dec 11 10:30:07 2001 +++ php4/ext/pcre/php_pcre.h Mon Feb 11 22:00:05 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.h,v 1.29 2001/12/11 15:30:07 sebastian Exp $ */ +/* $Id: php_pcre.h,v 1.30 2002/02/12 03:00:05 andrei Exp $ */ #ifndef PHP_PCRE_H #define PHP_PCRE_H @@ -41,8 +41,8 @@ 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

« previous php.cvs (#9350) next »