cvs: ZendEngine2 / zend_operators.c zend_operators.h

"Moriyoshi Koizumi" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsmoriyoshi1216931923@cvsserver>
moriyoshi		Thu Jul 24 20:38:43 2008 UTC

  Modified files:              
    /ZendEngine2	zend_operators.c zend_operators.h 
  Log:
  * Constify read-only arguments.
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.c?r1=1.291&r2=1.292&diff_format=u
Index: ZendEngine2/zend_operators.c
diff -u ZendEngine2/zend_operators.c:1.291 ZendEngine2/zend_operators.c:1.292
--- ZendEngine2/zend_operators.c:1.291	Thu May 29 11:44:09 2008
+++ ZendEngine2/zend_operators.c	Thu Jul 24 20:38:43 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_operators.c,v 1.291 2008/05/29 11:44:09 mattwil Exp $ */
+/* $Id: zend_operators.c,v 1.292 2008/07/24 20:38:43 moriyoshi Exp $ */
 
 #include <ctype.h>
 
@@ -2750,7 +2750,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;
 
@@ -2770,7 +2770,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;
 
@@ -2806,7 +2806,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;
@@ -2833,7 +2833,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.130&r2=1.131&diff_format=u
Index: ZendEngine2/zend_operators.h
diff -u ZendEngine2/zend_operators.h:1.130 ZendEngine2/zend_operators.h:1.131
--- ZendEngine2/zend_operators.h:1.130	Mon Jul 21 18:43:46 2008
+++ ZendEngine2/zend_operators.h	Thu Jul 24 20:38:43 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_operators.h,v 1.130 2008/07/21 18:43:46 scottmac Exp $ */
+/* $Id: zend_operators.h,v 1.131 2008/07/24 20:38:43 moriyoshi Exp $ */
 
 #ifndef ZEND_OPERATORS_H
 #define ZEND_OPERATORS_H
@@ -322,10 +322,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 int zend_u_binary_zval_strcmp(zval *s1, zval *s2);
 ZEND_API int zend_u_binary_strcmp(UChar *s1, int len1, UChar *s2, int len2);



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.