summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-13 15:16:41 (GMT)
committerGitHub <noreply@github.com>2023-06-13 15:16:41 (GMT)
commitd4605919f970e2f84d00d802f1b01db1b98fafc6 (patch)
treee6699bf07edd54ceacf5741941c327d497b2e29f /src/H5T.c
parent9e7e2f8b8edc868b50e6d004f37ce1a2bf9da3f9 (diff)
downloadhdf5-d4605919f970e2f84d00d802f1b01db1b98fafc6.zip
hdf5-d4605919f970e2f84d00d802f1b01db1b98fafc6.tar.gz
hdf5-d4605919f970e2f84d00d802f1b01db1b98fafc6.tar.bz2
Remove H5detect and H5make_libsettings (#3104)
Removes H5detect and H5make_libsettings from the build and replaces their functionality with things that don't affect cross-compiling. H5detect --> floating-point types are now detected on library load H5make_libsettings --> Moved functionality to a new H5build_settings.c template file
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/H5T.c b/src/H5T.c
index edcbc80..6475164 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -368,8 +368,7 @@ H5T_order_t H5T_native_order_g = H5T_ORDER_ERROR;
/*********************/
/*
- * Predefined data types. These are initialized at runtime in H5Tinit.c and
- * by H5T_init() in this source file.
+ * Predefined data types. These are initialized at runtime by H5T_init().
*
* If more of these are added, the new ones must be added to the list of
* types to reset in H5T_term_package().
@@ -501,11 +500,7 @@ size_t H5T_NATIVE_FLOAT_ALIGN_g = 0;
size_t H5T_NATIVE_DOUBLE_ALIGN_g = 0;
size_t H5T_NATIVE_LDOUBLE_ALIGN_g = 0;
-/*
- * Alignment constraints for C9x types. These are initialized at run time in
- * H5Tinit.c if the types are provided by the system. Otherwise we set their
- * values to 0 here (no alignment calculated).
- */
+/* Alignment constraints for C99 types */
size_t H5T_NATIVE_INT8_ALIGN_g = 0;
size_t H5T_NATIVE_UINT8_ALIGN_g = 0;
size_t H5T_NATIVE_INT_LEAST8_ALIGN_g = 0;
@@ -756,13 +751,11 @@ H5T_init(void)
/* Only 16 (numbered 0-15) are supported in the current file format */
HDcompile_assert(H5T_NCLASSES < 16);
- /*
- * Initialize pre-defined native datatypes from code generated during
- * the library configuration by H5detect.
- */
- if (H5T__init_native() < 0)
- HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to initialize interface")
+ /* Initialize native floating-point datatypes */
+ if (H5T__init_native_float_types() < 0)
+ HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to initialize floating-point types")
+ /* Initialize all other native types */
if (H5T__init_native_internal() < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to initialize integers")