summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-26 21:45:46 (GMT)
committerGitHub <noreply@github.com>2022-07-26 21:45:46 (GMT)
commitae414872f50187e64cbd6cc8f076c22cf5df2d53 (patch)
treeb616f33f5daa89f213e7c64e04c63afde906e939 /src/H5T.c
parent213eac2588369f75a11df6bb1788dde33c4b82e2 (diff)
downloadhdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.zip
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.gz
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.bz2
Develop clang 13 format (#1933)
* Update format source to clang 13 * More format changes
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c120
1 files changed, 60 insertions, 60 deletions
diff --git a/src/H5T.c b/src/H5T.c
index e0dc993..491c6df 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -351,9 +351,9 @@ static herr_t H5T__close_cb(H5T_t *dt, void **request);
static H5T_path_t *H5T__path_find_real(const H5T_t *src, const H5T_t *dst, const char *name,
H5T_conv_func_t *conv);
static hbool_t H5T__detect_vlen_ref(const H5T_t *dt);
-static H5T_t * H5T__initiate_copy(const H5T_t *old_dt);
-static H5T_t * H5T__copy_transient(H5T_t *old_dt);
-static H5T_t * H5T__copy_all(H5T_t *old_dt);
+static H5T_t *H5T__initiate_copy(const H5T_t *old_dt);
+static H5T_t *H5T__copy_transient(H5T_t *old_dt);
+static H5T_t *H5T__copy_all(H5T_t *old_dt);
static herr_t H5T__complete_copy(H5T_t *new_dt, const H5T_t *old_dt, H5T_shared_t *reopened_fo,
hbool_t set_memory_type, H5T_copy_func_t copyfn);
@@ -569,7 +569,7 @@ static struct {
H5T_path_t **path; /*sorted array of path pointers */
int nsoft; /*number of soft conversions defined */
size_t asoft; /*number of soft conversions allocated */
- H5T_soft_t * soft; /*unsorted array of soft conversions */
+ H5T_soft_t *soft; /*unsorted array of soft conversions */
} H5T_g;
/* Declare the free list for H5T_path_t's */
@@ -600,9 +600,9 @@ static const H5I_class_t H5I_DATATYPE_CLS[1] = {{
static herr_t
H5T__init_inf(void)
{
- H5T_t * dst_p; /* Datatype type operate on */
+ H5T_t *dst_p; /* Datatype type operate on */
H5T_atomic_t *dst; /* Datatype's atomic info */
- uint8_t * d; /* Pointer to value to set */
+ uint8_t *d; /* Pointer to value to set */
size_t half_size; /* Half the type size */
size_t u; /* Local index value */
herr_t ret_value = SUCCEED; /* Return value */
@@ -707,39 +707,39 @@ done:
herr_t
H5T_init(void)
{
- H5T_t * native_schar = NULL; /* Datatype structure for native signed char */
- H5T_t * native_uchar = NULL; /* Datatype structure for native unsigned char */
- H5T_t * native_short = NULL; /* Datatype structure for native short */
- H5T_t * native_ushort = NULL; /* Datatype structure for native unsigned short */
- H5T_t * native_int = NULL; /* Datatype structure for native int */
- H5T_t * native_uint = NULL; /* Datatype structure for native unsigned int */
- H5T_t * native_long = NULL; /* Datatype structure for native long */
- H5T_t * native_ulong = NULL; /* Datatype structure for native unsigned long */
- H5T_t * native_llong = NULL; /* Datatype structure for native long long */
- H5T_t * native_ullong = NULL; /* Datatype structure for native unsigned long long */
- H5T_t * native_float = NULL; /* Datatype structure for native float */
- H5T_t * native_double = NULL; /* Datatype structure for native double */
- H5T_t * native_ldouble = NULL; /* Datatype structure for native long double */
- H5T_t * std_u8le = NULL; /* Datatype structure for unsigned 8-bit little-endian integer */
- H5T_t * std_u8be = NULL; /* Datatype structure for unsigned 8-bit big-endian integer */
- H5T_t * std_u16le = NULL; /* Datatype structure for unsigned 16-bit little-endian integer */
- H5T_t * std_u16be = NULL; /* Datatype structure for unsigned 16-bit big-endian integer */
- H5T_t * std_u32le = NULL; /* Datatype structure for unsigned 32-bit little-endian integer */
- H5T_t * std_u32be = NULL; /* Datatype structure for unsigned 32-bit big-endian integer */
- H5T_t * std_u64le = NULL; /* Datatype structure for unsigned 64-bit little-endian integer */
- H5T_t * std_u64be = NULL; /* Datatype structure for unsigned 64-bit big-endian integer */
- H5T_t * dt = NULL;
- H5T_t * fixedpt = NULL; /* Datatype structure for native int */
- H5T_t * floatpt = NULL; /* Datatype structure for native float */
- H5T_t * string = NULL; /* Datatype structure for C string */
- H5T_t * bitfield = NULL; /* Datatype structure for bitfield */
- H5T_t * compound = NULL; /* Datatype structure for compound objects */
- H5T_t * enum_type = NULL; /* Datatype structure for enum objects */
- H5T_t * vlen = NULL; /* Datatype structure for vlen objects */
- H5T_t * array = NULL; /* Datatype structure for array objects */
- H5T_t * objref = NULL; /* Datatype structure for deprecated reference objects */
- H5T_t * regref = NULL; /* Datatype structure for deprecated region references */
- H5T_t * ref = NULL; /* Datatype structure for opaque references */
+ H5T_t *native_schar = NULL; /* Datatype structure for native signed char */
+ H5T_t *native_uchar = NULL; /* Datatype structure for native unsigned char */
+ H5T_t *native_short = NULL; /* Datatype structure for native short */
+ H5T_t *native_ushort = NULL; /* Datatype structure for native unsigned short */
+ H5T_t *native_int = NULL; /* Datatype structure for native int */
+ H5T_t *native_uint = NULL; /* Datatype structure for native unsigned int */
+ H5T_t *native_long = NULL; /* Datatype structure for native long */
+ H5T_t *native_ulong = NULL; /* Datatype structure for native unsigned long */
+ H5T_t *native_llong = NULL; /* Datatype structure for native long long */
+ H5T_t *native_ullong = NULL; /* Datatype structure for native unsigned long long */
+ H5T_t *native_float = NULL; /* Datatype structure for native float */
+ H5T_t *native_double = NULL; /* Datatype structure for native double */
+ H5T_t *native_ldouble = NULL; /* Datatype structure for native long double */
+ H5T_t *std_u8le = NULL; /* Datatype structure for unsigned 8-bit little-endian integer */
+ H5T_t *std_u8be = NULL; /* Datatype structure for unsigned 8-bit big-endian integer */
+ H5T_t *std_u16le = NULL; /* Datatype structure for unsigned 16-bit little-endian integer */
+ H5T_t *std_u16be = NULL; /* Datatype structure for unsigned 16-bit big-endian integer */
+ H5T_t *std_u32le = NULL; /* Datatype structure for unsigned 32-bit little-endian integer */
+ H5T_t *std_u32be = NULL; /* Datatype structure for unsigned 32-bit big-endian integer */
+ H5T_t *std_u64le = NULL; /* Datatype structure for unsigned 64-bit little-endian integer */
+ H5T_t *std_u64be = NULL; /* Datatype structure for unsigned 64-bit big-endian integer */
+ H5T_t *dt = NULL;
+ H5T_t *fixedpt = NULL; /* Datatype structure for native int */
+ H5T_t *floatpt = NULL; /* Datatype structure for native float */
+ H5T_t *string = NULL; /* Datatype structure for C string */
+ H5T_t *bitfield = NULL; /* Datatype structure for bitfield */
+ H5T_t *compound = NULL; /* Datatype structure for compound objects */
+ H5T_t *enum_type = NULL; /* Datatype structure for enum objects */
+ H5T_t *vlen = NULL; /* Datatype structure for vlen objects */
+ H5T_t *array = NULL; /* Datatype structure for array objects */
+ H5T_t *objref = NULL; /* Datatype structure for deprecated reference objects */
+ H5T_t *regref = NULL; /* Datatype structure for deprecated region references */
+ H5T_t *ref = NULL; /* Datatype structure for opaque references */
hsize_t dim[1] = {1}; /* Dimension info for array datatype */
herr_t status;
hbool_t copied_dtype =
@@ -1449,7 +1449,7 @@ static int
H5T__unlock_cb(void *_dt, hid_t H5_ATTR_UNUSED id, void *_udata)
{
H5T_t *dt = (H5T_t *)_dt;
- int * n = (int *)_udata;
+ int *n = (int *)_udata;
FUNC_ENTER_PACKAGE_NOERR
@@ -1818,7 +1818,7 @@ H5Tcopy(hid_t obj_id)
break;
case H5I_DATASET: {
- H5VL_object_t * vol_obj; /* Object for obj_id */
+ H5VL_object_t *vol_obj; /* Object for obj_id */
H5VL_dataset_get_args_t vol_cb_args; /* Arguments to VOL callback */
/* The argument is a dataset handle */
@@ -1933,11 +1933,11 @@ done:
herr_t
H5Tclose_async(const char *app_file, const char *app_func, unsigned app_line, hid_t type_id, hid_t es_id)
{
- H5T_t * dt; /* Pointer to datatype to close */
- void * token = NULL; /* Request token for async operation */
- void ** token_ptr = H5_REQUEST_NULL; /* Pointer to request token for async operation */
+ H5T_t *dt; /* Pointer to datatype to close */
+ void *token = NULL; /* Request token for async operation */
+ void **token_ptr = H5_REQUEST_NULL; /* Pointer to request token for async operation */
H5VL_object_t *vol_obj = NULL; /* VOL object of dset_id */
- H5VL_t * connector = NULL; /* VOL connector */
+ H5VL_t *connector = NULL; /* VOL connector */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
@@ -2074,7 +2074,7 @@ done:
H5T_class_t
H5Tget_class(hid_t type_id)
{
- H5T_t * dt; /* Pointer to datatype */
+ H5T_t *dt; /* Pointer to datatype */
H5T_class_t ret_value; /* Return value */
FUNC_ENTER_API(H5T_NO_CLASS)
@@ -2703,8 +2703,8 @@ done:
herr_t
H5Tregister(H5T_pers_t pers, const char *name, hid_t src_id, hid_t dst_id, H5T_conv_t func)
{
- H5T_t * src; /*source data type descriptor */
- H5T_t * dst; /*destination data type desc */
+ H5T_t *src; /*source data type descriptor */
+ H5T_t *dst; /*destination data type desc */
H5T_conv_func_t conv_func; /* Conversion function wrapper */
herr_t ret_value = SUCCEED; /*return value */
@@ -2898,7 +2898,7 @@ done:
H5T_conv_t
H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t **pcdata /*out*/)
{
- H5T_t * src, *dst;
+ H5T_t *src, *dst;
H5T_path_t *path;
H5T_conv_t ret_value; /* Return value */
@@ -2992,7 +2992,7 @@ herr_t
H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf, void *background, hid_t dxpl_id)
{
H5T_path_t *tpath; /* type conversion info */
- H5T_t * src, *dst; /* unregistered types */
+ H5T_t *src, *dst; /* unregistered types */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
@@ -3524,8 +3524,8 @@ static herr_t
H5T__complete_copy(H5T_t *new_dt, const H5T_t *old_dt, H5T_shared_t *reopened_fo, hbool_t set_memory_type,
H5T_copy_func_t copyfn)
{
- H5T_t * tmp = NULL; /* Temporary copy of compound field's datatype */
- char * s; /* Temporary copy of compound field name / enum value name */
+ H5T_t *tmp = NULL; /* Temporary copy of compound field's datatype */
+ char *s; /* Temporary copy of compound field name / enum value name */
unsigned i; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
@@ -3720,9 +3720,9 @@ done:
H5T_t *
H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
{
- H5T_t * new_dt = NULL; /* New datatype */
+ H5T_t *new_dt = NULL; /* New datatype */
H5T_copy_func_t copyfn; /* Pointer to correct copy routine */
- H5T_t * ret_value = NULL; /* Return value */
+ H5T_t *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI(NULL)
@@ -3796,9 +3796,9 @@ done:
H5T_t *
H5T_copy_reopen(H5T_t *old_dt)
{
- H5T_t * new_dt = NULL; /* New datatype */
+ H5T_t *new_dt = NULL; /* New datatype */
H5T_shared_t *reopened_fo = NULL; /* Pointer to reopened existing named datatype */
- H5T_t * ret_value = NULL; /* Return value */
+ H5T_t *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI(NULL)
@@ -3864,7 +3864,7 @@ H5T_copy_reopen(H5T_t *old_dt)
else
/* Downgrade immutable datatypes to read-only */
if (H5T_STATE_IMMUTABLE == old_dt->shared->state)
- new_dt->shared->state = H5T_STATE_RDONLY;
+ new_dt->shared->state = H5T_STATE_RDONLY;
/* Finish making the copy of the datatype */
if (H5T__complete_copy(new_dt, old_dt, reopened_fo, TRUE, H5T_copy_reopen) < 0)
@@ -4184,7 +4184,7 @@ H5T_close(H5T_t *dt)
else
/* Free object location (i.e. "unhold" the file if appropriate) */
if (H5O_loc_free(&(dt->oloc)) < 0)
- HGOTO_ERROR(H5E_DATATYPE, H5E_CANTRELEASE, FAIL, "problem attempting to free location")
+ HGOTO_ERROR(H5E_DATATYPE, H5E_CANTRELEASE, FAIL, "problem attempting to free location")
} /* end else */
} /* end if */
@@ -4309,7 +4309,7 @@ H5T__set_size(H5T_t *dt, size_t size)
case H5T_STRING:
/* Convert string to variable-length datatype */
if (size == H5T_VARIABLE) {
- H5T_t * base = NULL; /* base data type */
+ H5T_t *base = NULL; /* base data type */
H5T_cset_t tmp_cset; /* Temp. cset info */
H5T_str_t tmp_strpad; /* Temp. strpad info */
@@ -4948,7 +4948,7 @@ H5T_path_t *
H5T_path_find(const H5T_t *src, const H5T_t *dst)
{
H5T_conv_func_t conv_func; /* Conversion function wrapper */
- H5T_path_t * ret_value = NULL; /* Return value */
+ H5T_path_t *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI(NULL)