1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Generated arginfo headers: combine preprocessor conditional blocks (2) (#18667)

When global constants' or class constants' availability is based on some
preprocessor condition, the generated arginfo header files wrap the
declarations in the preprocessor `#if` conditional blocks, one per declaration,
even if they are in the same conditional block based on comments in the stub
file. Instead of having multiple conditional blocks one after the other with
the same condition, combine them into a single conditional block.
This commit is contained in:
DanielEScherzer
2025-06-22 14:35:28 -07:00
committed by GitHub
parent 4dfba7a250
commit ddd33fd7e4
25 changed files with 13 additions and 817 deletions

View File

@@ -281,8 +281,6 @@ static void register_com_extension_symbols(int module_number)
REGISTER_LONG_CONSTANT("MK_E_UNAVAILABLE", PHP_MK_E_UNAVAILABLE, CONST_PERSISTENT);
#if SIZEOF_ZEND_LONG == 8
REGISTER_LONG_CONSTANT("VT_UI8", VT_UI8, CONST_PERSISTENT);
#endif
#if SIZEOF_ZEND_LONG == 8
REGISTER_LONG_CONSTANT("VT_I8", VT_I8, CONST_PERSISTENT);
#endif
}