diff options
Diffstat (limited to 'src/H5Ztrans.c')
-rw-r--r-- | src/H5Ztrans.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/H5Ztrans.c b/src/H5Ztrans.c index ecca109..accabc1 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_PACKAGE @@ -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; |