com php-src: Make it const as Levi asked for: Zend/zend_types .h

From: Date: Fri, 05 Dec 2014 04:11:13 +0000
Subject: com php-src: Make it const as Levi asked for: Zend/zend_types .h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83508@lists.php.net to get a copy of this message
Commit: 2d89574b58bead15d967963ed38ae0cdf53d2971 Author: Xinchen Hui <laruence@php.net> Fri, 5 Dec 2014 12:10:31 +0800 Parents: f0a17c293b5b240a4da27e6b5f89dbd9c9183488 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d89574b58bead15d967963ed38ae0cdf53d2971 Log: Make it const as Levi asked for Changed paths: M Zend/zend_types.h Diff: diff --git a/Zend/zend_types.h b/Zend/zend_types.h index c444bd4..77c914b 100644 --- a/Zend/zend_types.h +++ b/Zend/zend_types.h @@ -698,7 +698,7 @@ static zend_always_inline uint32_t zval_delref_p(zval* pz) { #define ZVAL_COPY_VALUE(z, v) \ do { \ zval *_z1 = (z); \ - zval *_z2 = (v); \ + const zval *_z2 = (v); \ (_z1)->value = (_z2)->value; \ Z_TYPE_INFO_P(_z1) = Z_TYPE_INFO_P(_z2); \ } while (0) @@ -706,7 +706,7 @@ static zend_always_inline uint32_t zval_delref_p(zval* pz) { #define ZVAL_COPY(z, v) \ do { \ zval *__z1 = (z); \ - zval *__z2 = (v); \ + const zval *__z2 = (v); \ ZVAL_COPY_VALUE(__z1, __z2); \ if (Z_OPT_REFCOUNTED_P(__z1)) { \ Z_ADDREF_P(__z1); \ @@ -716,7 +716,7 @@ static zend_always_inline uint32_t zval_delref_p(zval* pz) { #define ZVAL_DUP(z, v) \ do { \ zval *__z1 = (z); \ - zval *__z2 = (v); \ + const zval *__z2 = (v); \ ZVAL_COPY_VALUE(__z1, __z2); \ zval_opt_copy_ctor(__z1); \ } while (0)

« previous php.cvs (#83508) next »