mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
Fix 'datatype' misspellings ('dataype') (#2984)
This commit is contained in:
parent
d7cb8aca5b
commit
5c2e434dc6
@ -75,7 +75,7 @@ ALIASES += space_id="\param[in] space_id Dataspace identifier"
|
||||
ALIASES += space_id{1}="\param[in] \1 Dataspace identifier"
|
||||
|
||||
################################################################################
|
||||
# Dataypes
|
||||
# Datatypes
|
||||
################################################################################
|
||||
|
||||
ALIASES += type_id="\param[in] type_id Datatype identifier"
|
||||
|
@ -245,7 +245,7 @@ CONTAINS
|
||||
CALL h5sclose_f(dspace_id, error)
|
||||
CALL check("h5sclose_f",error,total_error)
|
||||
!
|
||||
! Close the dataype.
|
||||
! Close the datatype.
|
||||
!
|
||||
CALL h5tclose_f(atype_id, error)
|
||||
CALL check("h5tclose_f",error,total_error)
|
||||
|
@ -13806,7 +13806,7 @@ public class H5 implements java.io.Serializable {
|
||||
/**
|
||||
* @ingroup JH5T
|
||||
*
|
||||
* H5Tcreate creates a new dataype of the specified class with the specified number of bytes.
|
||||
* H5Tcreate creates a new datatype of the specified class with the specified number of bytes.
|
||||
*
|
||||
* @param tclass
|
||||
* IN: Class of datatype to create.
|
||||
@ -15261,7 +15261,7 @@ public class H5 implements java.io.Serializable {
|
||||
/**
|
||||
* @ingroup JH5T
|
||||
*
|
||||
* H5Tvlen_create creates a new variable-length (VL) dataype.
|
||||
* H5Tvlen_create creates a new variable-length (VL) datatype.
|
||||
*
|
||||
* @param base_id
|
||||
* IN: Identifier of parent datatype.
|
||||
|
@ -8448,7 +8448,7 @@ C. Changes Since Version 1.0.1
|
||||
-------------------
|
||||
H5Tget_super - return the base datatype from which a
|
||||
datatype is derived
|
||||
H5Tvlen_create - creates a new variable-length dataype
|
||||
H5Tvlen_create - creates a new variable-length datatype
|
||||
H5Tenum_create - creates a new enumeration datatype
|
||||
H5Tenum_insert - inserts a new enumeration datatype member
|
||||
H5Tenum_nameof - returns the symbol name corresponding to a
|
||||
@ -8944,7 +8944,7 @@ Datatypes
|
||||
H5Tset_strpad - set string padding
|
||||
+ H5Tget_super - return the base datatype from which a
|
||||
datatype is derived
|
||||
+ H5Tvlen_create - creates a new variable-length dataype
|
||||
+ H5Tvlen_create - creates a new variable-length datatype
|
||||
+ H5Tenum_create - creates a new enumeration datatype
|
||||
+ H5Tenum_insert - inserts a new enumeration datatype member
|
||||
+ H5Tenum_nameof - returns the symbol name corresponding to a
|
||||
|
@ -706,7 +706,7 @@ done:
|
||||
* target file when merging committed datatypes during H5Ocopy
|
||||
* (i.e. when using the H5O_COPY_MERGE_COMMITTED_DTYPE_FLAG flag
|
||||
* as set by H5Pset_copy_object). If the source named
|
||||
* dataype is not found in the list of paths created by this
|
||||
* datatype is not found in the list of paths created by this
|
||||
* function, the entire file will be searched.
|
||||
*
|
||||
* Usage: H5Padd_merge_committed_dtype_path(plist_id, path)
|
||||
|
@ -9584,10 +9584,10 @@ H5_DLL herr_t H5Pget_mcdt_search_cb(hid_t plist_id, H5O_mcdt_search_cb_t *func,
|
||||
* committed datatype.
|
||||
* If copied in a single H5Ocopy() operation, objects
|
||||
* that share a committed datatype in the source will
|
||||
* share an anonymous committed dataype in the
|
||||
* share an anonymous committed datatype in the
|
||||
* destination copy. Subsequent H5Ocopy() operations,
|
||||
* however, will be unaware of prior anonymous committed
|
||||
* dataypes and will create new ones.
|
||||
* datatypes and will create new ones.
|
||||
*
|
||||
* See the “See Also” section immediately below for
|
||||
* functions related to the use of this flag.</td>
|
||||
|
@ -326,7 +326,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
{ \
|
||||
if (sizeof(type) <= sizeof(long long)) \
|
||||
H5Z_scaleoffset_get_filval_1(type, cd_values, filval) else HGOTO_ERROR( \
|
||||
H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Find maximum and minimum values of a buffer with fill value defined for integer type */
|
||||
@ -445,7 +445,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
} \
|
||||
} \
|
||||
else \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Precompress for unsigned integer type */
|
||||
@ -553,7 +553,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
min * pow_fun((type)10, (type)D_val)); \
|
||||
} \
|
||||
else \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Modify values of data in precompression if fill value undefined for floating-point type */
|
||||
@ -572,7 +572,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
*(long long *)((void *)&buf[i]) = llround_fun(buf[i] * pow_fun((type)10, (type)D_val) - \
|
||||
min * pow_fun((type)10, (type)D_val)); \
|
||||
else \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Save the minimum value for floating-point type */
|
||||
@ -590,7 +590,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
H5MM_memcpy(((char *)minval) + (sizeof(long long) - sizeof(type)), &min, sizeof(type)); \
|
||||
} /* end else */ \
|
||||
else \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Precompress for floating-point type using variable-minimum-bits method */
|
||||
@ -674,7 +674,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
H5MM_memcpy(&min, ((char *)&minval) + (sizeof(long long) - sizeof(type)), sizeof(type)); \
|
||||
} /* end else */ \
|
||||
else \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Modify values of data in postdecompression if fill value defined for floating-point type */
|
||||
@ -701,7 +701,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
: (type)(*(long long *)((void *)&buf[i])) / pow_fun((type)10, (type)D_val) + \
|
||||
min); \
|
||||
else \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Modify values of data in postdecompression if fill value undefined for floating-point type */
|
||||
@ -717,7 +717,7 @@ H5Z_class2_t H5Z_SCALEOFFSET[1] = {{
|
||||
for (i = 0; i < d_nelmts; i++) \
|
||||
buf[i] = ((type)(*(long long *)((void *)&buf[i])) / pow_fun((type)10, (type)D_val) + min); \
|
||||
else \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer dataype") \
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "cannot find matched integer datatype") \
|
||||
}
|
||||
|
||||
/* Postdecompress for floating-point type using variable-minimum-bits method */
|
||||
@ -827,7 +827,7 @@ H5Z__scaleoffset_get_type(unsigned dtype_class, unsigned dtype_size, unsigned dt
|
||||
type = t_ulong_long;
|
||||
#endif /* H5_SIZEOF_LONG != H5_SIZEOF_LONG_LONG */
|
||||
else
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, t_bad, "cannot find matched memory dataype")
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, t_bad, "cannot find matched memory datatype")
|
||||
}
|
||||
|
||||
if (dtype_sign == H5Z_SCALEOFFSET_SGN_2) { /* signed integer */
|
||||
@ -844,7 +844,7 @@ H5Z__scaleoffset_get_type(unsigned dtype_class, unsigned dtype_size, unsigned dt
|
||||
type = t_long_long;
|
||||
#endif /* H5_SIZEOF_LONG != H5_SIZEOF_LONG_LONG */
|
||||
else
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, t_bad, "cannot find matched memory dataype")
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, t_bad, "cannot find matched memory datatype")
|
||||
}
|
||||
}
|
||||
|
||||
@ -854,7 +854,7 @@ H5Z__scaleoffset_get_type(unsigned dtype_class, unsigned dtype_size, unsigned dt
|
||||
else if (dtype_size == sizeof(double))
|
||||
type = t_double;
|
||||
else
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, t_bad, "cannot find matched memory dataype")
|
||||
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, t_bad, "cannot find matched memory datatype")
|
||||
}
|
||||
|
||||
/* Set return value */
|
||||
|
@ -11767,7 +11767,7 @@ test_attr(void)
|
||||
test_attr_delete(my_fapl); /* Test H5A code for deleting attributes */
|
||||
|
||||
/* This next test uses its own file information */
|
||||
test_attr_dtype_shared(my_fapl); /* Test using shared dataypes in attributes */
|
||||
test_attr_dtype_shared(my_fapl); /* Test using shared datatypes in attributes */
|
||||
|
||||
/* This next test uses its own file information */
|
||||
test_attr_duplicate_ids(my_fapl);
|
||||
|
@ -4839,7 +4839,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR1_LEN);
|
||||
@ -4865,7 +4865,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR2_LEN);
|
||||
@ -4935,7 +4935,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR3_LEN);
|
||||
@ -4981,7 +4981,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR2_LEN);
|
||||
@ -5043,7 +5043,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR2_LEN);
|
||||
|
@ -1633,7 +1633,7 @@ const H5Z_class2_t H5Z_BOGUS[1] = {{
|
||||
* Function: can_apply_bogus
|
||||
*
|
||||
* Purpose: A bogus 'can apply' callback that returns 0 for H5T_NATIVE_DOUBLE
|
||||
* dataype, but returns 1 for all other datatypes
|
||||
* datatype, but returns 1 for all other datatypes
|
||||
*
|
||||
* Return: Success: Described above
|
||||
* Failure: 0
|
||||
|
@ -81,7 +81,7 @@ main()
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
assert(sid > 0);
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
assert(tid > 0);
|
||||
ret = H5Tset_size(tid, ATTR1_LEN);
|
||||
@ -107,7 +107,7 @@ main()
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
assert(sid > 0);
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
assert(tid > 0);
|
||||
ret = H5Tset_size(tid, ATTR2_LEN);
|
||||
@ -177,7 +177,7 @@ main()
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
assert(sid > 0);
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
assert(tid > 0);
|
||||
ret = H5Tset_size(tid, ATTR3_LEN);
|
||||
@ -223,7 +223,7 @@ main()
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
assert(sid > 0);
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
assert(tid > 0);
|
||||
ret = H5Tset_size(tid, ATTR2_LEN);
|
||||
@ -285,7 +285,7 @@ main()
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
assert(sid > 0);
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
assert(tid > 0);
|
||||
ret = H5Tset_size(tid, ATTR2_LEN);
|
||||
|
@ -11509,7 +11509,7 @@ test_attr(void)
|
||||
test_attr_delete(my_fapl); /* Test H5A code for deleting attributes */
|
||||
|
||||
/* This next test uses its own file information */
|
||||
test_attr_dtype_shared(my_fapl); /* Test using shared dataypes in attributes */
|
||||
test_attr_dtype_shared(my_fapl); /* Test using shared datatypes in attributes */
|
||||
|
||||
/* This next test uses its own file information */
|
||||
test_attr_duplicate_ids(my_fapl);
|
||||
|
10
test/tmisc.c
10
test/tmisc.c
@ -4751,7 +4751,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR1_LEN);
|
||||
@ -4777,7 +4777,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR2_LEN);
|
||||
@ -4847,7 +4847,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR3_LEN);
|
||||
@ -4893,7 +4893,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR2_LEN);
|
||||
@ -4955,7 +4955,7 @@ test_misc25a(void)
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
CHECK(sid, FAIL, "H5Screate");
|
||||
|
||||
/* Create dataype for attribute */
|
||||
/* Create datatype for attribute */
|
||||
tid = H5Tcopy(H5T_C_S1);
|
||||
CHECK(tid, FAIL, "H5Tcopy");
|
||||
ret = H5Tset_size(tid, (size_t)MISC25A_ATTR2_LEN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user