Skip to content

Zend/zend_type_code: remove hard-coded integer values #10714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

MaxKellermann
Copy link
Contributor

Also removing the comment about keeping those values in sync with zend_variables.c which was obsoleted by commit 0460420 (designated initializers)

Also removing the comment about keeping those values in sync with
`zend_variables.c` which was obsoleted by commit 0460420
(designated initializers).
_Static_assert is C11, but has been supported since GCC 4.6.
@devnexen devnexen closed this in c7637ed Feb 27, 2023
@derickr
Copy link
Member

derickr commented Mar 3, 2023

I object to this change, as it is now no longer possible to grep for this type values, which was always a huge help while debugging.

@devnexen
Copy link
Member

devnexen commented Mar 3, 2023

it s reverted now.

@MaxKellermann MaxKellermann deleted the type_code branch March 7, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants