-
-
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
Consolidate XDR into the mfhdf library #483
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
b314391
Removed XDR configuration options
b30b0d9
Remove mfhdf/xdr/byteordr.c
5d7c1d5
Remove mfhdf/xdr/xdrtest.opt
17a429b
Incorporated XDR into the mfhdf library
21c1a28
Removed unused XDR functions
ee9ecef
Removed unused things from XDR struct
afeded4
Remove XDRDEBUG code
746d7a8
Remove control and inline fields from XDR struct
ef3bec3
Moved types.h content to xdr.h
0ed84f9
Removed unused XDR header cruft
52d3243
Removed xdr_enum, which was unused
f48d111
Remove xdr_short and xdr_u_short
2058ebd
Removed capital flavor of XDR macros
186ff32
Moved xdr_vector into xdrtest.c
07dba71
Remove xdrposix_inline
e9fd083
Change XDRLIBAPI --> HDFLIBAPI
b652425
Remove free, 64-bit int XDR functions
9cb6f01
Replace u_int and u_long with ANSI types
479e632
xdr.h Boolean cleanup
8d8c7b3
Moved things out of xdr.h
3f7cecf
Misc XDR cleanup
7cb8fe2
Removed ancient Sun get/put_int ops
94b4b4d
Remove xdrstdio and xdrtest
c35b885
Move xdrposix.c to xdr.c
2bbd6fd
Remove ops from XDR
b48e32d
Remove put/getint32 functions
df7bb3b
Removed 64-bit XDR functions
057c4c1
Remove redundant xdr_get/putlong()
4e39b8b
Ran formatter
7e90156
Add helpful comments
46986f4
Add check for size of long to configure/CMake
d47a85f
Merge remote-tracking branch 'canonical/master' into remove_xdr_entir…
b40378c
Fix codespell issues
1b5d7af
Update preprocessor directives
3367a27
Add winsock2.h for htonl on Windows
7ab4bc6
Update winsock defines for MinGW
3a08966
Committing clang-format changes
github-actions[bot] 26a55f2
Add htonl comments
5b488db
Clean up htonl, etc. build functionality
0351705
Tweak to CMake Windows network libraries
240f8c1
HDF4 --> CMAKE_REQUIRED_LIBRARIES
07ae856
Restore missing target_link_libraries
a9a954a
Restore netinet/in.h
4da9e6e
Refactoring and commenting
d66422b
Spelling fixes
4e19ae1
Fix typo
b8451c8
Improve comments about 64-bit BE systems
64e6dbd
Fix incorrect error string
82400d0
Switched some xdr long ops to int
56e6daf
Replaced problematic XDR long operations
54e6bf5
Merge remote-tracking branch 'canonical/master' into remove_xdr_entir…
2511111
Added h4 prefix to XDR calls
6a7a011
Renamed XDR files w/ h4 prefix
b335b9f
Committing clang-format changes
github-actions[bot] 143f66a
Merge remote-tracking branch 'canonical/master' into remove_xdr_entir…
3bdfb4f
Merge branch 'remove_xdr_entirely2' of https://github.com/derobins/hd…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why the change?
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 was trying to get MinGW to work and this seemed like the more correct thing to do. Is it not?
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.
No, not really because HDF4_REQUIRED_LIBRARIES is temporary for checking, I believe CMAKE_REQUIRED_LIBRARIES is more global.
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.
Isn't that the point, though? We want to require links to ws2_32, etc.
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 it looks like the opposite is true - CMAKE_REQUIRED_LIBRARIES is temporary for checking, we use HDF4_REQUIRED_LIBRARIES after the configure_checks.
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.
But then again CMAKE_REQUIRED_LIBRARIES shows up afterwards - ARRGH.
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.
HDF5 uses CMAKE_REQUIRED_LIBRARIES is temporary for checking.
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.
For HDF4 CMakeLists.txt line 485 incorrectly set CMAKE_REQUIRED_LIBRARIES and should have been setting HDF4_REQUIRED_LIBRARIES.
Then everything would be correct ;
CMAKE_REQUIRED_LIBRARIES is temporary for checking, we use HDF4_REQUIRED_LIBRARIES after the configure_checks.