summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-28 15:05:11 (GMT)
committerGitHub <noreply@github.com>2022-07-28 15:05:11 (GMT)
commit762c111350cc31137a80e24126b00d9aacf3b2a9 (patch)
tree8d21ed8a877bc60b9c517b7505ce80e2cf8031a9 /tools/h5dump
parentc1c4db3c4a0cbef6eceaab2f069e895936fbbe34 (diff)
downloadhdf5-762c111350cc31137a80e24126b00d9aacf3b2a9.zip
hdf5-762c111350cc31137a80e24126b00d9aacf3b2a9.tar.gz
hdf5-762c111350cc31137a80e24126b00d9aacf3b2a9.tar.bz2
clang 13 format #1933 (#1941)
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/binread.c4
-rw-r--r--tools/h5dump/dynlib_dump.c2
-rw-r--r--tools/h5dump/h5dump.c16
-rw-r--r--tools/h5dump/h5dump.h10
-rw-r--r--tools/h5dump/h5dump_ddl.c46
-rw-r--r--tools/h5dump/h5dump_extern.h10
-rw-r--r--tools/h5dump/h5dump_xml.c94
-rw-r--r--tools/h5dump/h5dumpgentest.c102
8 files changed, 142 insertions, 142 deletions
diff --git a/tools/h5dump/binread.c b/tools/h5dump/binread.c
index 341a085..4e46c57 100644
--- a/tools/h5dump/binread.c
+++ b/tools/h5dump/binread.c
@@ -61,11 +61,11 @@ usage(void)
int
main(int argc, char *argv[])
{
- FILE * stream;
+ FILE *stream;
size_t numread;
TYPE buf[NELMTS];
size_t i, nelmts = NELMTS;
- char * fname = NULL;
+ char *fname = NULL;
if (argc != 2) {
usage();
diff --git a/tools/h5dump/dynlib_dump.c b/tools/h5dump/dynlib_dump.c
index 433522d..9d277e0 100644
--- a/tools/h5dump/dynlib_dump.c
+++ b/tools/h5dump/dynlib_dump.c
@@ -62,7 +62,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 97a79cb..4b4dd84 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -19,7 +19,7 @@
#define PROGRAMNAME "h5dump"
static const char *driver_name_g = NULL; /* The driver to open the file with. */
-const char * outfname_g = NULL;
+const char *outfname_g = NULL;
static hbool_t doxml_g = FALSE;
static hbool_t useschema_g = TRUE;
static const char *xml_dtd_uri_g = NULL;
@@ -66,7 +66,7 @@ static void init_prefix(char **prfx, size_t prfx_len);
/* a structure for handling the order command-line parameters come in */
struct handler_t {
void (*func)(hid_t, const char *, void *, int, const char *);
- char * obj;
+ char *obj;
struct subset_t *subset_info;
};
@@ -77,7 +77,7 @@ struct handler_t {
*/
/* The following initialization makes use of C language concatenating */
/* "xxx" "yyy" into "xxxyyy". */
-static const char * s_opts = "a:b*c:d:ef:g:hik:l:m:n*o*pq:rs:t:uvw:xyz:A*BCD:E*F:G:HM:N:O*RS:VX:";
+static const char *s_opts = "a:b*c:d:ef:g:hik:l:m:n*o*pq:rs:t:uvw:xyz:A*BCD:E*F:G:HM:N:O*RS:VX:";
static struct long_options l_opts[] = {{"attribute", require_arg, 'a'},
{"attribut", require_arg, 'a'},
{"attribu", require_arg, 'a'},
@@ -614,8 +614,8 @@ set_sort_order(const char *form)
static void
parse_hsize_list(const char *h_list, subset_d *d)
{
- hsize_t * p_list;
- const char * ptr;
+ hsize_t *p_list;
+ const char *ptr;
unsigned int size_count = 0;
unsigned int i = 0;
unsigned int last_digit = 0;
@@ -668,7 +668,7 @@ static struct subset_t *
parse_subset_params(const char *dset)
{
struct subset_t *s = NULL;
- char * brace;
+ char *brace;
if (!dump_opts.disable_compact_subset && ((brace = HDstrrchr(dset, '[')) != NULL)) {
*brace++ = '\0';
@@ -723,7 +723,7 @@ parse_mask_list(const char *h_list)
int slength_value;
unsigned length_value;
unsigned long long temp_mask;
- const char * ptr = NULL;
+ const char *ptr = NULL;
/* sanity check */
if (h_list) {
@@ -1340,7 +1340,7 @@ main(int argc, char *argv[])
struct handler_t *hand = NULL;
int i;
unsigned u;
- char * fname = NULL;
+ char *fname = NULL;
h5tools_setprogname(PROGRAMNAME);
h5tools_setstatus(EXIT_SUCCESS);
diff --git a/tools/h5dump/h5dump.h b/tools/h5dump/h5dump.h
index 518d17f..7689477 100644
--- a/tools/h5dump/h5dump.h
+++ b/tools/h5dump/h5dump.h
@@ -39,9 +39,9 @@ typedef struct dump_functions_t {
typedef struct h5dump_table_items_t {
unsigned long fileno; /* File number that these tables refer to */
hid_t oid; /* ID of an object in this file, held open so fileno is consistent */
- table_t * group_table; /* Table of groups */
- table_t * dset_table; /* Table of datasets */
- table_t * type_table; /* Table of datatypes */
+ table_t *group_table; /* Table of groups */
+ table_t *dset_table; /* Table of datasets */
+ table_t *type_table; /* Table of datatypes */
} h5dump_table_items_t;
typedef struct h5dump_table_list_t {
@@ -51,13 +51,13 @@ typedef struct h5dump_table_list_t {
} h5dump_table_list_t;
h5dump_table_list_t table_list = {0, 0, NULL};
-table_t * group_table = NULL, *dset_table = NULL, *type_table = NULL;
+table_t *group_table = NULL, *dset_table = NULL, *type_table = NULL;
unsigned dump_indent = 0; /* how far in to indent the line */
int unamedtype = 0; /* shared datatype with no name */
hbool_t hit_elink = FALSE; /* whether we have traversed an external link */
size_t prefix_len = 1024;
-char * prefix = NULL;
+char *prefix = NULL;
const char *fp_format = NULL;
/* things to display or which are set via command line parameters */
diff --git a/tools/h5dump/h5dump_ddl.c b/tools/h5dump/h5dump_ddl.c
index 241f5f9..5394a06 100644
--- a/tools/h5dump/h5dump_ddl.c
+++ b/tools/h5dump/h5dump_ddl.c
@@ -47,7 +47,7 @@ void
dump_datatype(hid_t type)
{
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
ctx.indent_level = dump_indent / COL;
@@ -71,7 +71,7 @@ void
dump_dataspace(hid_t space)
{
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
ctx.indent_level = dump_indent / COL;
@@ -94,7 +94,7 @@ dump_attr_cb(hid_t oid, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED *
void H5_ATTR_UNUSED *_op_data)
{
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
h5tool_format_t string_dataformat;
hid_t attr_id;
@@ -156,10 +156,10 @@ dump_all_cb(hid_t group, const char *name, const H5L_info_t *linfo, void H5_ATTR
hid_t obj;
hid_t dapl_id = H5P_DEFAULT; /* dataset access property list ID */
herr_t ret = SUCCEED;
- char * obj_path = NULL; /* Full path of object */
+ char *obj_path = NULL; /* Full path of object */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -617,7 +617,7 @@ dump_named_datatype(hid_t tid, const char *name)
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
h5tool_format_t string_dataformat;
/* setup */
@@ -750,7 +750,7 @@ dump_group(hid_t gid, const char *name)
char type_name[1024];
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -898,7 +898,7 @@ void
dump_dataset(hid_t did, const char *name, struct subset_t *sset)
{
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
h5tool_format_t string_dataformat;
hid_t type, space;
unsigned attr_crt_order_flags;
@@ -1072,7 +1072,7 @@ void
dump_data(hid_t obj_id, int obj_data, struct subset_t *sset, int display_index)
{
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
h5tool_format_t string_dataformat;
int print_dataset = FALSE;
@@ -1247,11 +1247,11 @@ attr_search(hid_t oid, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED *a
{
herr_t ret = SUCCEED;
int j;
- char * obj_op_name;
- char * obj_name;
+ char *obj_op_name;
+ char *obj_name;
trav_attr_udata_t *attr_data = (trav_attr_udata_t *)_op_data;
- const char * buf = attr_data->path;
- const char * op_name = attr_data->op_name;
+ const char *buf = attr_data->path;
+ const char *op_name = attr_data->op_name;
j = (int)HDstrlen(op_name) - 1;
/* find the last / */
@@ -1302,7 +1302,7 @@ static herr_t
obj_search(const char *path, const H5O_info_t *oi, const char H5_ATTR_UNUSED *already_visited, void *_op_data)
{
trav_handle_udata_t *handle_data = (trav_handle_udata_t *)_op_data;
- const char * op_name = handle_data->op_name;
+ const char *op_name = handle_data->op_name;
trav_attr_udata_t attr_data;
attr_data.path = path;
@@ -1340,9 +1340,9 @@ lnk_search(const char *path, const H5L_info_t *li, void *_op_data)
{
size_t search_len;
size_t k;
- char * search_name;
+ char *search_name;
trav_handle_udata_t *handle_data = (trav_handle_udata_t *)_op_data;
- const char * op_name = handle_data->op_name;
+ const char *op_name = handle_data->op_name;
search_len = HDstrlen(op_name);
if (search_len > 0 && op_name[0] != '/')
@@ -1453,12 +1453,12 @@ handle_attributes(hid_t fid, const char *attr, void H5_ATTR_UNUSED *data, int H5
{
hid_t oid = H5I_INVALID_HID;
hid_t attr_id = H5I_INVALID_HID;
- char * obj_name = NULL;
- char * attr_name = NULL;
+ char *obj_name = NULL;
+ char *attr_name = NULL;
int j;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &h5tools_dataformat;
+ h5tool_format_t *outputformat = &h5tools_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -1597,7 +1597,7 @@ handle_datasets(hid_t fid, const char *dset, void *data, int pe, const char *dis
hid_t dsetid;
hid_t dapl_id = H5P_DEFAULT; /* dataset access property list ID */
struct subset_t *sset = (struct subset_t *)data;
- const char * real_name = display_name ? display_name : dset;
+ const char *real_name = display_name ? display_name : dset;
if ((dsetid = H5Dopen2(fid, dset, dapl_id)) < 0) {
if (pe)
@@ -1942,9 +1942,9 @@ dump_extlink(hid_t group, const char *linkname, const char *objname)
{
hid_t oid;
H5O_info_t oi;
- table_t * old_group_table = group_table;
- table_t * old_dset_table = dset_table;
- table_t * old_type_table = type_table;
+ table_t *old_group_table = group_table;
+ table_t *old_dset_table = dset_table;
+ table_t *old_type_table = type_table;
hbool_t old_hit_elink;
ssize_t idx;
diff --git a/tools/h5dump/h5dump_extern.h b/tools/h5dump/h5dump_extern.h
index c4eb2ed..e987181 100644
--- a/tools/h5dump/h5dump_extern.h
+++ b/tools/h5dump/h5dump_extern.h
@@ -42,20 +42,20 @@ typedef struct h5dump_table_list_t {
struct {
unsigned long fileno; /* File number that these tables refer to */
hid_t oid; /* ID of an object in this file, held open so fileno is consistent */
- table_t * group_table; /* Table of groups */
- table_t * dset_table; /* Table of datasets */
- table_t * type_table; /* Table of datatypes */
+ table_t *group_table; /* Table of groups */
+ table_t *dset_table; /* Table of datasets */
+ table_t *type_table; /* Table of datatypes */
} * tables;
} h5dump_table_list_t;
extern h5dump_table_list_t table_list;
-extern table_t * group_table, *dset_table, *type_table;
+extern table_t *group_table, *dset_table, *type_table;
extern unsigned dump_indent; /* how far in to indent the line */
extern int unamedtype; /* shared datatype with no name */
extern hbool_t hit_elink; /* whether we have traversed an external link */
extern size_t prefix_len;
-extern char * prefix;
+extern char *prefix;
extern const char *fp_format;
/* things to display or which are set via command line parameters */
diff --git a/tools/h5dump/h5dump_xml.c b/tools/h5dump/h5dump_xml.c
index dd27bb4..62f7cf1 100644
--- a/tools/h5dump/h5dump_xml.c
+++ b/tools/h5dump/h5dump_xml.c
@@ -133,10 +133,10 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info_t *linfo, void H5_
{
hid_t obj;
herr_t ret = SUCCEED;
- char * obj_path = NULL; /* Full path of object */
+ char *obj_path = NULL; /* Full path of object */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -643,8 +643,8 @@ xml_escape_the_name(const char *str)
size_t len;
size_t i;
const char *cp;
- char * ncp;
- char * rcp;
+ char *ncp;
+ char *rcp;
size_t ncp_len;
if (!str)
@@ -733,8 +733,8 @@ xml_escape_the_string(const char *str, int slen)
size_t len;
size_t i;
const char *cp = NULL;
- char * ncp = NULL;
- char * rcp = NULL;
+ char *ncp = NULL;
+ char *rcp = NULL;
size_t ncp_len;
if (!str)
@@ -835,7 +835,7 @@ xml_escape_the_string(const char *str, int slen)
static void
xml_print_datatype(hid_t type, unsigned in_group)
{
- char * mname;
+ char *mname;
hid_t mtype;
unsigned nmembers;
unsigned ndims;
@@ -857,7 +857,7 @@ xml_print_datatype(hid_t type, unsigned in_group)
htri_t is_vlstr = FALSE;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -887,7 +887,7 @@ xml_print_datatype(hid_t type, unsigned in_group)
if (!in_group && H5Tcommitted(type) > 0) {
H5O_info_t oinfo;
- obj_t * found_obj; /* Found object */
+ obj_t *found_obj; /* Found object */
/* detect a shared datatype, output only once */
H5Oget_info(type, &oinfo);
@@ -1555,7 +1555,7 @@ xml_dump_datatype(hid_t type)
{
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -1588,7 +1588,7 @@ xml_dump_datatype(hid_t type)
if (H5Tcommitted(type) > 0) {
H5O_info_t oinfo;
- obj_t * found_obj; /* Found object */
+ obj_t *found_obj; /* Found object */
/* Datatype is a shared or named datatype */
H5Oget_info(type, &oinfo);
@@ -1687,7 +1687,7 @@ xml_dump_dataspace(hid_t space)
int i;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -1866,7 +1866,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset,
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
@@ -2033,7 +2033,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
char *t_aname = xml_escape_the_name(attr_name);
@@ -2349,14 +2349,14 @@ xml_dump_named_datatype(hid_t type, const char *name)
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
- char * tmp;
- char * dtxid;
- char * parentxid;
- char * t_tmp;
- char * t_prefix;
- char * t_name;
+ char *tmp;
+ char *dtxid;
+ char *parentxid;
+ char *t_tmp;
+ char *t_prefix;
+ char *t_name;
tmp = (char *)HDmalloc(HDstrlen(prefix) + HDstrlen(name) + 2);
HDstrcpy(tmp, prefix);
@@ -2550,14 +2550,14 @@ xml_dump_group(hid_t gid, const char *name)
unsigned attr_crt_order_flags;
int isRoot = 0;
char type_name[1024];
- char * t_objname = NULL;
- char * par_name = NULL;
- char * cp = NULL;
- char * tmp = NULL;
- char * par = NULL;
+ char *t_objname = NULL;
+ char *par_name = NULL;
+ char *cp = NULL;
+ char *tmp = NULL;
+ char *par = NULL;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -2914,11 +2914,11 @@ xml_print_refs(hid_t did, int source)
hssize_t ssiz = -1;
hsize_t i;
size_t tsiz;
- hobj_ref_t * refbuf = NULL;
- char * buf = NULL;
+ hobj_ref_t *refbuf = NULL;
+ char *buf = NULL;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -3069,12 +3069,12 @@ xml_print_strs(hid_t did, int source)
size_t tsiz = 0;
hsize_t i;
size_t str_size = 0;
- char * bp = NULL;
- char * onestring = NULL;
- void * buf = NULL;
+ char *bp = NULL;
+ char *onestring = NULL;
+ void *buf = NULL;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -3238,7 +3238,7 @@ check_filters(hid_t dcpl)
unsigned int flags;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -3375,11 +3375,11 @@ xml_dump_fill_value(hid_t dcpl, hid_t type)
size_t sz;
size_t i;
hsize_t space;
- void * buf;
- char * name;
+ void *buf;
+ char *name;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -3722,20 +3722,20 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss
hid_t dcpl;
H5D_fill_value_t fvstatus;
int maxdims;
- hsize_t * chsize;
+ hsize_t *chsize;
int ndims;
int i;
H5D_alloc_time_t at;
H5D_fill_time_t ft;
hsize_t tempi;
- char * tmp;
- char * t_name;
- char * t_tmp;
- char * t_prefix;
+ char *tmp;
+ char *t_name;
+ char *t_tmp;
+ char *t_prefix;
unsigned attr_crt_order_flags;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
@@ -4325,8 +4325,8 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss
static void
xml_print_enum(hid_t type)
{
- char ** name = NULL; /*member names */
- unsigned char * value = NULL; /*value array */
+ char **name = NULL; /*member names */
+ unsigned char *value = NULL; /*value array */
unsigned nmembs; /*number of members */
hid_t super; /*enum base integer type */
hid_t native = H5I_INVALID_HID; /*native integer datatype */
@@ -4335,7 +4335,7 @@ xml_print_enum(hid_t type)
size_t j;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * outputformat = &xml_dataformat;
+ h5tool_format_t *outputformat = &xml_dataformat;
h5tool_format_t string_dataformat;
hsize_t curr_pos = 0; /* total data element position */
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index 1272ba2..13ebe7f 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -435,10 +435,10 @@ gent_dataset(void)
{
hid_t fid, dataset, space;
hsize_t dims[2];
- int ** dset1 = NULL;
- int * dset1_data = NULL;
+ int **dset1 = NULL;
+ int *dset1_data = NULL;
double **dset2 = NULL;
- double * dset2_data = NULL;
+ double *dset2_data = NULL;
int i, j;
/* Set up data arrays */
@@ -1776,7 +1776,7 @@ gent_str(void)
} compound_t;
compound_t **comp1 = NULL;
- compound_t * comp1_data = NULL;
+ compound_t *comp1_data = NULL;
hsize_t mdims[2];
/* Set up data array */
@@ -2092,7 +2092,7 @@ gent_objref(void)
hobj_ref_t *wbuf, /* buffer to write to disk */
*rbuf, /* buffer read from disk */
*tbuf; /* temp. buffer read from disk */
- uint32_t * tu32; /* Temporary pointer to uint32 data */
+ uint32_t *tu32; /* Temporary pointer to uint32 data */
int i; /* counting variables */
const char *write_comment = "Foo!"; /* Comments for group */
@@ -2325,9 +2325,9 @@ gent_attrreg(void)
hsize_t coord1[POINT1_NPOINTS][SPACE2_RANK]; /* Coordinates for point selection */
hdset_reg_ref_t *wbuf; /* buffer to write to disk */
hdset_reg_ref_t *rbuf; /* buffer read from disk */
- uint8_t * dwbuf; /* Buffer for writing numeric data to disk */
- uint8_t * drbuf; /* Buffer for reading numeric data from disk */
- uint8_t * tu8; /* Temporary pointer to uint8 data */
+ uint8_t *dwbuf; /* Buffer for writing numeric data to disk */
+ uint8_t *drbuf; /* Buffer for reading numeric data from disk */
+ uint8_t *tu8; /* Temporary pointer to uint8 data */
int i; /* counting variables */
/* Allocate write & read buffers */
@@ -2741,7 +2741,7 @@ static void
gent_vldatatypes2(void)
{
hvl_t wdata[SPACE1_DIM1]; /* Information to write */
- hvl_t * t1; /* Temporary pointer to VL information */
+ hvl_t *t1; /* Temporary pointer to VL information */
hid_t fid1; /* HDF5 File IDs */
hid_t dataset; /* Dataset ID */
hid_t sid1; /* Dataspace ID */
@@ -3019,7 +3019,7 @@ gent_vldatatypes5(void)
static void
gent_array1_big(void)
{
- int * wdata; /* Information to write */
+ int *wdata; /* Information to write */
hid_t fid1; /* HDF5 File IDs */
hid_t dataset; /* Dataset ID */
hid_t sid1; /* Dataspace ID */
@@ -3929,10 +3929,10 @@ gent_char(void)
"men are created equal. Now we are engaged in a great "
"civil war, testing whether that nation or any nation "
"so conceived and so dedicated can long endure.";
- hid_t fid1; /* HDF5 File IDs */
- hid_t dataset; /* Dataset ID */
- hid_t sid1; /* Dataspace ID */
- hsize_t dims1[1];
+ hid_t fid1; /* HDF5 File IDs */
+ hid_t dataset; /* Dataset ID */
+ hid_t sid1; /* Dataspace ID */
+ hsize_t dims1[1];
dims1[0] = HDstrlen(wdata);
@@ -6182,7 +6182,7 @@ gent_longlinks(void)
hid_t fid = (-1); /* File ID */
hid_t gid = (-1); /* Group ID */
hid_t gid2 = (-1); /* Datatype ID */
- char * objname = NULL; /* Name of object [Long] */
+ char *objname = NULL; /* Name of object [Long] */
size_t u; /* Local index variable */
/* Create files */
@@ -6404,7 +6404,7 @@ gent_bigdims(void)
hsize_t hs_size[1]; /* hyperslab dimensions */
size_t size;
char fillvalue = 0;
- char * buf = NULL;
+ char *buf = NULL;
hsize_t i;
char c;
size_t nelmts;
@@ -8325,15 +8325,15 @@ gent_intscalars(void)
hid_t tid = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -8568,15 +8568,15 @@ gent_attr_intscalars(void)
hid_t tid = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -9342,15 +9342,15 @@ gent_intattrscalars(void)
hid_t tid = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -9620,25 +9620,25 @@ gent_intsattrs(void)
hid_t aspace = H5I_INVALID_HID;
hsize_t dims[2], adims[1];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
- uint8_t * asetu8 = NULL;
+ uint8_t *asetu8 = NULL;
uint16_t *asetu16 = NULL;
uint32_t *asetu32 = NULL;
uint64_t *asetu64 = NULL;
- int8_t * aset8 = NULL;
- int16_t * aset16 = NULL;
- int32_t * aset32 = NULL;
- int64_t * aset64 = NULL;
- double * asetdbl = NULL;
+ int8_t *aset8 = NULL;
+ int16_t *aset16 = NULL;
+ int32_t *aset32 = NULL;
+ int64_t *aset64 = NULL;
+ double *asetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -9962,12 +9962,12 @@ gent_floatsattrs(void)
hid_t aspace = H5I_INVALID_HID;
hsize_t dims[2], adims[1];
- float ** dset32 = NULL;
- double ** dset64 = NULL;
+ float **dset32 = NULL;
+ double **dset64 = NULL;
long double **dset128 = NULL;
- float * aset32 = NULL;
- double * aset64 = NULL;
+ float *aset32 = NULL;
+ double *aset64 = NULL;
long double *aset128 = NULL;
float val32bits;
@@ -10786,7 +10786,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */