nlopess Fri Jan 25 19:39:45 2008 UTC
Modified files:
/php-src/ext/pcre php_pcre.c php_pcre.h
Log:
spread some static keywords
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.228&r2=1.229&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.228 php-src/ext/pcre/php_pcre.c:1.229
--- php-src/ext/pcre/php_pcre.c:1.228 Sun Jan 13 14:57:53 2008
+++ php-src/ext/pcre/php_pcre.c Fri Jan 25 19:39:45 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.228 2008/01/13 14:57:53 nlopess Exp $ */
+/* $Id: php_pcre.c,v 1.229 2008/01/25 19:39:45 nlopess Exp $ */
/* TODO
* php_pcre_replace_impl():
@@ -875,7 +875,7 @@
/* {{{ proto int preg_match(string pattern, string subject [, array
subpatterns [, int flags [, int offset]]]) U
Perform a Perl-style regular expression match */
-PHP_FUNCTION(preg_match)
+static PHP_FUNCTION(preg_match)
{
php_do_pcre_match(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
@@ -883,7 +883,7 @@
/* {{{ proto int preg_match_all(string pattern, string subject, array
subpatterns [, int flags [, int offset]]) U
Perform a Perl-style global regular expression match */
-PHP_FUNCTION(preg_match_all)
+static PHP_FUNCTION(preg_match_all)
{
php_do_pcre_match(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
@@ -1535,7 +1535,7 @@
/* {{{ proto string preg_replace(mixed regex, mixed replace, mixed subject [,
int limit [, count]]) U
Perform Perl-style regular expression replacement. */
-PHP_FUNCTION(preg_replace)
+static PHP_FUNCTION(preg_replace)
{
preg_replace_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
@@ -1543,7 +1543,7 @@
/* {{{ proto string preg_replace_callback(mixed regex, mixed callback, mixed
subject [, int limit [, count]]) U
Perform Perl-style regular expression replacement using replacement
callback. */
-PHP_FUNCTION(preg_replace_callback)
+static PHP_FUNCTION(preg_replace_callback)
{
preg_replace_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
@@ -1551,7 +1551,7 @@
/* {{{ proto array preg_split(string pattern, string subject [, int limit [,
int flags]]) U
Split string into an array using a perl-style regular expression as a
delimiter */
-PHP_FUNCTION(preg_split)
+static PHP_FUNCTION(preg_split)
{
zstr regex; /* Regular
expression */
zstr subject; /* String to
match against */
@@ -1771,7 +1771,7 @@
/* {{{ proto string preg_quote(string str [, string delim_char]) U
Quote regular expression characters plus an optional character */
-PHP_FUNCTION(preg_quote)
+static PHP_FUNCTION(preg_quote)
{
int in_str_len;
char *in_str; /* Input string argument */
@@ -1876,7 +1876,7 @@
/* {{{ proto array preg_grep(string regex, array input [, int flags]) U
Searches array and returns entries which match regex */
-PHP_FUNCTION(preg_grep)
+static PHP_FUNCTION(preg_grep)
{
zstr regex; /* Regular
expression */
int regex_len;
@@ -2021,7 +2021,7 @@
/* {{{ proto int preg_last_error()
Returns the error code of the last regexp execution. */
-PHP_FUNCTION(preg_last_error)
+static PHP_FUNCTION(preg_last_error)
{
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
return;
@@ -2033,7 +2033,7 @@
/* {{{ module definition structures */
-const zend_function_entry pcre_functions[] = {
+static const zend_function_entry pcre_functions[] = {
PHP_FE(preg_match, third_arg_force_ref)
PHP_FE(preg_match_all, third_arg_force_ref)
PHP_FE(preg_replace, fifth_arg_force_ref)
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.h?r1=1.54&r2=1.55&diff_format=u
Index: php-src/ext/pcre/php_pcre.h
diff -u php-src/ext/pcre/php_pcre.h:1.54 php-src/ext/pcre/php_pcre.h:1.55
--- php-src/ext/pcre/php_pcre.h:1.54 Mon Dec 31 07:12:12 2007
+++ php-src/ext/pcre/php_pcre.h Fri Jan 25 19:39:45 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.h,v 1.54 2007/12/31 07:12:12 sebastian Exp $ */
+/* $Id: php_pcre.h,v 1.55 2008/01/25 19:39:45 nlopess Exp $ */
#ifndef PHP_PCRE_H
#define PHP_PCRE_H
@@ -33,14 +33,6 @@
#include <locale.h>
#endif
-PHP_FUNCTION(preg_match);
-PHP_FUNCTION(preg_match_all);
-PHP_FUNCTION(preg_replace);
-PHP_FUNCTION(preg_replace_callback);
-PHP_FUNCTION(preg_split);
-PHP_FUNCTION(preg_quote);
-PHP_FUNCTION(preg_grep);
-
PHPAPI char *php_pcre_replace(zend_uchar utype, char *regex, int regex_len,
char *subject, int subject_len, zval *replace_val, int is_callable_replace, int
*result_len, int limit, int *replace_count TSRMLS_DC);
PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int
*options TSRMLS_DC);
PHPAPI pcre* pcre_get_compiled_regex_ex(char *regex, pcre_extra **extra, int
*preg_options, int *coptions TSRMLS_DC);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php