Skip to content
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

Refine huge enum types #3576

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Linvail
Copy link
Contributor

@Linvail Linvail commented Oct 19, 2024

Using 64bit int as the underlying type of enum is not officially supported by the C11 standard. The actual behavior is compiler-dependent. These enums cause portability issues, making us unable to use other compilers.

Some huge enum types exceed or almost exceed the 32-bit boundary.
Use #define to handle those until we switch to C++ or C23 standard.

Type: Code Improvement
Change-Id: I2cd965c45e469d67ab35fe0a1c0a8401d07689ca

Using 64bit int as underlying type of enum is not officially
supported by C11 standard. The actual behavior is compiler-dependent.
These enums cause portability issue, making us unable to use other
compilers.

We have some huge enum types that exceed or almost exceed the
32bit boundary.
Use #define to handle those until we can switch to C++ or C23
standard.

Type: Code Improvement
Change-Id: I2cd965c45e469d67ab35fe0a1c0a8401d07689ca
@Linvail Linvail self-assigned this Oct 19, 2024
@Linvail Linvail requested a review from Loobinex October 19, 2024 07:52
@Loobinex Loobinex requested review from PieterVdc and removed request for Loobinex October 19, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant