fix syntax for the Visual studio compat

This commit is contained in:
Anatol Belski 2015-03-13 20:25:10 +01:00
parent db10b72523
commit e78971cd7b
2 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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)