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

Rename private headers <foo>_priv.h #573

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

derobins
Copy link
Member

This will make it easy to distinguish public v. private symbols.

Also:

  • Clean up Java JNI header usage, use hdf.h vs. hdfi.h
  • Remove unused hdf/src/src.inc and mfhdf/fortran/common.inc files
  • Removed mfhdfi.h after moving its content to mfhdf.h

This will make it easy to distinguish what is private and what is
public.

Also:
* Removed unused hdf/src/src.inc and mfhdf/fortran/common.inc files
* Removed mfhdfi.h after moving the enum it contained to mfhdf.h
Missing stdlib.h in a lot of places
@derobins derobins added Component - Build CMake, Autotools Component - C Library Core C library issues Component - Fortran Fortran wrappers Component - Tools Command-line tools like dumper and hdiff Component - Java Java wrappers Component - Testing Test code, GitHub workflows Type - Improvement Improvements that don't add a new feature or functionality Priority - 2. Medium ⏹ It would be nice to have this in the next release labels Feb 21, 2024
# release_notes/RELEASE.txt, configure.in,
# and config/cmake/scripts/HDF4config.cmake.
# The paths to README.md, release_notes/RELEASE.txt, configure.ac,
# and config/cmake/scripts/HDF4config.cmake
# files are always from the directory two levels above hfile.h.
# files are always from the directory two levels above hfile_priv.h.
Copy link
Member Author

Choose a reason for hiding this comment

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

In my next PR, I plan to put the version macros in hdf.h

#include <string.h>

#include <jni.h>

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 reordered the headers so they are in OS/C --> JNI --> Local order and put them outside the extern C block

@derobins derobins merged commit ec211cd into HDFGroup:master Feb 21, 2024
38 checks passed
@derobins derobins deleted the private_header_rename branch March 3, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Build CMake, Autotools Component - C Library Core C library issues Component - Fortran Fortran wrappers Component - Java Java wrappers Component - Testing Test code, GitHub workflows Component - Tools Command-line tools like dumper and hdiff Priority - 2. Medium ⏹ It would be nice to have this in the next release 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.

2 participants