]> granicus.if.org Git - php/commitdiff
* Constify read-only arguments.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 24 Jul 2008 20:38:43 +0000 (20:38 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 24 Jul 2008 20:38:43 +0000 (20:38 +0000)
Zend/zend_operators.c
Zend/zend_operators.h

index f2d1562ee8e15bd128d4cd5eae82f515295f1136..c40549a83b04238d697071b14fee14114a929837 100644 (file)
@@ -2750,7 +2750,7 @@ ZEND_API zstr zend_u_str_case_fold(zend_uchar type, zstr source, unsigned int le
 }
 /* }}} */
 
-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_u_binary_strcmp(UChar *s1, int len1, UChar *s2, int len2) /* {
 }
 /* }}} */
 
-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_u_binary_strncmp(UChar *s1, int len1, UChar *s2, int len2, uin
 }
 /* }}} */
 
-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_u_binary_strcasecmp(UChar *s1, int len1, UChar *s2, int len2)
 }
 /* }}} */
 
-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;
index 40ea6ea5327675328fd4823b40e8644d3b559e31..d23e0f342cdd89bc828ac392d10fe328c91be2c2 100644 (file)
@@ -322,10 +322,10 @@ ZEND_API int zend_binary_zval_strcmp(zval *s1, zval *s2);
 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);