From 7566416d9d0117b14daf2ac0ed95039674027f64 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sun, 18 Feb 2018 14:46:46 -0300 Subject: [PATCH] Share identical arginfos --- ext/com_dotnet/com_extension.c | 88 ++++++---------------------------- 1 file changed, 14 insertions(+), 74 deletions(-) diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c index 5d489b459e..a47bdf593c 100644 --- a/ext/com_dotnet/com_extension.c +++ b/ext/com_dotnet/com_extension.c @@ -47,67 +47,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_set, 0, 0, 2) ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_add, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_cat, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_sub, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_mul, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_and, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_div, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_eqv, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_idiv, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_imp, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_mod, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_or, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_pow, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, right) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_variant_xor, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_left_right, 0, 0, 2) ZEND_ARG_INFO(0, left) ZEND_ARG_INFO(0, right) ZEND_END_ARG_INFO() @@ -198,19 +138,19 @@ ZEND_END_ARG_INFO() static const zend_function_entry com_dotnet_functions[] = { PHP_FE(variant_set, arginfo_variant_set) - PHP_FE(variant_add, arginfo_variant_add) - PHP_FE(variant_cat, arginfo_variant_cat) - PHP_FE(variant_sub, arginfo_variant_sub) - PHP_FE(variant_mul, arginfo_variant_mul) - PHP_FE(variant_and, arginfo_variant_and) - PHP_FE(variant_div, arginfo_variant_div) - PHP_FE(variant_eqv, arginfo_variant_eqv) - PHP_FE(variant_idiv, arginfo_variant_idiv) - PHP_FE(variant_imp, arginfo_variant_imp) - PHP_FE(variant_mod, arginfo_variant_mod) - PHP_FE(variant_or, arginfo_variant_or) - PHP_FE(variant_pow, arginfo_variant_pow) - PHP_FE(variant_xor, arginfo_variant_xor) + PHP_FE(variant_add, arginfo_left_right) + PHP_FE(variant_cat, arginfo_left_right) + PHP_FE(variant_sub, arginfo_left_right) + PHP_FE(variant_mul, arginfo_left_right) + PHP_FE(variant_and, arginfo_left_right) + PHP_FE(variant_div, arginfo_left_right) + PHP_FE(variant_eqv, arginfo_left_right) + PHP_FE(variant_idiv, arginfo_left_right) + PHP_FE(variant_imp, arginfo_left_right) + PHP_FE(variant_mod, arginfo_left_right) + PHP_FE(variant_or, arginfo_left_right) + PHP_FE(variant_pow, arginfo_left_right) + PHP_FE(variant_xor, arginfo_left_right) PHP_FE(variant_abs, arginfo_variant_abs) PHP_FE(variant_fix, arginfo_variant_fix) PHP_FE(variant_int, arginfo_variant_int) -- 2.40.0