diff options
author | Antony Dovgal <tony2001@php.net> | 2007-04-23 10:05:33 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-04-23 10:05:33 +0000 |
commit | 6a73be6329c59ca0a6e8a35a7032a15b7337305b (patch) | |
tree | d984b5aff1c6f0587fa489cd92cc0a278f507f78 /ext/pcre/php_pcre.c | |
parent | 2a689a4267b02672c5204a4dbf75c9a23a221550 (diff) | |
download | php-git-6a73be6329c59ca0a6e8a35a7032a15b7337305b.tar.gz |
fix folding
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index c11fd4fda0..38051bc3e1 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -59,7 +59,7 @@ enum { ZEND_DECLARE_MODULE_GLOBALS(pcre); -static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) +static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) /* {{{ */ { int preg_code = 0; @@ -83,9 +83,9 @@ static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) PCRE_G(error_code) = preg_code; } +/* }}} */ - -static void php_free_pcre_cache(void *data) +static void php_free_pcre_cache(void *data) /* {{{ */ { pcre_cache_entry *pce = (pcre_cache_entry *) data; if (!pce) return; @@ -96,20 +96,22 @@ static void php_free_pcre_cache(void *data) pefree(pce->locale, 1); #endif } +/* }}} */ - -static PHP_GINIT_FUNCTION(pcre) +static PHP_GINIT_FUNCTION(pcre) /* {{{ */ { zend_hash_init(&pcre_globals->pcre_cache, 0, NULL, php_free_pcre_cache, 1); pcre_globals->backtrack_limit = 0; pcre_globals->recursion_limit = 0; pcre_globals->error_code = PHP_PCRE_NO_ERROR; } +/* }}} */ -static PHP_GSHUTDOWN_FUNCTION(pcre) +static PHP_GSHUTDOWN_FUNCTION(pcre) /* {{{ */ { zend_hash_destroy(&pcre_globals->pcre_cache); } +/* }}} */ PHP_INI_BEGIN() STD_PHP_INI_ENTRY("pcre.backtrack_limit", "100000", PHP_INI_ALL, OnUpdateLong, backtrack_limit, zend_pcre_globals, pcre_globals) @@ -462,7 +464,9 @@ static void php_do_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) /* {{{ * php_pcre_match_impl(pce, subject, subject_len, return_value, subpats, global, ZEND_NUM_ARGS() >= 4, flags, start_offset TSRMLS_CC); } +/* }}} */ +/* {{{ php_pcre_match_impl() */ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value, zval *subpats, int global, int use_flags, long flags, long start_offset TSRMLS_DC) { @@ -930,7 +934,9 @@ PHPAPI char *php_pcre_replace(char *regex, int regex_len, return php_pcre_replace_impl(pce, subject, subject_len, replace_val, is_callable_replace, result_len, limit, replace_count TSRMLS_CC); } +/* }}} */ +/* {{{ php_pcre_replace_impl() */ PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int *result_len, int limit, int *replace_count TSRMLS_DC) { @@ -1373,6 +1379,7 @@ PHP_FUNCTION(preg_split) php_pcre_split_impl(pce, subject, subject_len, return_value, limit_val, flags TSRMLS_CC); } +/* }}} */ /* {{{ php_pcre_split */ @@ -1652,9 +1659,9 @@ PHP_FUNCTION(preg_grep) php_pcre_grep_impl(pce, input, return_value, flags TSRMLS_CC); } +/* }}} */ -PHPAPI void php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return_value, - long flags TSRMLS_DC) +PHPAPI void php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return_value, long flags TSRMLS_DC) /* {{{ */ { zval **entry; /* An entry in the input array */ pcre_extra *extra = pce->extra;/* Holds results of studying */ |