cvs: ZendEngine2(PHP_5_3) / zend_operators.c zend_operators.h

From: Date: Thu, 24 Jul 2008 20:39:48 +0000
Subject: cvs: ZendEngine2(PHP_5_3) / zend_operators.c zend_operators.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6932@lists.php.net to get a copy of this message
moriyoshi Thu Jul 24 20:39:48 2008 UTC Modified files: (Branch: PHP_5_3) /ZendEngine2 zend_operators.c zend_operators.h Log: - MFH: Constify read-only arguments http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.c?r1=1.208.2.4.2.23.2.11&r2=1.208.2.4.2.23.2.12&diff_format=u Index: ZendEngine2/zend_operators.c diff -u ZendEngine2/zend_operators.c:1.208.2.4.2.23.2.11 ZendEngine2/zend_operators.c:1.208.2.4.2.23.2.12 --- ZendEngine2/zend_operators.c:1.208.2.4.2.23.2.11 Thu May 29 11:45:13 2008 +++ ZendEngine2/zend_operators.c Thu Jul 24 20:39:48 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_operators.c,v 1.208.2.4.2.23.2.11 2008/05/29 11:45:13 mattwil Exp $ */ +/* $Id: zend_operators.c,v 1.208.2.4.2.23.2.12 2008/07/24 20:39:48 moriyoshi Exp $ */ #include <ctype.h> @@ -1882,7 +1882,7 @@ } } -ZEND_API int zend_binary_strcmp(char *s1, uint len1, char *s2, uint len2) +ZEND_API int zend_binary_strcmp(const char *s1, uint len1, const char *s2, uint len2) { int retval; @@ -1894,7 +1894,7 @@ } } -ZEND_API int zend_binary_strncmp(char *s1, uint len1, char *s2, uint len2, uint length) +ZEND_API int zend_binary_strncmp(const char *s1, uint len1, const char *s2, uint len2, uint length) { int retval; @@ -1907,7 +1907,7 @@ } -ZEND_API int zend_binary_strcasecmp(char *s1, uint len1, char *s2, uint len2) +ZEND_API int zend_binary_strcasecmp(const char *s1, uint len1, const char *s2, uint len2) { int len; int c1, c2; @@ -1926,7 +1926,7 @@ } -ZEND_API int zend_binary_strncasecmp(char *s1, uint len1, char *s2, uint len2, uint length) +ZEND_API int zend_binary_strncasecmp(const char *s1, uint len1, const char *s2, uint len2, uint length) { int len; int c1, c2; http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.h?r1=1.94.2.4.2.10.2.8&r2=1.94.2.4.2.10.2.9&diff_format=u Index: ZendEngine2/zend_operators.h diff -u ZendEngine2/zend_operators.h:1.94.2.4.2.10.2.8 ZendEngine2/zend_operators.h:1.94.2.4.2.10.2.9 --- ZendEngine2/zend_operators.h:1.94.2.4.2.10.2.8 Mon Jul 21 18:47:02 2008 +++ ZendEngine2/zend_operators.h Thu Jul 24 20:39:48 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_operators.h,v 1.94.2.4.2.10.2.8 2008/07/21 18:47:02 scottmac Exp $ */ +/* $Id: zend_operators.h,v 1.94.2.4.2.10.2.9 2008/07/24 20:39:48 moriyoshi Exp $ */ #ifndef ZEND_OPERATORS_H #define ZEND_OPERATORS_H @@ -305,10 +305,10 @@ ZEND_API int zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3); ZEND_API int zend_binary_zval_strcasecmp(zval *s1, zval *s2); ZEND_API int zend_binary_zval_strncasecmp(zval *s1, zval *s2, zval *s3); -ZEND_API int zend_binary_strcmp(char *s1, uint len1, char *s2, uint len2); -ZEND_API int zend_binary_strncmp(char *s1, uint len1, char *s2, uint len2, uint length); -ZEND_API int zend_binary_strcasecmp(char *s1, uint len1, char *s2, uint len2); -ZEND_API int zend_binary_strncasecmp(char *s1, uint len1, char *s2, uint len2, uint length); +ZEND_API int zend_binary_strcmp(const char *s1, uint len1, const char *s2, uint len2); +ZEND_API int zend_binary_strncmp(const char *s1, uint len1, const char *s2, uint len2, uint length); +ZEND_API int zend_binary_strcasecmp(const char *s1, uint len1, const char *s2, uint len2); +ZEND_API int zend_binary_strncasecmp(const char *s1, uint len1, const char *s2, uint len2, uint length); ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2); ZEND_API void zend_compare_symbol_tables(zval *result, HashTable *ht1, HashTable *ht2 TSRMLS_DC);

« previous php.zend-engine.cvs (#6932) next »