-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Remove the hash_size param from H5Iregister_type() #5170
Conversation
* Add the function call (copy of existing H5Iregister_type) * Add H5Ideprec.c * Remove the hash_size parameter from H5Iregister_type * Copy the basic test in tid.c and use the register1 call instead * No make_vers changes at this time
* Update bin/make_vers to handle v200 * H5Iregister_type() --> H5Iregister_type2() The bin/make_vers script could still use some cleanup regarding the hash table / index magic, which seems over-complicated. Also, H5Iregister_type1/2 should have common code extracted.
Replaces the overly complicated file parse with something a LOT simpler.
} else { | ||
die "unknown line type: $line"; | ||
$api_vers_to_type_vers{$hash_vers}{$name} = $curr_sym_number; |
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.
All that index manipulation nonsense reduced to about a dozen lines of code that even handles the v111 complication without additional logic.
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.
I reworked the whole script to just use an explicit list of supported versions. All that array index complexity was giving me a headache.
*------------------------------------------------------------------------- | ||
*/ | ||
H5I_type_t | ||
H5I__register_type_common(unsigned reserved, H5I_free_t free_func) |
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.
Seems like this function should return a pointer to the registered class rather than H5I_type_t
so that if an error occurs later the code can free the registered class if need be.
I'm going to go ahead and merge this to get the make_vers changes in. I'll address Jordan's comment in a future PR. |
The hash_size parameter of H5Iregister_type() hasn't been used since 1.8.
It's been removed and the API call has been versioned.
This PR also updates the make_vers script to handle v2.0.0.
Fixes #4344