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

Make H5F_LIBVER_LATEST a real enum value #5083

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

derobins
Copy link
Member

@derobins derobins commented Nov 8, 2024

It was formerly a macro, but is now an enum value with the same value as the latest numbered API.

It was formerly a macro, but is now an enum value with the same
value as the latest numbered API.
@derobins derobins added Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - C Library Core C library issues (usually in the src directory) Component - Java Java wrappers Type - Improvement Improvements that don't add a new feature or functionality labels Nov 8, 2024
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Java changes are just a re-ordering, putting LATEST in front of NBOUNDS

@derobins derobins added Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. and removed Priority - 2. Medium ⏹ It would be nice to have this in the next release labels Nov 8, 2024
H5F_LIBVER_V112 = 3, /**< Use the 1.12 file format for storing objects */
H5F_LIBVER_V114 = 4, /**< Use the 1.14 file format for storing objects */
H5F_LIBVER_V200 = 5, /**< Use the 2.0 file format for storing objects */
H5F_LIBVER_LATEST = 5, /**< Use the latest file format for storing objects */
H5F_LIBVER_NBOUNDS /**< Sentinel */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to check what consequences this will have by making H5F_LIBVER_NBOUNDS inaccurate as a counting sentinel value. H5F_LIBVER_NBOUNDS is used in several places in the library.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a look

Copy link
Contributor

@brtnfld brtnfld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fortran should not be affected.

@lrknox lrknox merged commit 9019113 into HDFGroup:develop Nov 12, 2024
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - C Library Core C library issues (usually in the src directory) Component - Java Java wrappers Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. Type - Improvement Improvements that don't add a new feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants