diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-09-18 04:59:01 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-09-18 04:59:01 +0400 |
commit | 5185baab3eaac254da1d81aaaaf4b1428a5a57e3 (patch) | |
tree | 87d0d88a1767ba57a376c70292046b89815c52f8 /Zend/zend_ast.h | |
parent | 61d37e059f7eb9d94b20a109a8bf8f3195eb09d2 (diff) | |
download | php-git-5185baab3eaac254da1d81aaaaf4b1428a5a57e3.tar.gz |
Changed "inline" into "zend_always_inline"
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r-- | Zend/zend_ast.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h index 2a1582ca24..716b385210 100644 --- a/Zend/zend_ast.h +++ b/Zend/zend_ast.h @@ -207,27 +207,27 @@ ZEND_API void zend_ast_destroy_and_free(zend_ast *ast); typedef void (*zend_ast_apply_func)(zend_ast **ast_ptr TSRMLS_DC); ZEND_API void zend_ast_apply(zend_ast *ast, zend_ast_apply_func fn TSRMLS_DC); -static inline zend_bool zend_ast_is_list(zend_ast *ast) { +static zend_always_inline zend_bool zend_ast_is_list(zend_ast *ast) { return (ast->kind >> ZEND_AST_IS_LIST_SHIFT) & 1; } -static inline zend_ast_list *zend_ast_get_list(zend_ast *ast) { +static zend_always_inline zend_ast_list *zend_ast_get_list(zend_ast *ast) { ZEND_ASSERT(zend_ast_is_list(ast)); return (zend_ast_list *) ast; } -static inline zval *zend_ast_get_zval(zend_ast *ast) { +static zend_always_inline zval *zend_ast_get_zval(zend_ast *ast) { ZEND_ASSERT(ast->kind == ZEND_AST_ZVAL); return &((zend_ast_zval *) ast)->val; } -static inline zend_string *zend_ast_get_str(zend_ast *ast) { +static zend_always_inline zend_string *zend_ast_get_str(zend_ast *ast) { return Z_STR_P(zend_ast_get_zval(ast)); } -static inline uint32_t zend_ast_get_num_children(zend_ast *ast) { +static zend_always_inline uint32_t zend_ast_get_num_children(zend_ast *ast) { ZEND_ASSERT(!zend_ast_is_list(ast)); return ast->kind >> ZEND_AST_NUM_CHILDREN_SHIFT; } -static inline uint32_t zend_ast_get_lineno(zend_ast *ast) { +static zend_always_inline uint32_t zend_ast_get_lineno(zend_ast *ast) { if (ast->kind == ZEND_AST_ZVAL) { zval *zv = zend_ast_get_zval(ast); return zv->u2.lineno; @@ -236,27 +236,27 @@ static inline uint32_t zend_ast_get_lineno(zend_ast *ast) { } } -static inline zend_ast *zend_ast_create_zval(zval *zv) { +static zend_always_inline zend_ast *zend_ast_create_zval(zval *zv) { return zend_ast_create_zval_ex(zv, 0); } -static inline zend_ast *zend_ast_create_zval_from_str(zend_string *str) { +static zend_always_inline zend_ast *zend_ast_create_zval_from_str(zend_string *str) { zval zv; ZVAL_STR(&zv, str); return zend_ast_create_zval(&zv); } -static inline zend_ast *zend_ast_create_zval_from_long(zend_long lval) { +static zend_always_inline zend_ast *zend_ast_create_zval_from_long(zend_long lval) { zval zv; ZVAL_LONG(&zv, lval); return zend_ast_create_zval(&zv); } -static inline zend_ast *zend_ast_create_binary_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { +static zend_always_inline zend_ast *zend_ast_create_binary_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { return zend_ast_create_ex(ZEND_AST_BINARY_OP, opcode, op0, op1); } -static inline zend_ast *zend_ast_create_assign_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { +static zend_always_inline zend_ast *zend_ast_create_assign_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { return zend_ast_create_ex(ZEND_AST_ASSIGN_OP, opcode, op0, op1); } -static inline zend_ast *zend_ast_create_cast(uint32_t type, zend_ast *op0) { +static zend_always_inline zend_ast *zend_ast_create_cast(uint32_t type, zend_ast *op0) { return zend_ast_create_ex(ZEND_AST_CAST, type, op0); } |