]> granicus.if.org Git - php/commitdiff
fix folding
authorAntony Dovgal <tony2001@php.net>
Mon, 23 Apr 2007 10:05:33 +0000 (10:05 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 23 Apr 2007 10:05:33 +0000 (10:05 +0000)
ext/pcre/php_pcre.c

index c11fd4fda0a526b41a8d458f820430de32c500c2..38051bc3e1cb9f976d8fb758e1aef84750eda49e 100644 (file)
@@ -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 */