summaryrefslogtreecommitdiffstats
path: root/src/H5Pencdec.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/H5Pencdec.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/H5Pencdec.c')
-rw-r--r--src/H5Pencdec.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/H5Pencdec.c b/src/H5Pencdec.c
index b0a355f..d7ebac6 100644
--- a/src/H5Pencdec.c
+++ b/src/H5Pencdec.c
@@ -48,7 +48,7 @@
typedef struct {
hbool_t encode; /* Whether the property list should be encoded */
size_t *enc_size_ptr; /* Pointer to size of encoded buffer */
- void ** pp; /* Pointer to encoding buffer pointer */
+ void **pp; /* Pointer to encoding buffer pointer */
} H5P_enc_iter_ud_t;
/********************/
@@ -376,7 +376,7 @@ herr_t
H5P__encode(const H5P_genplist_t *plist, hbool_t enc_all_prop, void *buf, size_t *nalloc)
{
H5P_enc_iter_ud_t udata; /* User data for property iteration callback */
- uint8_t * p = (uint8_t *)buf; /* Temporary pointer to encoding buffer */
+ uint8_t *p = (uint8_t *)buf; /* Temporary pointer to encoding buffer */
int idx; /* Index of property to start at */
size_t encode_size = 0; /* Size of buffer needed to encode properties */
hbool_t encode = TRUE; /* Whether the property list should be encoded */
@@ -442,7 +442,7 @@ done:
herr_t
H5P__decode_size_t(const void **_pp, void *_value)
{
- size_t * value = (size_t *)_value; /* Property value to return */
+ size_t *value = (size_t *)_value; /* Property value to return */
const uint8_t **pp = (const uint8_t **)_pp;
uint64_t enc_value; /* Decoded property value */
unsigned enc_size; /* Size of encoded property */
@@ -482,7 +482,7 @@ H5P__decode_size_t(const void **_pp, void *_value)
herr_t
H5P__decode_hsize_t(const void **_pp, void *_value)
{
- hsize_t * value = (hsize_t *)_value; /* Property value to return */
+ hsize_t *value = (hsize_t *)_value; /* Property value to return */
const uint8_t **pp = (const uint8_t **)_pp;
uint64_t enc_value; /* Decoded property value */
unsigned enc_size; /* Size of encoded property */
@@ -522,7 +522,7 @@ H5P__decode_hsize_t(const void **_pp, void *_value)
herr_t
H5P__decode_unsigned(const void **_pp, void *_value)
{
- unsigned * value = (unsigned *)_value; /* Property value to return */
+ unsigned *value = (unsigned *)_value; /* Property value to return */
const uint8_t **pp = (const uint8_t **)_pp;
unsigned enc_size; /* Size of encoded property */
herr_t ret_value = SUCCEED; /* Return value */
@@ -561,7 +561,7 @@ done:
herr_t
H5P__decode_uint8_t(const void **_pp, void *_value)
{
- uint8_t * value = (uint8_t *)_value; /* Property value to return */
+ uint8_t *value = (uint8_t *)_value; /* Property value to return */
const uint8_t **pp = (const uint8_t **)_pp;
herr_t ret_value = SUCCEED; /* Return value */
@@ -594,7 +594,7 @@ H5P__decode_uint8_t(const void **_pp, void *_value)
herr_t
H5P__decode_hbool_t(const void **_pp, void *_value)
{
- hbool_t * value = (hbool_t *)_value; /* Property value to return */
+ hbool_t *value = (hbool_t *)_value; /* Property value to return */
const uint8_t **pp = (const uint8_t **)_pp;
herr_t ret_value = SUCCEED; /* Return value */
@@ -627,7 +627,7 @@ H5P__decode_hbool_t(const void **_pp, void *_value)
herr_t
H5P__decode_double(const void **_pp, void *_value)
{
- double * value = (double *)_value; /* Property value to return */
+ double *value = (double *)_value; /* Property value to return */
const uint8_t **pp = (const uint8_t **)_pp;
unsigned enc_size; /* Size of encoded property */
herr_t ret_value = SUCCEED; /* Return value */
@@ -676,9 +676,9 @@ done:
hid_t
H5P__decode(const void *buf)
{
- H5P_genplist_t * plist; /* Property list to decode into */
- void * value_buf = NULL; /* Pointer to buffer to use when decoding values */
- const uint8_t * p = (const uint8_t *)buf; /* Current pointer into buffer */
+ H5P_genplist_t *plist; /* Property list to decode into */
+ void *value_buf = NULL; /* Pointer to buffer to use when decoding values */
+ const uint8_t *p = (const uint8_t *)buf; /* Current pointer into buffer */
H5P_plist_type_t type; /* Type of encoded property list */
hid_t plist_id = -1; /* ID of new property list */
size_t value_buf_size = 0; /* Size of current value buffer */
@@ -713,7 +713,7 @@ H5P__decode(const void *buf)
/* Loop over encoded properties, deserializing their values */
while (p) {
H5P_genprop_t *prop; /* Pointer to property with same name */
- const char * name; /* Pointer to property list name */
+ const char *name; /* Pointer to property list name */
/* Check for end of serialized list of properties */
if (0 == *p)