com php-src: Remove zend_init_list: Zend/zend_compile .c Zend/zend_compile.h
| From: | Nikita Popov | Date: | Fri, 29 May 2015 09:07:51 +0000 |
| Subject: | com php-src: Remove zend_init_list: Zend/zend_compile .c Zend/zend_compile.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86990@lists.php.net to get a copy of this message | ||
Commit: 402f697068ee10155497d28a32d3e8e955f5fec2
Author: Nikita Popov <nikic@php.net> Sun, 24 May 2015 21:56:49 +0200
Parents: 21a29b4be3c49d89338cbe424ee4f86830596d8b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=402f697068ee10155497d28a32d3e8e955f5fec2
Log:
Remove zend_init_list
No longer used - zend_add_to_list already covers this.
Also marked zend_add_to_list as static and dropped it from the header.
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 0280575..d1b57c4 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1455,18 +1455,7 @@ static zend_bool zend_try_ct_eval_class_const(zval *zv, zend_string
*class_name,
}
/* }}} */
-void zend_init_list(void *result, void *item) /* {{{ */
-{
- void** list = emalloc(sizeof(void*) * 2);
-
- list[0] = item;
- list[1] = NULL;
-
- *(void**)result = list;
-}
-/* }}} */
-
-void zend_add_to_list(void *result, void *item) /* {{{ */
+static void zend_add_to_list(void *result, void *item) /* {{{ */
{
void** list = *(void**)result;
size_t n = 0;
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 3f9098c..d258289 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -701,10 +701,6 @@ ZEND_API zend_class_entry *do_bind_class(const zend_op_array *op_array, const
ze
ZEND_API zend_class_entry *do_bind_inherited_class(const zend_op_array *op_array, const zend_op
*opline, HashTable *class_table, zend_class_entry *parent_ce, zend_bool compile_time);
ZEND_API void zend_do_delayed_early_binding(const zend_op_array *op_array);
-/* Functions for a null terminated pointer list, used for traits parsing and compilation */
-void zend_init_list(void *result, void *item);
-void zend_add_to_list(void *result, void *item);
-
void zend_do_extended_info(void);
void zend_do_extended_fcall_begin(void);
void zend_do_extended_fcall_end(void);