summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.h
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-07-28 15:10:58 +0200
committerNikita Popov <nikic@php.net>2014-07-28 15:10:58 +0200
commit1d79fb308b6e25e813ad8f37d1381adacb0ed14d (patch)
tree01fdf68f015d7b1440b6a2aefb28c429cfd38a3c /Zend/zend_ast.h
parentf29b84ab46ddcef44ac42b064178a3dc1941ad77 (diff)
downloadphp-git-1d79fb308b6e25e813ad8f37d1381adacb0ed14d.tar.gz
Add zend_ast_list* variant to parser stack element
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r--Zend/zend_ast.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h
index 86bb6ed2a2..1d9863d976 100644
--- a/Zend/zend_ast.h
+++ b/Zend/zend_ast.h
@@ -197,8 +197,8 @@ ZEND_API zend_ast *zend_ast_create_decl(
zend_string *name, zend_ast *child0, zend_ast *child1, zend_ast *child2
);
-ZEND_API zend_ast *zend_ast_create_dynamic(zend_ast_kind kind);
-ZEND_API zend_ast *zend_ast_dynamic_add(zend_ast *ast, zend_ast *op);
+ZEND_API zend_ast_list *zend_ast_create_list(zend_uint init_children, zend_ast_kind kind, ...);
+ZEND_API zend_ast_list *zend_ast_list_add(zend_ast_list *list, zend_ast *op);
ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope TSRMLS_DC);
@@ -264,10 +264,6 @@ static inline zend_ast *zend_ast_create_ternary(
return zend_ast_create(3, kind, op0, op1, op2);
}
-static inline zend_ast *zend_ast_create_dynamic_and_add(zend_ast_kind kind, zend_ast *op) {
- return zend_ast_dynamic_add(zend_ast_create_dynamic(kind), op);
-}
-
static inline zend_ast *zend_ast_create_binary_op(zend_uint opcode, zend_ast *op0, zend_ast *op1) {
return zend_ast_create_ex(2, ZEND_AST_BINARY_OP, opcode, op0, op1);
}