-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
hdfi.h is no longer included in hdf.h #521
Conversation
In the past, hdfi.h (an internal header file) was included in the public hdf.h header. This is no longer the case. Anything that should be public has been moved from hdfi.h to hdf.h, including: * The C99-like types (e.g., float32) * The archaic VOID/VOIDP macros * The intf Fortran integer type * The HD library macros (e.g., HDmalloc) All of these things are considered obsolete and we only maintain them in the public header so that old code does not have to be modified. It is unwise to use them in new code.
@@ -14,8 +14,6 @@ | |||
#ifndef H4_API_ADPT_H | |||
#define H4_API_ADPT_H | |||
|
|||
#include "h4config.h" | |||
|
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.
Moved to hdf.h
Wherever possible, internal library and test source/headers include hdfi.h. Tools and utility code only include hdf.h, wherever possible. |
min() and MSDOS from hdf/util/hdfgifwr.c
Yay |
#include "hdatainfo.h" /* Add the data info header */ | ||
#include "vg.h" /* Add the Vgroup/Vdata header so the users don't have to */ | ||
#include "mfgr.h" /* Add the GR header so the users don't have to */ | ||
#include "hdatainfo.h" /* data info header */ |
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.
hdatainfo.h can be left out entirely, same for mfhdf/libsrc/mdatainfo.h
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.
We can remove it in a future PR, when we remove the file.
In the past, hdfi.h (an internal header file) was included in the
public hdf.h header. This is no longer the case. Anything that
should be public has been moved from hdfi.h to hdf.h, including:
All of these things are considered obsolete and we only maintain
them in the public header so that old code does not have to be
modified. It is unwise to use them in new code.