com php-src: Added "const" qualifier: Zend/zend_compile.c Zend/zend_compile.h

From: Date: Tue, 08 Oct 2019 13:50:04 +0000
Subject: com php-src: Added "const" qualifier: Zend/zend_compile.c Zend/zend_compile.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108805@lists.php.net to get a copy of this message
Commit: 56ae3f6c4a6e4ebcb4bc07777286f355e7bee3b9 Author: Dmitry Stogov <dmitry@zend.com> Tue, 8 Oct 2019 16:50:04 +0300 Parents: eec04f6b56fb9c39b971e013ba2a7e8722120adf Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=56ae3f6c4a6e4ebcb4bc07777286f355e7bee3b9 Log: Added "const" qualifier Changed paths: M Zend/zend_compile.c M Zend/zend_compile.h Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 2d5fd66efd7..906b544a15a 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1970,7 +1970,7 @@ static inline uint32_t zend_emit_jump(uint32_t opnum_target) /* {{{ */ } /* }}} */ -ZEND_API int zend_is_smart_branch(zend_op *opline) /* {{{ */ +ZEND_API int zend_is_smart_branch(const zend_op *opline) /* {{{ */ { switch (opline->opcode) { case ZEND_IS_IDENTICAL: diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 9a314ccbdce..03e007fe335 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -826,7 +826,7 @@ ZEND_API char *zend_make_compiled_string_description(const char *name); ZEND_API void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers); uint32_t zend_get_class_fetch_type(zend_string *name); ZEND_API zend_uchar zend_get_call_op(const zend_op *init_op, zend_function *fbc); -ZEND_API int zend_is_smart_branch(zend_op *opline); +ZEND_API int zend_is_smart_branch(const zend_op *opline); typedef zend_bool (*zend_auto_global_callback)(zend_string *name); typedef struct _zend_auto_global {

« previous php.cvs (#108805) next »