summaryrefslogtreecommitdiffstats
path: root/src/H5Ztrans.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-27 17:28:11 (GMT)
committerGitHub <noreply@github.com>2022-07-27 17:28:11 (GMT)
commita0a1959c58973095194f2d9ac5f9b13bb7b14fb4 (patch)
tree3f36cbd14d9ede9f00c4c26affb9ecab5d1a860f /src/H5Ztrans.c
parentf0690f13fb914ff39a32d88801eabcef759a0163 (diff)
downloadhdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.zip
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.gz
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.bz2
clang 13 format #1933 (#1939)
Diffstat (limited to 'src/H5Ztrans.c')
-rw-r--r--src/H5Ztrans.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/H5Ztrans.c b/src/H5Ztrans.c
index 092b289..ae59ca5 100644
--- a/src/H5Ztrans.c
+++ b/src/H5Ztrans.c
@@ -37,12 +37,12 @@ typedef enum {
typedef struct {
unsigned int num_ptrs;
- void ** ptr_dat_val;
+ void **ptr_dat_val;
} H5Z_datval_ptrs;
/* Used to represent values in transform expression */
typedef union {
- void * dat_val;
+ void *dat_val;
long int_val;
double float_val;
} H5Z_num_val;
@@ -55,8 +55,8 @@ typedef struct H5Z_node {
} H5Z_node;
struct H5Z_data_xform_t {
- char * xform_exp;
- H5Z_node * parse_root;
+ char *xform_exp;
+ H5Z_node *parse_root;
H5Z_datval_ptrs *dat_val_pointers;
};
@@ -71,29 +71,29 @@ typedef struct {
/* Current token values */
H5Z_token_type tok_type; /* The type of the current token */
- const char * tok_begin; /* The beginning of the current token */
- const char * tok_end; /* The end of the current token */
+ const char *tok_begin; /* The beginning of the current token */
+ const char *tok_end; /* The end of the current token */
/* Previous token values */
H5Z_token_type tok_last_type; /* The type of the last token */
- const char * tok_last_begin; /* The beginning of the last token */
- const char * tok_last_end; /* The end of the last token */
+ const char *tok_last_begin; /* The beginning of the last token */
+ const char *tok_last_end; /* The end of the last token */
} H5Z_token;
/* Local function prototypes */
static H5Z_token *H5Z__get_token(H5Z_token *current);
-static H5Z_node * H5Z__parse_expression(H5Z_token *current, H5Z_datval_ptrs *dat_val_pointers);
-static H5Z_node * H5Z__parse_term(H5Z_token *current, H5Z_datval_ptrs *dat_val_pointers);
-static H5Z_node * H5Z__parse_factor(H5Z_token *current, H5Z_datval_ptrs *dat_val_pointers);
-static H5Z_node * H5Z__new_node(H5Z_token_type type);
+static H5Z_node *H5Z__parse_expression(H5Z_token *current, H5Z_datval_ptrs *dat_val_pointers);
+static H5Z_node *H5Z__parse_term(H5Z_token *current, H5Z_datval_ptrs *dat_val_pointers);
+static H5Z_node *H5Z__parse_factor(H5Z_token *current, H5Z_datval_ptrs *dat_val_pointers);
+static H5Z_node *H5Z__new_node(H5Z_token_type type);
static void H5Z__do_op(H5Z_node *tree);
static hbool_t H5Z__op_is_numbs(H5Z_node *_tree);
static hbool_t H5Z__op_is_numbs2(H5Z_node *_tree);
static hid_t H5Z__xform_find_type(const H5T_t *type);
static herr_t H5Z__xform_eval_full(H5Z_node *tree, size_t array_size, hid_t array_type, H5Z_result *res);
static void H5Z__xform_destroy_parse_tree(H5Z_node *tree);
-static void * H5Z__xform_parse(const char *expression, H5Z_datval_ptrs *dat_val_pointers);
-static void * H5Z__xform_copy_tree(H5Z_node *tree, H5Z_datval_ptrs *dat_val_pointers,
+static void *H5Z__xform_parse(const char *expression, H5Z_datval_ptrs *dat_val_pointers);
+static void *H5Z__xform_copy_tree(H5Z_node *tree, H5Z_datval_ptrs *dat_val_pointers,
H5Z_datval_ptrs *new_dat_val_pointers);
static void H5Z__xform_reduce_tree(H5Z_node *tree);
@@ -107,7 +107,7 @@ static void H5Z__xform_reduce_tree(H5Z_node *tree);
size_t u; \
\
if (((RESL).type == H5Z_XFORM_SYMBOL) && ((RESR).type != H5Z_XFORM_SYMBOL)) { \
- TYPE * p; \
+ TYPE *p; \
double tree_val; \
\
tree_val = \
@@ -120,7 +120,7 @@ static void H5Z__xform_reduce_tree(H5Z_node *tree);
} \
} \
else if (((RESR).type == H5Z_XFORM_SYMBOL) && ((RESL).type != H5Z_XFORM_SYMBOL)) { \
- TYPE * p; \
+ TYPE *p; \
double tree_val; \
\
/* The case that the left operand is nothing, like -x or +x */ \
@@ -545,7 +545,7 @@ static void *
H5Z__xform_parse(const char *expression, H5Z_datval_ptrs *dat_val_pointers)
{
H5Z_token tok;
- void * ret_value = NULL; /* Return value */
+ void *ret_value = NULL; /* Return value */
FUNC_ENTER_STATIC
@@ -945,7 +945,7 @@ done:
herr_t
H5Z_xform_eval(H5Z_data_xform_t *data_xform_prop, void *array, size_t array_size, const H5T_t *buf_type)
{
- H5Z_node * tree;
+ H5Z_node *tree;
hid_t array_type;
H5Z_result res;
size_t i;