nlopess Sun Oct 7 12:14:59 2007 UTC
Modified files:
/php-src/ext/pcre php_pcre.c
Log:
MFB
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.223&r2=1.224&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.223 php-src/ext/pcre/php_pcre.c:1.224
--- php-src/ext/pcre/php_pcre.c:1.223 Sun Oct 7 12:09:02 2007
+++ php-src/ext/pcre/php_pcre.c Sun Oct 7 12:14:59 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.223 2007/10/07 12:09:02 nlopess Exp $ */
+/* $Id: php_pcre.c,v 1.224 2007/10/07 12:14:59 nlopess Exp $ */
/* TODO
* php_pcre_replace_impl():
@@ -187,10 +187,11 @@
/* }}} */
/* {{{ static make_subpats_table */
-static char **make_subpats_table(int num_subpats, int rc, pcre_cache_entry
*pce)
+static char **make_subpats_table(int num_subpats, pcre_cache_entry *pce)
{
pcre_extra *extra = pce->extra;
int name_cnt = 0, name_size, ni = 0;
+ int rc;
char *name_table;
unsigned short name_idx;
char **subpat_names = (char **)ecalloc(num_subpats, sizeof(char *));
@@ -672,7 +673,7 @@
* allocate the table, even though there may be no named subpatterns.
This
* avoids somewhat more complicated logic in the inner loops.
*/
- subpat_names = make_subpats_table(num_subpats, rc, pce);
+ subpat_names = make_subpats_table(num_subpats, pce);
if (!subpat_names) {
RETURN_FALSE;
}
@@ -1147,7 +1148,7 @@
* allocate the table, even though there may be no named subpatterns.
This
* avoids somewhat more complicated logic in the inner loops.
*/
- subpat_names = make_subpats_table(num_subpats, rc, pce);
+ subpat_names = make_subpats_table(num_subpats, pce);
if (!subpat_names) {
return NULL;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php