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

Merge 839 hdf5 1 10 #879

Merged
merged 105 commits into from
Aug 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
c5d3ff5
Revert addition of & to 2 parameters in DSetCreatPropList::setVirtual to
lrknox May 17, 2021
df9c7de
Merge branch 'hdf5_1_10' of https://github.com/HDFGroup/hdf5 into hdf…
lrknox Jun 3, 2021
426b504
Fix H5Eget_auto2/H5Eauto_is_v2 to not clear error stack (#625)
jhendersonHDF May 12, 2021
da089c5
Removes gratuitous (double)x.yF casts (#632)
derobins May 7, 2021
e2bfcf4
Cleans up a const warning left over from previous constification (#633)
derobins May 7, 2021
a317873
Purges UFAIL from the library (#637)
derobins May 11, 2021
cc05a1e
Bmr dev hdffv 11223 (#640)
bmribler May 12, 2021
59a0ebd
Committing clang-format changes
github-actions[bot] Jun 3, 2021
6ed1a94
Restore "error:" in line 2666.
lrknox Jun 3, 2021
c502c85
Merge branch 'hdf5_1_10' of https://github.com/lrknox/hdf5 into hdf5_…
lrknox Jun 3, 2021
d3a6523
Revert "Fix H5Eget_auto2/H5Eauto_is_v2 to not clear error stack (#625)"
lrknox Jun 3, 2021
8234aac
Snapshot version 1.10 release 8-1. Update version to 1.10.8-2.
lrknox Jul 14, 2021
764cc03
Merge branch 'HDFGroup:hdf5_1_10' into hdf5_1_10
lrknox Jul 14, 2021
51e0e42
(fix) Segmentation fault when using a compound type. (#143)
jwsblokland Dec 2, 2020
7c70f57
(fix) H5Z_xform_create function and scientific notation (#144)
jwsblokland Dec 2, 2020
81ab548
Adds const to a few global variables (#623)
derobins May 4, 2021
caccc86
Made private my_yyinput function static (#618)
seanm May 4, 2021
cfc57ce
Reduces overly-pedantic casting in the public headers (#644)
derobins May 15, 2021
c7e76e2
Use internal version of H5Eprint2 to avoid possible stack overflow (#…
jhendersonHDF May 26, 2021
db8298b
Fixes for a couple of trivial warnings (#676)
derobins May 24, 2021
edddb11
Removes alternative function enter/leave macro scheme (#678)
derobins May 29, 2021
2279e01
Various CMake changes (#679)
derobins May 24, 2021
b9788b6
Revert "Removes alternative function enter/leave macro scheme (#678)"
lrknox Jul 15, 2021
4fdbb41
err_compat test cleanup (#681)
derobins May 25, 2021
652ffca
Sets the memory alloc sanity check option to disabled in autotools (#…
derobins May 25, 2021
08a5e38
Revert "Sets the memory alloc sanity check option to disabled in auto…
lrknox Jul 15, 2021
580adbc
Removes alternative function enter/leave macro scheme (#678)
derobins May 29, 2021
a69a754
Committing clang-format changes
github-actions[bot] Jul 15, 2021
2ae7065
Merge branch 'hdf5_1_10' into merge_839_hdf5_1_10
lrknox Jul 15, 2021
ef387ad
Squashed commit of the following:
lrknox Jul 20, 2021
628fcae
Revert references to SIZE_MAX to ((size_t)(-1)) in C header defines u…
lrknox Jul 21, 2021
1bfaf3b
Merge branch 'hdf5_1_10' into hdf5_1_10
lrknox Jul 21, 2021
5196d12
Merge branch 'hdf5_1_10' into merge_839_hdf5_1_10
lrknox Jul 22, 2021
56ed78b
Fix H5FD_mpio_Debug="rw" can report MPI_count instead of bytes (#699)
brtnfld May 28, 2021
3e709e7
Removes pre-C99 build and header cruft (#700)
derobins May 28, 2021
02adcc9
Clean up type size checks in configure.ac (#702)
derobins May 29, 2021
7dea73c
Removes some DEC Alpha cruft from H5detect and H5private.h (#708)
derobins Jun 2, 2021
be6ad9a
Cleans up hsize_t and haddr_t size guessing (#709)
derobins Jun 2, 2021
a2a3905
Revert "Cleans up hsize_t and haddr_t size guessing (#709)"
lrknox Jul 23, 2021
7f1dda8
Updates bin/trace script to correctly wrap H5TRACE macros near clang-…
derobins Jun 3, 2021
2f2b373
Fixes a segfault when H5Pset_mdc_log_options is called multiple times…
derobins Apr 29, 2021
6c2a75a
Fix for a segfault when H5Pset_fapl_log is passed an invalid fapl ID …
derobins Apr 29, 2021
41e8ef0
Fixes crashes when size_hint > UINT32_MAX is passed to H5Gcreate1 (#611)
derobins Apr 30, 2021
bb0ce96
Adds __STDC_FORMAT_MACROS before including inttypes.h w/ C++ (#726)
derobins Jun 4, 2021
d8ef8cf
Remove conflicts from RELEASE.txt
lrknox Jul 23, 2021
005df08
Always include inttypes.h
lrknox Jul 24, 2021
24cd404
Moves H5PacketTable default ctor inside source file (#731)
derobins Jun 6, 2021
7b4883b
Remove private H5_GCC_DIAG_OFF/ON from standalone program (#734)
byrnHDF Jun 7, 2021
07118a5
Fixes C++ warnings when passing hsize_t values to printf in test code…
derobins Jun 11, 2021
3427e01
Squashed commit of the following:
lrknox Jul 26, 2021
d1d66e0
Normalization of H5_nanosleep() with VFD SWMR branch (#746)
derobins Jun 11, 2021
f1e7d53
Fixes some H5SL include statements (#758)
derobins Jun 16, 2021
9909e3d
Fixes an array issue flagged by PGI in a C++ test (#763)
derobins Jun 17, 2021
ff440c6
Fixes non-C99 format strings in tarray test code (#766)
derobins Jun 18, 2021
2228ecd
Removes checks and work-arounds for strtoll and strtoull (#769)
derobins Jun 18, 2021
a99e9fc
Removes checks for (v)snprintf, which are C99 (#772)
derobins Jun 21, 2021
3b0ce02
Removes outdated checks for ways inline might be defined (#781)
derobins Jun 23, 2021
0e16476
Removes checks for system(), which is C89/90 (#782)
derobins Jun 23, 2021
a6e06fb
Cleans up some POSIX header bits in H5private.h (#783)
derobins Jun 23, 2021
cd399ab
Further simplifies Autotools type size checks (#789)
derobins Jun 23, 2021
c760dfe
Removes ancient Autotools cruft (#790)
derobins Jun 24, 2021
dc9b5c5
Normalization of CMake H5pubconf.h with Autotools (#791)
derobins Jun 23, 2021
c126256
Merge branch 'hdf5_1_10' into merge_839_hdf5_1_10
lrknox Jul 26, 2021
7b00731
Update initialization of table_id in PacketTable Null constructor for
lrknox Jul 26, 2021
d4d96cb
Merge branch 'merge_839_hdf5_1_10' of https://github.com/lrknox/hdf5 …
lrknox Jul 26, 2021
6cefc9b
Merge branch 'HDFGroup:hdf5_1_10' into hdf5_1_10
lrknox Jul 29, 2021
2ffa5fa
Merge branch 'HDFGroup:hdf5_1_10' into hdf5_1_10
lrknox Jul 30, 2021
85438b2
Merge branch 'HDFGroup:hdf5_1_10' into hdf5_1_10
lrknox Aug 1, 2021
27f79b2
Merge branch 'hdf5_1_10' into merge_839_hdf5_1_10
lrknox Aug 4, 2021
15b5e27
Reorganization of C and POSIX headers in H5public.h & H5private.h (#793)
derobins Jun 24, 2021
2dc623d
Removes checks for signal and set/longjmp, which are C89 (#798)
derobins Jun 25, 2021
07b423c
Assume frexpl/f and fabsl/f, which are C99 (#799)
derobins Jun 25, 2021
93fbbf8
Removes obsolete equivalents of C99's __func__ (#800)
derobins Jun 29, 2021
acb963b
Brings the tools getopt(3) replacement into the main library (#803)
derobins Jun 29, 2021
4431878
Committing clang-format changes
github-actions[bot] Aug 4, 2021
641e6f7
Cleans up POSIX/C bits in H5private.h (#804)
derobins Jun 29, 2021
c65d9f3
Assume the library has C99 types in C++ type code (#806)
derobins Jun 28, 2021
94b18d9
Removes type guesses when C99 types are missing (#807)
derobins Jun 29, 2021
1a9208a
Assume C99 types exist in H5detect.c (#808)
derobins Jun 29, 2021
cb4846a
Fixes parallel issues from recent C99 changes (#809)
derobins Jun 30, 2021
eee36de
Committing clang-format changes
github-actions[bot] Aug 5, 2021
7345be4
Removes remaining H5_TIME_WITH_SYS_TIME cruft (#810)
derobins Jun 30, 2021
d4ad830
Remove checks for winsock2.h (#813)
derobins Jul 6, 2021
70f3805
Removes develop header cruft (#828)
derobins Jul 9, 2021
dd34f35
OESS-168:Remove implicit conversion warnings. (#829)
hyoklee Jul 12, 2021
3ffec7e
Add support for parallel filters to h5repack (#832)
jhendersonHDF Jul 14, 2021
11cebb0
Perform option arg variables (#834)
byrnHDF Jul 15, 2021
f6e12fd
OESS-168:Remove clang warnings. (#835)
hyoklee Jul 26, 2021
0061341
Allow parallel filters feature for comm size of 1 (#840)
jhendersonHDF Jul 20, 2021
ae5743d
Revert "Allow parallel filters feature for comm size of 1 (#840)"
lrknox Aug 5, 2021
2abd47b
Revert "Removes remaining H5_TIME_WITH_SYS_TIME cruft (#810)"
lrknox Aug 6, 2021
3d12e86
Revert "Assume frexpl/f and fabsl/f, which are C99 (#799)"
lrknox Aug 6, 2021
df0c223
Merge branch 'merge_839_hdf5_1_10' of https://github.com/lrknox/hdf5 …
lrknox Aug 6, 2021
7402682
Revert "Removes outdated checks for ways inline might be defined (#781)"
lrknox Aug 6, 2021
5b3c55a
Revert "Removes checks for (v)snprintf, which are C99 (#772)"
lrknox Aug 6, 2021
b5215f8
Revert "Removes checks and work-arounds for strtoll and strtoull (#769)"
lrknox Aug 9, 2021
3250de9
Revert "Removes ancient Autotools cruft (#790)"
lrknox Aug 9, 2021
182b521
Revert "Removes obsolete equivalents of C99's __func__ (#800)"
lrknox Aug 10, 2021
38609c9
Revert "Assume the library has C99 types in C++ type code (#806)"
lrknox Aug 10, 2021
fe54987
Revert "Removes type guesses when C99 types are missing (#807)"
lrknox Aug 10, 2021
6161d19
Revert "Assume C99 types exist in H5detect.c (#808)"
lrknox Aug 10, 2021
39554e5
Revert "Fixes parallel issues from recent C99 changes (#809)"
lrknox Aug 10, 2021
8c83a4c
Committing clang-format changes
github-actions[bot] Aug 10, 2021
5b49225
Revert "Cleans up POSIX/C bits in H5private.h (#804)"
lrknox Aug 10, 2021
05f2435
Merge branch 'merge_839_hdf5_1_10' of https://github.com/lrknox/hdf5 …
lrknox Aug 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 21 additions & 36 deletions config/cmake/H5pubconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@
/* Define to 1 if you have the <hdfs.h> header file. */
#cmakedefine H5_HAVE_HDFS_H @H5_HAVE_HDFS_H@

/* Define if the compiler understands inline */
#cmakedefine H5_HAVE_INLINE @H5_HAVE_INLINE@

/* Define if parallel library will contain instrumentation to detect correct
optimization operation */
#cmakedefine H5_HAVE_INSTRUMENTED_LIBRARY @H5_HAVE_INSTRUMENTED_LIBRARY@
Expand Down Expand Up @@ -238,21 +241,6 @@
/* Define to 1 if you have the `z' library (-lz). */
#cmakedefine H5_HAVE_LIBZ @H5_HAVE_LIBZ@

/* Define to 1 if you have the `llround' function. */
#cmakedefine H5_HAVE_LLROUND @H5_HAVE_LLROUND@

/* Define to 1 if you have the `llroundf' function. */
#cmakedefine H5_HAVE_LLROUNDF @H5_HAVE_LLROUNDF@

/* Define to 1 if you have the `longjmp' function. */
#cmakedefine H5_HAVE_LONGJMP @H5_HAVE_LONGJMP@

/* Define to 1 if you have the `lround' function. */
#cmakedefine H5_HAVE_LROUND @H5_HAVE_LROUND@

/* Define to 1 if you have the `lroundf' function. */
#cmakedefine H5_HAVE_LROUNDF @H5_HAVE_LROUNDF@

/* Define to 1 if you have the `lseek64' function. */
#cmakedefine H5_HAVE_LSEEK64 @H5_HAVE_LSEEK64@

Expand Down Expand Up @@ -314,33 +302,21 @@
compiled */
#cmakedefine H5_HAVE_ROS3_VFD @H5_HAVE_ROS3_VFD@

/* Define to 1 if you have the `round' function. */
#cmakedefine H5_HAVE_ROUND @H5_HAVE_ROUND@

/* Define to 1 if you have the `roundf' function. */
#cmakedefine H5_HAVE_ROUNDF @H5_HAVE_ROUNDF@

/* Define to 1 if you have the `setjmp' function. */
#cmakedefine H5_HAVE_SETJMP @H5_HAVE_SETJMP@

/* Define to 1 if you have the <setjmp.h> header file. */
#cmakedefine H5_HAVE_SETJMP_H @H5_HAVE_SETJMP_H@

/* Define to 1 if you have the `setsysinfo' function. */
#cmakedefine H5_HAVE_SETSYSINFO @H5_HAVE_SETSYSINFO@

/* Define to 1 if you have the `siglongjmp' function. */
#cmakedefine H5_HAVE_SIGLONGJMP @H5_HAVE_SIGLONGJMP@

/* Define to 1 if you have the `signal' function. */
#cmakedefine H5_HAVE_SIGNAL @H5_HAVE_SIGNAL@

/* Define to 1 if you have the `sigprocmask' function. */
#cmakedefine H5_HAVE_SIGPROCMASK @H5_HAVE_SIGPROCMASK@

/* Define to 1 if you have the `sigsetjmp' function. */
#cmakedefine H5_HAVE_SIGSETJMP @H5_HAVE_SIGSETJMP@

/* Define to 1 if you have the `snprintf' function. */
#cmakedefine H5_HAVE_SNPRINTF @H5_HAVE_SNPRINTF@

/* Define to 1 if you have the `srandom' function. */
#cmakedefine H5_HAVE_SRANDOM @H5_HAVE_SRANDOM@

Expand All @@ -350,9 +326,6 @@
/* Define if struct stat has the st_blocks field */
#cmakedefine H5_HAVE_STAT_ST_BLOCKS @H5_HAVE_STAT_ST_BLOCKS@

/* Define to 1 if you have the <stddef.h> header file. */
#cmakedefine H5_HAVE_STDDEF_H @H5_HAVE_STDDEF_H@

/* Define to 1 if you have the <stdlib.h> header file. */
#cmakedefine H5_HAVE_STDLIB_H @H5_HAVE_STDLIB_H@

Expand All @@ -365,6 +338,12 @@
/* Define to 1 if you have the <string.h> header file. */
#cmakedefine H5_HAVE_STRING_H @H5_HAVE_STRING_H@

/* Define to 1 if you have the `strtoll' function. */
#cmakedefine H5_HAVE_STRTOLL @H5_HAVE_STRTOLL@

/* Define to 1 if you have the `strtoull' function. */
#cmakedefine H5_HAVE_STRTOULL @H5_HAVE_STRTOULL@

/* Define if struct text_info is defined */
#cmakedefine H5_HAVE_STRUCT_TEXT_INFO @H5_HAVE_STRUCT_TEXT_INFO@

Expand Down Expand Up @@ -427,6 +406,9 @@
/* Define to 1 if you have the `vasprintf' function. */
#cmakedefine H5_HAVE_VASPRINTF @H5_HAVE_VASPRINTF@

/* Define to 1 if you have the `vsnprintf' function. */
#cmakedefine H5_HAVE_VSNPRINTF @H5_HAVE_VSNPRINTF@

/* Define to 1 if you have the `waitpid' function. */
#cmakedefine H5_HAVE_WAITPID @H5_HAVE_WAITPID@

Expand All @@ -436,9 +418,6 @@
/* Define if your system has window style path name. */
#cmakedefine H5_HAVE_WINDOW_PATH @H5_HAVE_WINDOW_PATH@

/* Define to 1 if you have the <winsock2.h> header file. */
#cmakedefine H5_HAVE_WINSOCK2_H @H5_HAVE_WINSOCK2_H@

/* Define to 1 if you have the <zlib.h> header file. */
#cmakedefine H5_HAVE_ZLIB_H @H5_HAVE_ZLIB_H@

Expand All @@ -448,6 +427,12 @@
/* Define to 1 if you have the `_scrsize' function. */
#cmakedefine H5_HAVE__SCRSIZE @H5_HAVE__SCRSIZE@

/* Define if the compiler understands __inline */
#cmakedefine H5_HAVE___INLINE @H5_HAVE___INLINE@

/* Define if the compiler understands __inline__ */
#cmakedefine H5_HAVE___INLINE__ @H5_HAVE___INLINE__@

/* Define if the library will ignore file locks when disabled */
#cmakedefine H5_IGNORE_DISABLED_FILE_LOCKS @H5_IGNORE_DISABLED_FILE_LOCKS@

Expand Down
38 changes: 21 additions & 17 deletions config/cmake_ext_mod/ConfigureChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ if (MINGW)
set (${HDF_PREFIX}_HAVE_MINGW 1)
set (WINDOWS 1) # MinGW tries to imitate Windows
set (CMAKE_REQUIRED_FLAGS "-DWIN32_LEAN_AND_MEAN=1 -DNOGDI=1")
set (${HDF_PREFIX}_HAVE_WINSOCK2_H 1)
set (__USE_MINGW_ANSI_STDIO 1)
endif ()

Expand All @@ -72,7 +71,6 @@ if (WINDOWS)
set (${HDF_PREFIX}_HAVE_WIN32_API 1)
set (${HDF_PREFIX}_HAVE_LIBM 1)
set (${HDF_PREFIX}_HAVE_STRDUP 1)
set (${HDF_PREFIX}_HAVE_LONGJMP 1)
if (NOT MINGW)
set (${HDF_PREFIX}_HAVE_GETHOSTNAME 1)
set (${HDF_PREFIX}_HAVE_FUNCTION 1)
Expand Down Expand Up @@ -117,15 +115,8 @@ CHECK_INCLUDE_FILE_CONCAT ("sys/time.h" ${HDF_PREFIX}_HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILE_CONCAT ("sys/types.h" ${HDF_PREFIX}_HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILE_CONCAT ("features.h" ${HDF_PREFIX}_HAVE_FEATURES_H)
CHECK_INCLUDE_FILE_CONCAT ("dirent.h" ${HDF_PREFIX}_HAVE_DIRENT_H)
CHECK_INCLUDE_FILE_CONCAT ("setjmp.h" ${HDF_PREFIX}_HAVE_SETJMP_H)
CHECK_INCLUDE_FILE_CONCAT ("stddef.h" ${HDF_PREFIX}_HAVE_STDDEF_H)
CHECK_INCLUDE_FILE_CONCAT ("unistd.h" ${HDF_PREFIX}_HAVE_UNISTD_H)

# Windows
if (NOT CYGWIN)
CHECK_INCLUDE_FILE_CONCAT ("winsock2.h" ${HDF_PREFIX}_HAVE_WINSOCK2_H)
endif ()

CHECK_INCLUDE_FILE_CONCAT ("globus/common.h" ${HDF_PREFIX}_HAVE_GLOBUS_COMMON_H)
CHECK_INCLUDE_FILE_CONCAT ("pdb.h" ${HDF_PREFIX}_HAVE_PDB_H)
CHECK_INCLUDE_FILE_CONCAT ("pthread.h" ${HDF_PREFIX}_HAVE_PTHREAD_H)
Expand Down Expand Up @@ -491,31 +482,36 @@ CHECK_FUNCTION_EXISTS (round ${HDF_PREFIX}_HAVE_ROUND)
CHECK_FUNCTION_EXISTS (roundf ${HDF_PREFIX}_HAVE_ROUNDF)
CHECK_FUNCTION_EXISTS (setsysinfo ${HDF_PREFIX}_HAVE_SETSYSINFO)

CHECK_FUNCTION_EXISTS (signal ${HDF_PREFIX}_HAVE_SIGNAL)
CHECK_FUNCTION_EXISTS (longjmp ${HDF_PREFIX}_HAVE_LONGJMP)
CHECK_FUNCTION_EXISTS (setjmp ${HDF_PREFIX}_HAVE_SETJMP)
CHECK_FUNCTION_EXISTS (siglongjmp ${HDF_PREFIX}_HAVE_SIGLONGJMP)
CHECK_FUNCTION_EXISTS (sigsetjmp ${HDF_PREFIX}_HAVE_SIGSETJMP)
CHECK_FUNCTION_EXISTS (sigprocmask ${HDF_PREFIX}_HAVE_SIGPROCMASK)

CHECK_FUNCTION_EXISTS (snprintf ${HDF_PREFIX}_HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS (srandom ${HDF_PREFIX}_HAVE_SRANDOM)
CHECK_FUNCTION_EXISTS (strdup ${HDF_PREFIX}_HAVE_STRDUP)
CHECK_FUNCTION_EXISTS (strtoll ${HDF_PREFIX}_HAVE_STRTOLL)
CHECK_FUNCTION_EXISTS (strtoull ${HDF_PREFIX}_HAVE_STRTOULL)
CHECK_FUNCTION_EXISTS (symlink ${HDF_PREFIX}_HAVE_SYMLINK)

CHECK_FUNCTION_EXISTS (tmpfile ${HDF_PREFIX}_HAVE_TMPFILE)
CHECK_FUNCTION_EXISTS (asprintf ${HDF_PREFIX}_HAVE_ASPRINTF)
CHECK_FUNCTION_EXISTS (vasprintf ${HDF_PREFIX}_HAVE_VASPRINTF)
CHECK_FUNCTION_EXISTS (waitpid ${HDF_PREFIX}_HAVE_WAITPID)

CHECK_FUNCTION_EXISTS (vsnprintf ${HDF_PREFIX}_HAVE_VSNPRINTF)
if (MINGW OR NOT WINDOWS)
if (${HDF_PREFIX}_HAVE_VSNPRINTF)
HDF_FUNCTION_TEST (VSNPRINTF_WORKS)
endif ()
endif ()

#-----------------------------------------------------------------------------
# sigsetjmp is special; may actually be a macro
#-----------------------------------------------------------------------------
if (NOT ${HDF_PREFIX}_HAVE_SIGSETJMP)
if (${HDF_PREFIX}_HAVE_SETJMP_H)
CHECK_SYMBOL_EXISTS (sigsetjmp "setjmp.h" ${HDF_PREFIX}_HAVE_MACRO_SIGSETJMP)
if (${HDF_PREFIX}_HAVE_MACRO_SIGSETJMP)
set (${HDF_PREFIX}_HAVE_SIGSETJMP 1)
endif ()
CHECK_SYMBOL_EXISTS (sigsetjmp "setjmp.h" ${HDF_PREFIX}_HAVE_MACRO_SIGSETJMP)
if (${HDF_PREFIX}_HAVE_MACRO_SIGSETJMP)
set (${HDF_PREFIX}_HAVE_SIGSETJMP 1)
endif ()
endif ()

Expand Down Expand Up @@ -597,6 +593,14 @@ if (WINDOWS)
endif ()
endif ()

#-----------------------------------------------------------------------------
# Determine how 'inline' is used
#-----------------------------------------------------------------------------
foreach (inline_test inline __inline__ __inline)
string (TOUPPER ${inline_test} INLINE_TEST_MACRO)
HDF_FUNCTION_TEST (HAVE_${INLINE_TEST_MACRO})
endforeach ()

#-----------------------------------------------------------------------------
# Check how to print a Long Long integer
#-----------------------------------------------------------------------------
Expand Down
17 changes: 17 additions & 0 deletions config/cmake_ext_mod/HDFTests.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,20 @@ int main ()
}

#endif /* HAVE_IOEO */

#if defined( HAVE_INLINE ) || defined( HAVE___INLINE__ ) || defined( HAVE___INLINE )
#ifndef __cplusplus
#if defined( HAVE_INLINE )
# define INLINE_KW inline
#elif defined ( HAVE___INLINE__ )
# define INLINE_KW __inline__
#elif defined ( HAVE___INLINE )
# define INLINE_KW __inline
#endif /* HAVE_INLINE */
typedef int foo_t;
static INLINE_KW foo_t static_foo () { return 0; }
INLINE_KW foo_t foo () {return 0; }
int main(void) { return 0; }
#endif /* __cplusplus */
#endif /* defined( HAVE_INLINE ) || defined( HAVE___INLINE__ ) || defined( HAVE___INLINE ) */

38 changes: 35 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,15 @@ esac
## Data types and their sizes.
##
AC_TYPE_OFF_T
AC_CHECK_TYPE([size_t], [],
[AC_DEFINE_UNQUOTED([size_t], [unsigned long],
[Define to `unsigned long' if <sys/types.h> does not define.])])
AC_CHECK_TYPE([ssize_t], [],
[AC_DEFINE_UNQUOTED([ssize_t], [long],
[Define to `long' if <sys/types.h> does not define.])])
AC_CHECK_TYPE([ptrdiff_t], [],
[AC_DEFINE_UNQUOTED([ptrdiff_t], [long],
[Define to `long' if <sys/types.h> does not define.])])
AC_C_BIGENDIAN
AC_CHECK_SIZEOF([char])
AC_CHECK_SIZEOF([short])
Expand Down Expand Up @@ -1210,11 +1216,13 @@ AC_CHECK_LIB([dl], [dlopen])
## ----------------------------------------------------------------------
## Check for system header files.
##
AC_HEADER_STDC
AC_HEADER_TIME

## Unix
AC_CHECK_HEADERS([sys/resource.h sys/time.h unistd.h sys/ioctl.h sys/stat.h])
AC_CHECK_HEADERS([sys/socket.h sys/types.h sys/file.h])
AC_CHECK_HEADERS([stddef.h setjmp.h features.h])
AC_CHECK_HEADERS([features.h])
AC_CHECK_HEADERS([dirent.h])
AC_CHECK_HEADERS([netdb.h netinet/in.h arpa/inet.h])

Expand Down Expand Up @@ -1999,13 +2007,37 @@ AC_CHECK_FUNCS([alarm clock_gettime difftime fcntl flock fork frexpf])
AC_CHECK_FUNCS([frexpl gethostname getrusage gettimeofday])
AC_CHECK_FUNCS([lstat rand_r random setsysinfo])
AC_CHECK_FUNCS([signal longjmp setjmp siglongjmp sigsetjmp sigprocmask])
AC_CHECK_FUNCS([srandom strdup symlink])
AC_CHECK_FUNCS([tmpfile asprintf vasprintf waitpid])
AC_CHECK_FUNCS([snprintf srandom strdup symlink system])
AC_CHECK_FUNCS([strtoll strtoull])
AC_CHECK_FUNCS([tmpfile asprintf vasprintf vsnprintf waitpid])
AC_CHECK_FUNCS([roundf lroundf llroundf round lround llround])

## ----------------------------------------------------------------------
## Check compiler characteristics
##
AC_C_CONST

AC_MSG_CHECKING([if the compiler understands __inline__])
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([[static __inline__ void f(void){return;};]])],
[AC_DEFINE([HAVE___INLINE__], [1], [Define if the compiler understands __inline__]) AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])]
)

AC_MSG_CHECKING([if the compiler understands __inline])
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([[static __inline void f(void){return;};]])],
[AC_DEFINE([HAVE___INLINE], [1], [Define if the compiler understands __inline]) AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])]
)

AC_MSG_CHECKING([if the compiler understands inline])
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([[static inline void f(void){return;};]])],
[AC_DEFINE([HAVE_INLINE], [1], [Define if the compiler understands inline]) AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])]
)

AC_MSG_CHECKING([for __attribute__ extension])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int __attribute__((unused)) x]])],
[AC_DEFINE([HAVE_ATTRIBUTE], [1],
Expand Down
2 changes: 2 additions & 0 deletions hl/test/test_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -5205,6 +5205,8 @@ test_attach_detach(void)

HL_TESTING2("permutations of attaching and detaching");

gid = var1_id = var2_id = var3_id = H5I_INVALID_HID;

if ((fid = H5Fcreate(FILE8, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0)
goto out;

Expand Down
8 changes: 4 additions & 4 deletions hl/test/test_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ typedef struct particle_t {
* a static array of particles for writing and checking reads
*-------------------------------------------------------------------------
*/
static particle_t testPart[NRECORDS] = {{"zero", 0, 0, 0.0f, 0.0f}, {"one", 10, 10, 1.0f, 10.0f},
{"two", 20, 20, 2.0f, 20.0f}, {"three", 30, 30, 3.0f, 30.0f},
{"four", 40, 40, 4.0f, 40.0f}, {"five", 50, 50, 5.0f, 50.0f},
{"six", 60, 60, 6.0f, 60.0f}, {"seven", 70, 70, 7.0f, 70.0f}};
static particle_t testPart[NRECORDS] = {{"zero", 0, 0, 0.0f, 0.0}, {"one", 10, 10, 1.0f, 10.0},
{"two", 20, 20, 2.0f, 20.0}, {"three", 30, 30, 3.0f, 30.0},
{"four", 40, 40, 4.0f, 40.0}, {"five", 50, 50, 5.0f, 50.0},
{"six", 60, 60, 6.0f, 60.0}, {"seven", 70, 70, 7.0f, 70.0}};

/*-------------------------------------------------------------------------
* function that compares one particle
Expand Down
40 changes: 20 additions & 20 deletions hl/test/test_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ test_table(hid_t fid, int do_write)
hsize_t chunk_size = 10;
int compress = 0;
int * fill = NULL;
particle_t fill1[1] = {{"no data", -1, -99.0f, -99.0f, -1}};
particle_t fill1[1] = {{"no data", -1, -99.0, -99.0, -1}};
int fill1_new[1] = {-100};
hsize_t position;
char tname[20];
Expand Down Expand Up @@ -227,23 +227,23 @@ test_table(hid_t fid, int do_write)
particle2_t rbuf2[NRECORDS];
particle3_t rbuf3[NRECORDS];
particle_t rbufc[NRECORDS * 2];
particle_t abuf[2] = {{"eight", 80, 8.0f, 80.0f, 80}, {"nine", 90, 9.0f, 90.0f, 90}};
particle_t ibuf[2] = {{"zero", 0, 0.0f, 0.0f, 0}, {"zero", 0, 0.0f, 0.0f, 0}};
particle_t abuf[2] = {{"eight", 80, 8.0, 80.0, 80}, {"nine", 90, 9.0, 90.0, 90}};
particle_t ibuf[2] = {{"zero", 0, 0.0, 0.0, 0}, {"zero", 0, 0.0, 0.0, 0}};
particle_t wbufd[NRECORDS];
particle_t wbuf[NRECORDS] = {{
"zero",
0,
0.0f,
0.0f,
0.0,
0.0,
0,
},
{"one", 10, 1.0f, 10.0f, 10},
{"two", 20, 2.0f, 20.0f, 20},
{"three", 30, 3.0f, 30.0f, 30},
{"four", 40, 4.0f, 40.0f, 40},
{"five", 50, 5.0f, 50.0f, 50},
{"six", 60, 6.0f, 60.0f, 60},
{"seven", 70, 7.0f, 70.0f, 70}};
{"one", 10, 1.0, 10.0, 10},
{"two", 20, 2.0, 20.0, 20},
{"three", 30, 3.0, 30.0, 30},
{"four", 40, 4.0, 40.0, 40},
{"five", 50, 5.0, 50.0, 50},
{"six", 60, 6.0, 60.0, 60},
{"seven", 70, 7.0, 70.0, 70}};
/* buffers for the field "Pressure" and "New_field" */
float pressure_in[NRECORDS] = {0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f};
float pressure_out[NRECORDS];
Expand Down Expand Up @@ -332,14 +332,14 @@ test_table(hid_t fid, int do_write)
HOFFSET(particle4_t, aty), HOFFSET(particle4_t, rro)};

/* Define an array of Particles */
particle4_t p_data[NRECORDS] = {{12112, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12113, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12114, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12115, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12116, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12117, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12118, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12119, 1.4f, 2.5f, {1, 2, 3}, {4, 5, 6}, {99, 100}}};
particle4_t p_data[NRECORDS] = {{12112, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12113, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12114, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12115, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12116, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12117, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12118, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}},
{12119, 1.4, 2.5, {1, 2, 3}, {4, 5, 6}, {99, 100}}};

/*-------------------------------------------------------------------------
* initialize table parameters
Expand Down
Loading