-
-
Notifications
You must be signed in to change notification settings - Fork 266
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 h5dump spacing consistent when printing VLEN datatype (#3351) #3352
Conversation
@@ -2571,7 +2571,7 @@ h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer, const h5tool_format_ | |||
if (H5Tclose(super) < 0) | |||
H5TOOLS_ERROR((-1), "H5Tclose failed"); | |||
|
|||
h5tools_str_append(buffer, "%s", h5tools_dump_header_format->vlenblockend); | |||
h5tools_str_append(buffer, " %s", h5tools_dump_header_format->vlenblockend); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been changed where vlenblockend is defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See line 159 of same file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, line 2567 is wrong and line 158 should be "H5T_VLEN { "
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another one: line 2239 should change line 152 to be: "H5T_STRING {"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually that whole function, h5tools_print_datatype, needs to fixed.
@@ -2571,7 +2571,7 @@ h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer, const h5tool_format_ | |||
if (H5Tclose(super) < 0) | |||
H5TOOLS_ERROR((-1), "H5Tclose failed"); | |||
|
|||
h5tools_str_append(buffer, "%s", h5tools_dump_header_format->vlenblockend); | |||
h5tools_str_append(buffer, " %s", h5tools_dump_header_format->vlenblockend); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See line 159 of same file.
Wow, looking at again, the h5tools_dump_header_t define should not have included types like string and vlen and enum |
I will fix this in develop. |
This change is okay with #3353 created to fix issues |
I think the main issue here was just that the printing code isn't always consistent about who is responsible for adding spacing. It should be caller or callee, but not both. If the code in |
I think that was the intention and the reason for my initial comments. |
I think the struct types aren't meant to have any spacing in them. They're just for changing what the "begin block" and "end block" delimiters are and the formatting always needs to be down in either |
* Make h5dump spacing consistent when printing VLEN datatype (#3351) (#3352) * Add Fortran H5ES module to deploy list (#3342) * Fix for the bug exposed from running test/set_extent.c when selection I/O is enabled. (#3319) The test/set_extent.c is modified to test for selection I/O enabled. * Merge Implementation of the mpio driver with selection I/O. (#3360) * Work around a testphdf5 failure on Cray MPICH machines (#3361) (#3362) * set H5_PAC_C_MAX_REAL_PRECISION default to 0 when cross compiling (#3365) with CMake to fix Fortran build failures.
No description provided.