com php-src: fix syntax for the Visual studio compat: Zend/zend_compile.h Zend/zend_execute.c
| From: | Anatol Belski | Date: | Fri, 13 Mar 2015 19:25:10 +0000 |
| Subject: | com php-src: fix syntax for the Visual studio compat: Zend/zend_compile.h Zend/zend_execute.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85509@lists.php.net to get a copy of this message | ||
Commit: e78971cd7bd53b0d18dacedd88f3daaae9aa592f
Author: Anatol Belski <ab@php.net> Fri, 13 Mar 2015 20:25:10 +0100
Parents: db10b7252306b37ccd8795abeea565e0b18434aa
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e78971cd7bd53b0d18dacedd88f3daaae9aa592f
Log:
fix syntax for the Visual studio compat
Changed paths:
M Zend/zend_compile.h
M Zend/zend_execute.c
Diff:
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 72f61ac..45441e2 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -631,9 +631,8 @@ const char *zend_get_zendtext(void);
int zend_get_zendleng(void);
#endif
-
-typedef int ZEND_FASTCALL (*unary_op_type)(zval *, zval *);
-typedef int ZEND_FASTCALL (*binary_op_type)(zval *, zval *, zval *);
+typedef int (ZEND_FASTCALL *unary_op_type)(zval *, zval *);
+typedef int (ZEND_FASTCALL *binary_op_type)(zval *, zval *, zval *);
ZEND_API unary_op_type get_unary_op(int opcode);
ZEND_API binary_op_type get_binary_op(int opcode);
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 49b2c5a..2f93f28 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -49,7 +49,7 @@
#define _UNUSED_CODE 3
#define _CV_CODE 4
-typedef int ZEND_FASTCALL (*incdec_t)(zval *);
+typedef int (ZEND_FASTCALL *incdec_t)(zval *);
#define get_zval_ptr(op_type, node, ex, should_free, type) _get_zval_ptr(op_type, node, ex,
should_free, type)
#define get_zval_ptr_deref(op_type, node, ex, should_free, type) _get_zval_ptr_deref(op_type, node,
ex, should_free, type)