X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Fnumber.c;h=3428905f5a031464d4896d7c0d671dd9394dcbd9;hb=698841dfdd4d70d24e0b7af25ac7100bc2cb26a4;hp=c3ec31b6d99ac83b9c07da92764b9dadd2bb02c3;hpb=d9f1274417f65d980e143700726d1527462123d3;p=m6w6%2Fext-psi diff --git a/src/types/number.c b/src/types/number.c index c3ec31b..3428905 100644 --- a/src/types/number.c +++ b/src/types/number.c @@ -23,7 +23,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif #include #include @@ -32,6 +36,7 @@ #include "calc.h" #include "call.h" #include "parser.h" +#include "debug.h" #include "Zend/zend_constants.h" #include "Zend/zend_operators.h" @@ -576,7 +581,7 @@ static inline bool psi_number_validate_number(struct psi_data *data, struct psi_ return true; } } - break; + /* no break */ default: zend_string_release(exp->data.numb); exp->type = PSI_T_INT64; @@ -675,7 +680,6 @@ bool psi_number_validate(struct psi_data *data, struct psi_number *exp, case PSI_T_DEFINE: if (scope && scope->cpp && zend_hash_exists(&scope->cpp->defs, exp->data.numb)) { - define: ; if (!scope->macro || !zend_string_equals(scope->macro->token->text, exp->data.numb)) { return true; }