summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5diff.c22
-rw-r--r--tools/lib/h5diff.h6
-rw-r--r--tools/lib/h5diff_array.c14
-rw-r--r--tools/lib/h5diff_attr.c10
-rw-r--r--tools/lib/h5diff_dset.c8
-rw-r--r--tools/lib/h5tools.c20
-rw-r--r--tools/lib/h5tools.h44
-rw-r--r--tools/lib/h5tools_dump.c60
-rw-r--r--tools/lib/h5tools_ref.c2
-rw-r--r--tools/lib/h5tools_str.c14
-rw-r--r--tools/lib/h5tools_str.h12
-rw-r--r--tools/lib/h5tools_utils.c26
-rw-r--r--tools/lib/h5tools_utils.h6
-rw-r--r--tools/lib/h5trav.c20
-rw-r--r--tools/lib/h5trav.h16
-rw-r--r--tools/libtest/h5tools_test_utils.c72
-rw-r--r--tools/src/h5copy/h5copy.c12
-rw-r--r--tools/src/h5diff/h5diff_common.c8
-rw-r--r--tools/src/h5dump/h5dump.c16
-rw-r--r--tools/src/h5dump/h5dump.h10
-rw-r--r--tools/src/h5dump/h5dump_ddl.c46
-rw-r--r--tools/src/h5dump/h5dump_extern.h10
-rw-r--r--tools/src/h5dump/h5dump_xml.c96
-rw-r--r--tools/src/h5format_convert/h5format_convert.c2
-rw-r--r--tools/src/h5import/h5import.c32
-rw-r--r--tools/src/h5import/h5import.h8
-rw-r--r--tools/src/h5jam/h5jam.c2
-rw-r--r--tools/src/h5jam/h5unjam.c2
-rw-r--r--tools/src/h5ls/h5ls.c52
-rw-r--r--tools/src/h5perf/perf.c8
-rw-r--r--tools/src/h5perf/pio_engine.c40
-rw-r--r--tools/src/h5perf/pio_perf.c30
-rw-r--r--tools/src/h5perf/pio_perf.h2
-rw-r--r--tools/src/h5perf/sio_engine.c12
-rw-r--r--tools/src/h5perf/sio_perf.c20
-rw-r--r--tools/src/h5perf/sio_perf.h2
-rw-r--r--tools/src/h5repack/h5repack.c8
-rw-r--r--tools/src/h5repack/h5repack.h8
-rw-r--r--tools/src/h5repack/h5repack_copy.c8
-rw-r--r--tools/src/h5repack/h5repack_filters.c20
-rw-r--r--tools/src/h5repack/h5repack_main.c2
-rw-r--r--tools/src/h5repack/h5repack_refs.c14
-rw-r--r--tools/src/h5repack/h5repack_verify.c4
-rw-r--r--tools/src/h5stat/h5stat.c8
-rw-r--r--tools/src/misc/h5clear.c6
-rw-r--r--tools/src/misc/h5debug.c4
-rw-r--r--tools/src/misc/h5mkgrp.c6
-rw-r--r--tools/src/misc/h5repart.c6
-rw-r--r--tools/test/h5copy/dynlib_copy.c2
-rw-r--r--tools/test/h5copy/h5copygentest.c2
-rw-r--r--tools/test/h5diff/dynlib_diff.c2
-rw-r--r--tools/test/h5diff/h5diffgentest.c66
-rw-r--r--tools/test/h5dump/binread.c4
-rw-r--r--tools/test/h5dump/dynlib_dump.c2
-rw-r--r--tools/test/h5dump/h5dumpgentest.c132
-rw-r--r--tools/test/h5format_convert/h5fc_chk_idx.c4
-rw-r--r--tools/test/h5jam/getub.c6
-rw-r--r--tools/test/h5jam/h5jamgentest.c4
-rw-r--r--tools/test/h5jam/tellub.c4
-rw-r--r--tools/test/h5ls/dynlib_ls.c2
-rw-r--r--tools/test/h5repack/dynlib_rpk.c2
-rw-r--r--tools/test/h5repack/dynlib_vrpk.c2
-rw-r--r--tools/test/h5repack/h5repacktst.c26
-rw-r--r--tools/test/misc/h5clear_gentest.c2
-rw-r--r--tools/test/misc/h5perf_gentest.c16
-rw-r--r--tools/test/misc/h5repart_gentest.c2
-rw-r--r--tools/test/misc/vds/UC_1_one_dim_gen.c2
-rw-r--r--tools/test/misc/vds/UC_2_two_dims_gen.c2
-rw-r--r--tools/test/perform/chunk.c2
-rw-r--r--tools/test/perform/chunk_cache.c4
-rw-r--r--tools/test/perform/direct_write_perf.c2
-rw-r--r--tools/test/perform/overhead.c2
-rw-r--r--tools/test/perform/pio_standalone.h4
-rw-r--r--tools/test/perform/sio_standalone.h4
-rw-r--r--tools/test/perform/zip_perf.c10
75 files changed, 583 insertions, 585 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 2275c72..d75e14b 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -342,8 +342,8 @@ build_match_list(const char *objname1, trav_info_t *info1, const char *objname2,
size_t curr1 = 0;
size_t curr2 = 0;
unsigned infile[2];
- char * path1_lp = NULL;
- char * path2_lp = NULL;
+ char *path1_lp = NULL;
+ char *path2_lp = NULL;
h5trav_type_t type1_l;
h5trav_type_t type2_l;
size_t path1_offset = 0;
@@ -486,11 +486,11 @@ trav_grp_objs(const char *path, const H5O_info2_t *oinfo, const char *already_vi
static herr_t
trav_grp_symlinks(const char *path, const H5L_info2_t *linfo, void *udata)
{
- trav_info_t * tinfo = (trav_info_t *)udata;
- diff_opt_t * opts = (diff_opt_t *)tinfo->opts;
+ trav_info_t *tinfo = (trav_info_t *)udata;
+ diff_opt_t *opts = (diff_opt_t *)tinfo->opts;
h5tool_link_info_t lnk_info;
- const char * ext_fname;
- const char * ext_path;
+ const char *ext_fname;
+ const char *ext_path;
herr_t ret_value = SUCCEED;
H5TOOLS_START_DEBUG(" ");
@@ -601,8 +601,8 @@ h5diff(const char *fname1, const char *fname2, const char *objname1, const char
hsize_t nfound = 0;
int l_ret1 = -1;
int l_ret2 = -1;
- char * obj1fullname = NULL;
- char * obj2fullname = NULL;
+ char *obj1fullname = NULL;
+ char *obj2fullname = NULL;
int both_objs_grp = 0;
/* init to group type */
h5trav_type_t obj1type = H5TRAV_TYPE_GROUP;
@@ -1103,8 +1103,8 @@ diff_match(hid_t file1_id, const char *grp1, trav_info_t *info1, hid_t file2_id,
unsigned i;
const char *grp1_path = "";
const char *grp2_path = "";
- char * obj1_fullpath = NULL;
- char * obj2_fullpath = NULL;
+ char *obj1_fullpath = NULL;
+ char *obj2_fullpath = NULL;
diff_args_t argdata;
size_t idx1 = 0;
size_t idx2 = 0;
@@ -1153,7 +1153,7 @@ diff_match(hid_t file1_id, const char *grp1, trav_info_t *info1, hid_t file2_id,
*/
#ifdef H5_HAVE_PARALLEL
{
- char * workerTasks = (char *)HDmalloc((size_t)(g_nTasks - 1) * sizeof(char));
+ char *workerTasks = (char *)HDmalloc((size_t)(g_nTasks - 1) * sizeof(char));
int n;
int busyTasks = 0;
struct diffs_found nFoundbyWorker;
diff --git a/tools/lib/h5diff.h b/tools/lib/h5diff.h
index 87eff98..2589198 100644
--- a/tools/lib/h5diff.h
+++ b/tools/lib/h5diff.h
@@ -36,7 +36,7 @@ typedef struct {
*/
/* linked list to keep exclude path list */
struct exclude_path_list {
- const char * obj_path;
+ const char *obj_path;
h5trav_type_t obj_type;
struct exclude_path_list *next;
};
@@ -86,8 +86,8 @@ typedef struct {
hsize_t acc[H5S_MAX_RANK]; /* accumulator position */
hsize_t pos[H5S_MAX_RANK]; /* matrix position */
hsize_t sm_pos[H5S_MAX_RANK]; /* stripmine position */
- char * obj_name[2]; /* name for object */
- struct subset_t * sset[2]; /* subsetting parameters */
+ char *obj_name[2]; /* name for object */
+ struct subset_t *sset[2]; /* subsetting parameters */
h5tools_vol_info_t vol_info[2]; /* VOL information for input file, output file */
hbool_t custom_vol[2]; /* Using a custom input, output VOL? */
} diff_opt_t;
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c
index e8cfacb..b595938 100644
--- a/tools/lib/h5diff_array.c
+++ b/tools/lib/h5diff_array.c
@@ -117,8 +117,8 @@ static hbool_t not_comparable;
typedef struct mcomp_t {
unsigned n; /* number of members */
- hid_t * ids; /* member type id */
- size_t * offsets;
+ hid_t *ids; /* member type id */
+ size_t *offsets;
struct mcomp_t **m; /* members */
} mcomp_t;
@@ -505,10 +505,10 @@ diff_datum(void *_mem1, void *_mem2, hsize_t elemtno, diff_opt_t *opts, hid_t co
case H5T_STRING:
H5TOOLS_DEBUG("H5T_STRING");
{
- char * s = NULL;
- char * sx = NULL;
- char * s1 = NULL;
- char * s2 = NULL;
+ char *s = NULL;
+ char *sx = NULL;
+ char *s1 = NULL;
+ char *s2 = NULL;
size_t size1;
size_t size2;
size_t sizex;
@@ -1425,7 +1425,7 @@ diff_region(hid_t obj1_id, hid_t obj2_id, hid_t region1_id, hid_t region2_id, di
/* print differences if found */
if (nfound_b && opts->mode_verbose) {
H5O_info2_t oi1, oi2;
- char * obj1_str = NULL, *obj2_str = NULL;
+ char *obj1_str = NULL, *obj2_str = NULL;
H5Oget_info3(obj1_id, &oi1, H5O_INFO_BASIC);
H5Oget_info3(obj2_id, &oi2, H5O_INFO_BASIC);
diff --git a/tools/lib/h5diff_attr.c b/tools/lib/h5diff_attr.c
index 63b6d8f..a5276d8 100644
--- a/tools/lib/h5diff_attr.c
+++ b/tools/lib/h5diff_attr.c
@@ -19,7 +19,7 @@
#define ATTR_NAME_MAX 255
typedef struct table_attr_t {
- char * name;
+ char *name;
unsigned exist[2];
} match_attr_t;
@@ -334,8 +334,8 @@ diff_attr_data(hid_t attr1_id, hid_t attr2_id, const char *name1, const char *na
hid_t mtype2_id = H5I_INVALID_HID; /* memory data type ID */
size_t msize1; /* memory size of memory type */
size_t msize2; /* memory size of memory type */
- void * buf1 = NULL; /* data buffer */
- void * buf2 = NULL; /* data buffer */
+ void *buf1 = NULL; /* data buffer */
+ void *buf2 = NULL; /* data buffer */
hbool_t buf1hasdata = FALSE; /* buffer has data */
hbool_t buf2hasdata = FALSE; /* buffer has data */
int rank1; /* rank of dataset */
@@ -612,8 +612,8 @@ diff_attr(hid_t loc1_id, hid_t loc2_id, const char *path1, const char *path2, di
table_attrs_t *match_list_attrs = NULL;
hid_t attr1_id = H5I_INVALID_HID; /* attr ID */
hid_t attr2_id = H5I_INVALID_HID; /* attr ID */
- char * name1 = NULL;
- char * name2 = NULL;
+ char *name1 = NULL;
+ char *name2 = NULL;
unsigned u; /* Local index variable */
hsize_t nfound = 0;
hsize_t nfound_total = 0;
diff --git a/tools/lib/h5diff_dset.c b/tools/lib/h5diff_dset.c
index e6872f0..e86d995 100644
--- a/tools/lib/h5diff_dset.c
+++ b/tools/lib/h5diff_dset.c
@@ -182,10 +182,10 @@ diff_datasetid(hid_t did1, hid_t did2, const char *obj1_name, const char *obj2_n
hsize_t storage_size2;
hsize_t nfound = 0; /* number of differences found */
int can_compare = 1; /* do diff or not */
- void * buf1 = NULL;
- void * buf2 = NULL;
- void * sm_buf1 = NULL;
- void * sm_buf2 = NULL;
+ void *buf1 = NULL;
+ void *buf2 = NULL;
+ void *sm_buf1 = NULL;
+ void *sm_buf2 = NULL;
hid_t sm_space1 = H5I_INVALID_HID; /*stripmine data space */
hid_t sm_space2 = H5I_INVALID_HID; /*stripmine data space */
size_t need; /* bytes needed for malloc */
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 8c7d856..b938b69 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -30,8 +30,8 @@ int H5tools_INDENT_g = 0;
/* global variables */
H5E_auto2_t lib_func;
H5E_auto2_t tools_func;
-void * lib_edata;
-void * tools_edata;
+void *lib_edata;
+void *tools_edata;
hid_t H5tools_ERR_STACK_g = H5I_INVALID_HID;
hid_t H5tools_ERR_CLS_g = H5I_INVALID_HID;
@@ -590,7 +590,7 @@ h5tools_set_fapl_vol(hid_t fapl_id, h5tools_vol_info_t *vol_info)
{
htri_t connector_is_registered;
hid_t connector_id = H5I_INVALID_HID;
- void * connector_info = NULL;
+ void *connector_info = NULL;
herr_t ret_value = SUCCEED;
switch (vol_info->type) {
@@ -1315,8 +1315,8 @@ h5tools_render_element(FILE *stream, const h5tool_format_t *info, h5tools_contex
hsize_t elmt_counter)
{
hbool_t dimension_break = TRUE;
- char * s = NULL;
- char * section = NULL; /* a section of output */
+ char *s = NULL;
+ char *section = NULL; /* a section of output */
int secnum; /* section sequence number */
int multiline; /* datum was multiline */
@@ -1480,8 +1480,8 @@ h5tools_render_region_element(FILE *stream, const h5tool_format_t *info, h5tools
hsize_t local_elmt_counter, hsize_t elmt_counter)
{
hbool_t dimension_break = TRUE;
- char * s = NULL;
- char * section = NULL; /* a section of output */
+ char *s = NULL;
+ char *section = NULL; /* a section of output */
int secnum; /* section sequence number */
int multiline; /* datum was multiline */
@@ -1724,7 +1724,7 @@ render_bin_output(FILE *stream, hid_t container, hid_t tid, void *_mem, hsize_t
case H5T_STRING: {
unsigned int i;
H5T_str_t pad;
- char * s = NULL;
+ char *s = NULL;
unsigned char tempuchar;
H5TOOLS_DEBUG("H5T_STRING");
@@ -1932,7 +1932,7 @@ render_bin_output_region_data_blocks(hid_t region_id, FILE *stream, hid_t contai
unsigned jndx;
size_t type_size;
hid_t mem_space = H5I_INVALID_HID;
- void * region_buf = NULL;
+ void *region_buf = NULL;
hbool_t past_catch = FALSE;
hsize_t blkndx;
hid_t sid1 = H5I_INVALID_HID;
@@ -2096,7 +2096,7 @@ render_bin_output_region_data_points(hid_t region_space, hid_t region_id, FILE *
hsize_t *dims1 = NULL;
size_t type_size;
hid_t mem_space = H5I_INVALID_HID;
- void * region_buf = NULL;
+ void *region_buf = NULL;
int ret_value = 0;
H5TOOLS_START_DEBUG(" ");
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h
index e0cb491..9e3a5dd 100644
--- a/tools/lib/h5tools.h
+++ b/tools/lib/h5tools.h
@@ -353,11 +353,11 @@ typedef struct h5tool_format_t {
*
* listv: h5watch: vector containing info about the list of compound fields to be printed.
*/
- const char * cmpd_name;
- const char * cmpd_sep;
- const char * cmpd_pre;
- const char * cmpd_suf;
- const char * cmpd_end;
+ const char *cmpd_name;
+ const char *cmpd_sep;
+ const char *cmpd_pre;
+ const char *cmpd_suf;
+ const char *cmpd_end;
const struct H5LD_memb_t *const *cmpd_listv;
/*
@@ -513,7 +513,7 @@ typedef struct h5tool_format_t {
} h5tool_format_t;
typedef struct subset_d {
- hsize_t * data;
+ hsize_t *data;
unsigned int len;
} subset_d;
@@ -562,7 +562,7 @@ typedef struct h5tools_vol_info_t {
/* Field specifying either the connector's name or value (ID) */
union {
- const char * name;
+ const char *name;
H5VL_class_value_t value;
} u;
} h5tools_vol_info_t;
@@ -613,29 +613,29 @@ extern "C" {
H5TOOLS_DLLVAR const char *volnames[];
H5TOOLS_DLLVAR const char *drivernames[];
-H5TOOLS_DLLVAR h5tool_format_t h5tools_dataformat;
-H5TOOLS_DLLVAR const h5tools_dump_header_t h5tools_standardformat;
+H5TOOLS_DLLVAR h5tool_format_t h5tools_dataformat;
+H5TOOLS_DLLVAR const h5tools_dump_header_t h5tools_standardformat;
H5TOOLS_DLLVAR const h5tools_dump_header_t *h5tools_dump_header_format;
H5TOOLS_DLLVAR H5E_auto2_t lib_func;
H5TOOLS_DLLVAR H5E_auto2_t tools_func;
-H5TOOLS_DLLVAR void * lib_edata;
-H5TOOLS_DLLVAR void * tools_edata;
+H5TOOLS_DLLVAR void *lib_edata;
+H5TOOLS_DLLVAR void *tools_edata;
H5TOOLS_DLLVAR unsigned packed_bits_num; /* number of packed bits to display */
H5TOOLS_DLLVAR unsigned packed_data_offset; /* offset of packed bits to display */
H5TOOLS_DLLVAR unsigned packed_data_length; /* length of packed bits to display */
H5TOOLS_DLLVAR unsigned long long packed_data_mask; /* mask in which packed bits to display */
-H5TOOLS_DLLVAR FILE *rawattrstream; /* output stream for raw attribute data */
-H5TOOLS_DLLVAR FILE *rawdatastream; /* output stream for raw data */
-H5TOOLS_DLLVAR FILE *rawinstream; /* input stream for raw input */
-H5TOOLS_DLLVAR FILE *rawoutstream; /* output stream for raw output */
-H5TOOLS_DLLVAR FILE *rawerrorstream; /* output stream for raw error */
-H5TOOLS_DLLVAR int bin_output; /* binary output */
-H5TOOLS_DLLVAR int bin_form; /* binary form */
-H5TOOLS_DLLVAR int region_output; /* region output */
-H5TOOLS_DLLVAR int oid_output; /* oid output */
-H5TOOLS_DLLVAR int data_output; /* data output */
-H5TOOLS_DLLVAR int attr_data_output; /* attribute data output */
+H5TOOLS_DLLVAR FILE *rawattrstream; /* output stream for raw attribute data */
+H5TOOLS_DLLVAR FILE *rawdatastream; /* output stream for raw data */
+H5TOOLS_DLLVAR FILE *rawinstream; /* input stream for raw input */
+H5TOOLS_DLLVAR FILE *rawoutstream; /* output stream for raw output */
+H5TOOLS_DLLVAR FILE *rawerrorstream; /* output stream for raw error */
+H5TOOLS_DLLVAR int bin_output; /* binary output */
+H5TOOLS_DLLVAR int bin_form; /* binary form */
+H5TOOLS_DLLVAR int region_output; /* region output */
+H5TOOLS_DLLVAR int oid_output; /* oid output */
+H5TOOLS_DLLVAR int data_output; /* data output */
+H5TOOLS_DLLVAR int attr_data_output; /* attribute data output */
/* sort parameters */
H5TOOLS_DLLVAR H5_index_t sort_by; /* sort_by [creation_order | name] */
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 98f7c0f..77b4244 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -185,13 +185,13 @@ const h5tools_dump_header_t h5tools_standardformat = {
};
const h5tools_dump_header_t *h5tools_dump_header_format;
-table_t * h5dump_type_table = NULL; /* type table reference for datatype dump */
+table_t *h5dump_type_table = NULL; /* type table reference for datatype dump */
/* local prototypes */
static int h5tools_print_region_data_blocks(hid_t region_id, FILE *stream, const h5tool_format_t *info,
h5tools_context_t *cur_ctx,
- h5tools_str_t * buffer, /* string into which to render */
+ h5tools_str_t *buffer, /* string into which to render */
size_t ncols, unsigned ndims, hid_t type_id, hsize_t nblocks,
hsize_t *ptdata);
@@ -207,8 +207,8 @@ void h5tools_dump_subsetting_header(FILE *stream, const h5tool_format_t *info, h
static void h5tools_print_virtual_selection(hid_t vspace, FILE *stream, const h5tool_format_t *info,
h5tools_context_t *ctx, /* in,out */
- h5tools_str_t * buffer, /* string into which to render */
- hsize_t * curr_pos, /* total data element position */
+ h5tools_str_t *buffer, /* string into which to render */
+ hsize_t *curr_pos, /* total data element position */
size_t ncols);
void
@@ -349,8 +349,8 @@ h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info, h5tools_cont
hbool_t
h5tools_dump_region_attribute(hid_t region_id, FILE *stream, const h5tool_format_t *info,
h5tools_context_t *ctx, /* in,out */
- h5tools_str_t * buffer, /* string into which to render */
- hsize_t * curr_pos, /* total data element position */
+ h5tools_str_t *buffer, /* string into which to render */
+ hsize_t *curr_pos, /* total data element position */
size_t ncols, hsize_t region_elmt_counter, /* element counter */
hsize_t elmt_counter)
{
@@ -490,14 +490,14 @@ done:
static int
h5tools_print_region_data_blocks(hid_t region_id, FILE *stream, const h5tool_format_t *info,
h5tools_context_t *cur_ctx,
- h5tools_str_t * buffer, /* string into which to render */
+ h5tools_str_t *buffer, /* string into which to render */
size_t ncols, unsigned ndims, hid_t type_id, hsize_t nblocks,
hsize_t *ptdata)
{
hbool_t dimension_break = TRUE;
- hsize_t * dims1 = NULL;
- hsize_t * start = NULL;
- hsize_t * count = NULL;
+ hsize_t *dims1 = NULL;
+ hsize_t *start = NULL;
+ hsize_t *count = NULL;
hsize_t blkndx;
hsize_t total_size[H5S_MAX_RANK];
hsize_t elmtno; /* element index */
@@ -512,7 +512,7 @@ h5tools_print_region_data_blocks(hid_t region_id, FILE *stream, const h5tool_for
hid_t mem_space = H5I_INVALID_HID;
hid_t sid1 = H5I_INVALID_HID;
h5tools_context_t ctx;
- void * region_buf = NULL;
+ void *region_buf = NULL;
int ret_value = 0;
HDassert(info);
@@ -674,7 +674,7 @@ hbool_t
h5tools_dump_region_data_blocks(hid_t region_space, hid_t region_id, FILE *stream,
const h5tool_format_t *info, h5tools_context_t *ctx, /* in,out */
h5tools_str_t *buffer, /* string into which to render */
- hsize_t * curr_pos, /* total data element position */
+ hsize_t *curr_pos, /* total data element position */
size_t ncols, hsize_t region_elmt_counter, /* element counter */
hsize_t elmt_counter)
{
@@ -682,7 +682,7 @@ h5tools_dump_region_data_blocks(hid_t region_space, hid_t region_id, FILE *strea
hssize_t snblocks;
hsize_t nblocks;
hsize_t alloc_size;
- hsize_t * ptdata = NULL;
+ hsize_t *ptdata = NULL;
int sndims;
unsigned ndims;
hsize_t indx;
@@ -895,7 +895,7 @@ h5tools_print_region_data_points(hid_t region_space, hid_t region_id, FILE *stre
hsize_t npoints, hsize_t *ptdata)
{
hbool_t dimension_break = TRUE;
- hsize_t * dims1 = NULL;
+ hsize_t *dims1 = NULL;
hsize_t elmtno; /* element index */
hsize_t curr_pos = 0;
hsize_t total_size[H5S_MAX_RANK];
@@ -904,7 +904,7 @@ h5tools_print_region_data_points(hid_t region_space, hid_t region_id, FILE *stre
size_t type_size;
unsigned int region_flags; /* buffer extent flags */
hid_t mem_space = H5I_INVALID_HID;
- void * region_buf = NULL;
+ void *region_buf = NULL;
h5tools_context_t ctx;
hbool_t past_catch = FALSE;
int ret_value = 0;
@@ -1039,7 +1039,7 @@ h5tools_dump_region_data_points(hid_t region_space, hid_t region_id, FILE *strea
hssize_t snpoints;
hsize_t npoints;
hsize_t alloc_size;
- hsize_t * ptdata;
+ hsize_t *ptdata;
int sndims;
unsigned ndims;
hsize_t indx;
@@ -1257,10 +1257,10 @@ done:
static herr_t
h5tools_print_simple_subset(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t dset,
hid_t p_type, hid_t f_space, hsize_t hyperslab_count,
- hsize_t * temp_start, /* start inside offset count loop */
- hsize_t * temp_count, /* count inside offset count loop */
- hsize_t * temp_block, /* block size used in loop */
- hsize_t * temp_stride, /* stride size used in loop */
+ hsize_t *temp_start, /* start inside offset count loop */
+ hsize_t *temp_count, /* count inside offset count loop */
+ hsize_t *temp_block, /* block size used in loop */
+ hsize_t *temp_stride, /* stride size used in loop */
const hsize_t *total_size, /* total size of dataset */
unsigned int row_dim) /* index of row_counter dimension */
{
@@ -2058,7 +2058,7 @@ int
h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer, const h5tool_format_t *info,
h5tools_context_t *ctx, hid_t type, int object_search)
{
- char * mname;
+ char *mname;
hid_t mtype = H5I_INVALID_HID;
hid_t str_type = H5I_INVALID_HID;
hid_t super = H5I_INVALID_HID;
@@ -2087,7 +2087,7 @@ h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer, const h5tool_format_
H5TOOLS_THROW((-1), "H5Tget_class failed");
if (object_search && H5Tcommitted(type) > 0) {
H5O_info2_t oinfo;
- obj_t * obj = NULL; /* Found object */
+ obj_t *obj = NULL; /* Found object */
H5Oget_info3(type, &oinfo, H5O_INFO_BASIC);
obj = search_obj(h5dump_type_table, &oinfo.token);
@@ -2740,7 +2740,7 @@ int
h5tools_print_enum(FILE *stream, h5tools_str_t *buffer, const h5tool_format_t *info, h5tools_context_t *ctx,
hid_t type)
{
- char ** name = NULL; /*member names */
+ char **name = NULL; /*member names */
unsigned char *value = NULL; /*value array */
unsigned char *copy = NULL; /*a pointer to value array */
unsigned i;
@@ -3013,8 +3013,8 @@ h5tools_dump_oid(FILE *stream, const h5tool_format_t *info, h5tools_context_t *c
static void
h5tools_print_virtual_selection(hid_t vspace, FILE *stream, const h5tool_format_t *info,
h5tools_context_t *ctx, /* in,out*/
- h5tools_str_t * buffer, /* string into which to render */
- hsize_t * curr_pos, /* total data element position */
+ h5tools_str_t *buffer, /* string into which to render */
+ hsize_t *curr_pos, /* total data element position */
size_t ncols)
{
switch (H5Sget_select_type(vspace)) {
@@ -3092,7 +3092,7 @@ h5tools_print_fill_value(h5tools_str_t *buffer /*in,out*/, const h5tool_format_t
{
size_t size;
hid_t n_type = H5I_INVALID_HID;
- void * buf = NULL;
+ void *buf = NULL;
n_type = H5Tget_native_type(type_id, H5T_DIR_DEFAULT);
@@ -3202,7 +3202,7 @@ h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
for (i = 0; i < nfilters && !ok; i++) {
cd_nelmts = NELMTS(cd_values);
filtn = H5Pget_filter2(dcpl_id, (unsigned)i, &filt_flags, &cd_nelmts, cd_values,
- sizeof(f_name), f_name, NULL);
+ sizeof(f_name), f_name, NULL);
ok = (filtn >= 0);
}
@@ -3479,7 +3479,7 @@ h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
for (i = 0; i < nfilters; i++) {
cd_nelmts = NELMTS(cd_values);
filtn = H5Pget_filter2(dcpl_id, (unsigned)i, &filt_flags, &cd_nelmts, cd_values,
- sizeof(f_name), f_name, NULL);
+ sizeof(f_name), f_name, NULL);
if (filtn < 0)
continue; /* nothing to print for invalid filter */
@@ -3767,7 +3767,7 @@ h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
void
h5tools_dump_comment(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t obj_id)
{
- char * comment = NULL;
+ char *comment = NULL;
ssize_t cmt_bufsize = -1;
size_t buf_size = 0;
size_t ncols = 80; /* available output width */
@@ -4303,7 +4303,7 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
size_t ncols = 80; /* available output width */
h5tool_format_t string_dataformat;
h5tool_format_t outputformat;
- H5R_ref_t * ref_buf = NULL;
+ H5R_ref_t *ref_buf = NULL;
H5TOOLS_START_DEBUG(" file=%p", (void *)stream);
H5TOOLS_DEBUG("rawdata file=%p", (void *)rawdatastream);
diff --git a/tools/lib/h5tools_ref.c b/tools/lib/h5tools_ref.c
index 1c97a52..c68f64c 100644
--- a/tools/lib/h5tools_ref.c
+++ b/tools/lib/h5tools_ref.c
@@ -35,7 +35,7 @@
typedef struct {
H5O_token_t obj_token; /* Object token */
- char * path; /* Object path */
+ char *path; /* Object path */
} ref_path_node_t;
static H5SL_t *ref_path_table = NULL; /* the "table" (implemented with a skip list) */
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index daeeb95..2bf9b4a 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -44,7 +44,7 @@ typedef struct H5LD_memb_t {
/* Variable length string datatype */
#define STR_INIT_LEN 4096 /*initial length */
-static char * h5tools_escape(char *s, size_t size);
+static char *h5tools_escape(char *s, size_t size);
static hbool_t h5tools_str_is_zero(const void *_mem, size_t size);
static void h5tools_print_char(h5tools_str_t *str, const h5tool_format_t *info, char ch);
void h5tools_str_indent(h5tools_str_t *str, const h5tool_format_t *info, h5tools_context_t *ctx);
@@ -648,15 +648,15 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
{
size_t nsize, offset, size = 0, nelmts, start;
H5T_sign_t nsign;
- char * name = NULL;
+ char *name = NULL;
unsigned char *ucp_vp = (unsigned char *)vp;
- char * cp_vp = (char *)vp;
+ char *cp_vp = (char *)vp;
hid_t memb = H5I_INVALID_HID;
hid_t obj = H5I_INVALID_HID;
static char fmt_llong[8], fmt_ullong[8];
H5T_str_t pad;
H5T_class_t type_class;
- char * ret_value = NULL;
+ char *ret_value = NULL;
H5TOOLS_START_DEBUG(" ");
/* Build default formats for long long types */
@@ -727,7 +727,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
case H5T_STRING: {
unsigned int i;
char quote = '\0';
- char * s;
+ char *s;
H5TOOLS_DEBUG("H5T_STRING");
quote = '\0';
@@ -1080,7 +1080,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
case H5R_OBJECT1: {
/* Object references -- show the type and OID of the referenced object. */
H5O_info2_t oi;
- char * obj_tok_str = NULL;
+ char *obj_tok_str = NULL;
H5TOOLS_DEBUG("ref_type is H5R_OBJECT1");
if ((obj = H5Ropen_object(ref_vp, H5P_DEFAULT, H5P_DEFAULT)) >= 0) {
@@ -1190,7 +1190,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
* Object references -- show the type and OID of the referenced object.
*/
H5O_info2_t oi;
- char * obj_tok_str = NULL;
+ char *obj_tok_str = NULL;
H5TOOLS_DEBUG("H5T_REFERENCE:H5T_STD_REF_OBJ");
obj = H5Rdereference2(container, H5P_DEFAULT, H5R_OBJECT, vp);
diff --git a/tools/lib/h5tools_str.h b/tools/lib/h5tools_str.h
index 27adf46..30c588f 100644
--- a/tools/lib/h5tools_str.h
+++ b/tools/lib/h5tools_str.h
@@ -19,18 +19,18 @@
#define H5TOOLS_STR_H
typedef struct h5tools_str_t {
- char * s; /*allocate string */
+ char *s; /*allocate string */
size_t len; /*length of actual value */
size_t nalloc; /*allocated size of string */
} h5tools_str_t;
H5TOOLS_DLL void h5tools_str_close(h5tools_str_t *str);
H5TOOLS_DLL size_t h5tools_str_len(h5tools_str_t *str);
-H5TOOLS_DLL char * h5tools_str_append(h5tools_str_t *str, const char *fmt, ...);
-H5TOOLS_DLL char * h5tools_str_reset(h5tools_str_t *str);
-H5TOOLS_DLL char * h5tools_str_trunc(h5tools_str_t *str, size_t size);
-H5TOOLS_DLL char * h5tools_str_fmt(h5tools_str_t *str, size_t start, const char *fmt);
-H5TOOLS_DLL char * h5tools_str_prefix(h5tools_str_t *str, const h5tool_format_t *info, hsize_t elmtno,
+H5TOOLS_DLL char *h5tools_str_append(h5tools_str_t *str, const char *fmt, ...);
+H5TOOLS_DLL char *h5tools_str_reset(h5tools_str_t *str);
+H5TOOLS_DLL char *h5tools_str_trunc(h5tools_str_t *str, size_t size);
+H5TOOLS_DLL char *h5tools_str_fmt(h5tools_str_t *str, size_t start, const char *fmt);
+H5TOOLS_DLL char *h5tools_str_prefix(h5tools_str_t *str, const h5tool_format_t *info, hsize_t elmtno,
h5tools_context_t *ctx);
/*
* new functions needed to display region reference data
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index 84d99ca..76d0aac 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -49,7 +49,7 @@ hsize_t H5TOOLS_BUFSIZE = (32 * 1024 * 1024); /* 32 MB */
unsigned char g_Parallel = 0; /*0 for serial, 1 for parallel */
char outBuff[OUTBUFF_SIZE];
unsigned outBuffOffset;
-FILE * overflow_file = NULL;
+FILE *overflow_file = NULL;
/* local functions */
static void init_table(hid_t fid, table_t **tbl);
@@ -196,7 +196,7 @@ get_option(int argc, const char *const *argv, const char *opts, const struct lon
/* long command line option */
int i;
const char ch = '=';
- char * arg = HDstrdup(&argv[opt_ind][2]);
+ char *arg = HDstrdup(&argv[opt_ind][2]);
size_t arg_len = 0;
opt_arg = strchr(&argv[opt_ind][2], ch);
@@ -389,12 +389,12 @@ get_option(int argc, const char *const *argv, const char *opts, const struct lon
herr_t
parse_tuple(const char *start, int sep, char **cpy_out, unsigned *nelems, char ***ptrs_out)
{
- char * elem_ptr = NULL;
- char * dest_ptr = NULL;
+ char *elem_ptr = NULL;
+ char *dest_ptr = NULL;
unsigned elems_count = 0;
- char ** elems = NULL; /* more like *elems[], but compiler... */
- char ** elems_re = NULL; /* temporary pointer, for realloc */
- char * cpy = NULL;
+ char **elems = NULL; /* more like *elems[], but compiler... */
+ char **elems_re = NULL; /* temporary pointer, for realloc */
+ char *cpy = NULL;
herr_t ret_value = SUCCEED;
unsigned init_slots = 2;
@@ -632,7 +632,7 @@ static void
dump_table(hid_t fid, char *tablename, table_t *table)
{
unsigned u;
- char * obj_tok_str = NULL;
+ char *obj_tok_str = NULL;
PRINTSTREAM(rawoutstream, "%s: # of entries = %d\n", tablename, table->nobjs);
for (u = 0; u < table->nobjs; u++) {
@@ -673,7 +673,7 @@ dump_tables(find_objs_t *info)
*-------------------------------------------------------------------------
*/
H5_ATTR_PURE obj_t *
- search_obj(table_t *table, const H5O_token_t *obj_token)
+search_obj(table_t *table, const H5O_token_t *obj_token)
{
unsigned u;
int token_cmp;
@@ -1076,8 +1076,8 @@ h5tools_parse_ros3_fapl_tuple(const char *tuple_str, int delim, H5FD_ros3_fapl_t
{
const char *ccred[3];
unsigned nelems = 0;
- char * s3cred_src = NULL;
- char ** s3cred = NULL;
+ char *s3cred_src = NULL;
+ char **s3cred = NULL;
herr_t ret_value = SUCCEED;
/* Attempt to parse S3 credentials tuple */
@@ -1295,8 +1295,8 @@ h5tools_parse_hdfs_fapl_tuple(const char *tuple_str, int delim, H5FD_hdfs_fapl_t
{
unsigned long k = 0;
unsigned nelems = 0;
- char * props_src = NULL;
- char ** props = NULL;
+ char *props_src = NULL;
+ char **props = NULL;
herr_t ret_value = SUCCEED;
/* Attempt to parse HDFS configuration tuple */
diff --git a/tools/lib/h5tools_utils.h b/tools/lib/h5tools_utils.h
index b6caa34..8c44241 100644
--- a/tools/lib/h5tools_utils.h
+++ b/tools/lib/h5tools_utils.h
@@ -34,7 +34,7 @@ H5TOOLS_DLLVAR int g_nTasks;
H5TOOLS_DLLVAR unsigned char g_Parallel;
H5TOOLS_DLLVAR char outBuff[];
H5TOOLS_DLLVAR unsigned outBuffOffset;
-H5TOOLS_DLLVAR FILE *overflow_file;
+H5TOOLS_DLLVAR FILE *overflow_file;
/* Maximum size used in a call to malloc for a dataset */
H5TOOLS_DLLVAR hsize_t H5TOOLS_MALLOCSIZE;
@@ -91,7 +91,7 @@ H5TOOLS_DLL int get_option(int argc, const char *const *argv, const char *opt,
/*struct taken from the dumper. needed in table struct*/
typedef struct obj_t {
H5O_token_t obj_token;
- char * objname;
+ char *objname;
hbool_t displayed; /* Flag to indicate that the object has been displayed */
hbool_t recorded; /* Flag for named datatypes to indicate they were found in the group hierarchy */
} obj_t;
@@ -156,7 +156,7 @@ typedef struct {
/* obtain link info from H5tools_get_symlink_info() */
typedef struct {
H5O_type_t trg_type; /* OUT: target type */
- char * trg_path; /* OUT: target obj path. This must be freed
+ char *trg_path; /* OUT: target obj path. This must be freed
* when used with H5tools_get_symlink_info() */
H5O_token_t obj_token; /* OUT: target object token */
unsigned long fileno; /* OUT: File number that target object is located in */
diff --git a/tools/lib/h5trav.c b/tools/lib/h5trav.c
index 1f4b0d6..1784a20 100644
--- a/tools/lib/h5trav.c
+++ b/tools/lib/h5trav.c
@@ -21,7 +21,7 @@
*/
typedef struct trav_addr_path_t {
H5O_token_t token;
- char * path;
+ char *path;
} trav_addr_path_t;
typedef struct trav_addr_t {
@@ -33,14 +33,14 @@ typedef struct trav_addr_t {
typedef struct {
h5trav_obj_func_t visit_obj; /* Callback for visiting objects */
h5trav_lnk_func_t visit_lnk; /* Callback for visiting links */
- void * udata; /* User data to pass to callbacks */
+ void *udata; /* User data to pass to callbacks */
} trav_visitor_t;
typedef struct {
- trav_addr_t * seen; /* List of addresses seen already */
+ trav_addr_t *seen; /* List of addresses seen already */
const trav_visitor_t *visitor; /* Information for visiting each link/object */
hbool_t is_absolute; /* Whether the traversal has absolute paths */
- const char * base_grp_name; /* Name of the group that serves as the base
+ const char *base_grp_name; /* Name of the group that serves as the base
* for iteration */
unsigned fields; /* Fields needed in H5O_info2_t struct */
} trav_ud_traverse_t;
@@ -173,9 +173,9 @@ static herr_t
traverse_cb(hid_t loc_id, const char *path, const H5L_info2_t *linfo, void *_udata)
{
trav_ud_traverse_t *udata = (trav_ud_traverse_t *)_udata; /* User data */
- char * new_name = NULL;
- const char * full_name;
- const char * already_visited = NULL; /* Whether the link/object was already visited */
+ char *new_name = NULL;
+ const char *full_name;
+ const char *already_visited = NULL; /* Whether the link/object was already visited */
/* Create the full path name for the link */
if (udata->is_absolute) {
@@ -709,7 +709,7 @@ trav_table_addlink(trav_table_t *table, const H5O_token_t *obj_token, const char
if (table->objs[i].nlinks == (unsigned)table->objs[i].sizelinks) {
table->objs[i].sizelinks = MAX(1, table->objs[i].sizelinks * 2);
table->objs[i].links = (trav_link_t *)HDrealloc(
- table->objs[i].links, table->objs[i].sizelinks * sizeof(trav_link_t));
+ table->objs[i].links, table->objs[i].sizelinks * sizeof(trav_link_t));
} /* end if */
/* insert it */
@@ -819,7 +819,7 @@ trav_attr(hid_t
const char *attr_name, const H5A_info_t H5_ATTR_UNUSED *ainfo, void *_op_data)
{
trav_path_op_data_t *op_data = (trav_path_op_data_t *)_op_data;
- const char * buf = op_data->path;
+ const char *buf = op_data->path;
if ((strlen(buf) == 1) && (*buf == '/'))
HDprintf(" %-10s %s%s", "attribute", buf, attr_name);
@@ -969,7 +969,7 @@ trav_print_visit_lnk(const char *path, const H5L_info2_t *linfo, void *udata)
case H5L_TYPE_EXTERNAL:
if (linfo->u.val_size > 0) {
- char * targbuf = NULL;
+ char *targbuf = NULL;
const char *filename = NULL;
const char *objname = NULL;
diff --git a/tools/lib/h5trav.h b/tools/lib/h5trav.h
index 58d347d..a250d23 100644
--- a/tools/lib/h5trav.h
+++ b/tools/lib/h5trav.h
@@ -50,8 +50,8 @@ typedef enum {
*/
typedef struct symlink_trav_path_t {
H5L_type_t type;
- char * file;
- char * path;
+ char *file;
+ char *path;
} symlink_trav_path_t;
typedef struct symlink_trav_t {
@@ -62,7 +62,7 @@ typedef struct symlink_trav_t {
} symlink_trav_t;
typedef struct trav_path_t {
- char * path;
+ char *path;
h5trav_type_t type;
H5O_token_t obj_token; /* object token */
unsigned long fileno; /* File number that object is located in */
@@ -71,11 +71,11 @@ typedef struct trav_path_t {
typedef struct trav_info_t {
size_t nalloc;
size_t nused;
- const char * fname;
+ const char *fname;
hid_t fid; /* File ID */
- trav_path_t * paths;
+ trav_path_t *paths;
symlink_trav_t symlink_visited; /* already visited symbolic links */
- void * opts; /* optional data passing */
+ void *opts; /* optional data passing */
} trav_info_t;
/*-------------------------------------------------------------------------
@@ -95,9 +95,9 @@ typedef struct trav_obj_t {
H5O_token_t obj_token; /* object token */
unsigned flags[2]; /* h5diff.object is present or not in both files*/
hbool_t is_same_trgobj; /* same target object? no need to compare */
- char * name; /* name */
+ char *name; /* name */
h5trav_type_t type; /* type of object */
- trav_link_t * links; /* array of possible link names */
+ trav_link_t *links; /* array of possible link names */
size_t sizelinks; /* size of links array */
size_t nlinks; /* number of links */
} trav_obj_t;
diff --git a/tools/libtest/h5tools_test_utils.c b/tools/libtest/h5tools_test_utils.c
index 4d7c2b0..8411dc1 100644
--- a/tools/libtest/h5tools_test_utils.c
+++ b/tools/libtest/h5tools_test_utils.c
@@ -515,8 +515,8 @@ test_parse_tuple(void)
unsigned i = 0;
unsigned count = 0;
unsigned elem_i = 0;
- char ** parsed = NULL;
- char * cpy = NULL;
+ char **parsed = NULL;
+ char *cpy = NULL;
herr_t success = TRUE;
hbool_t show_progress = FALSE;
@@ -667,7 +667,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, TRUE, "u", "v", "w"};
- const char * values[] = {"", "", ""};
+ const char *values[] = {"", "", ""};
if (show_progress) {
HDprintf("all empty values\n");
@@ -686,7 +686,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x", "y", "z", "a"};
+ const char *values[] = {"x", "y", "z", "a"};
if (show_progress) {
HDprintf("successful full set\n");
@@ -705,7 +705,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {NULL, "y", "z", NULL};
+ const char *values[] = {NULL, "y", "z", NULL};
if (show_progress) {
HDprintf("NULL region\n");
@@ -724,7 +724,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"", "y", "z", NULL};
+ const char *values[] = {"", "y", "z", NULL};
if (show_progress) {
HDprintf("empty region; non-empty id, key\n");
@@ -743,8 +743,8 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"somewhere over the rainbow not too high "
- "there is another rainbow bounding some darkened sky",
+ const char *values[] = {"somewhere over the rainbow not too high "
+ "there is another rainbow bounding some darkened sky",
"y", "z"};
if (show_progress) {
@@ -766,7 +766,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x", NULL, "z", NULL};
+ const char *values[] = {"x", NULL, "z", NULL};
if (show_progress) {
HDprintf("NULL id\n");
@@ -785,7 +785,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x", "", "z", NULL};
+ const char *values[] = {"x", "", "z", NULL};
if (show_progress) {
HDprintf("empty id; non-empty region and key\n");
@@ -804,17 +804,17 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x",
+ const char *values[] = {"x",
"Why is it necessary to solve the problem? "
- "What benefits will you receive by solving the problem? "
- "What is the unknown? "
- "What is it you don't yet understand? "
- "What is the information you have? "
- "What isn't the problem? "
- "Is the information insufficient, redundant, or contradictory? "
- "Should you draw a diagram or figure of the problem? "
- "What are the boundaries of the problem? "
- "Can you separate the various parts of the problem?",
+ "What benefits will you receive by solving the problem? "
+ "What is the unknown? "
+ "What is it you don't yet understand? "
+ "What is the information you have? "
+ "What isn't the problem? "
+ "Is the information insufficient, redundant, or contradictory? "
+ "Should you draw a diagram or figure of the problem? "
+ "What are the boundaries of the problem? "
+ "Can you separate the various parts of the problem?",
"z"};
if (show_progress) {
@@ -836,7 +836,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x", "y", NULL, NULL};
+ const char *values[] = {"x", "y", NULL, NULL};
if (show_progress) {
HDprintf("NULL key\n");
@@ -855,7 +855,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x", "y", "", NULL};
+ const char *values[] = {"x", "y", "", NULL};
if (show_progress) {
HDprintf("empty key; non-empty region and id\n");
@@ -874,7 +874,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"", "y", "", NULL};
+ const char *values[] = {"", "y", "", NULL};
if (show_progress) {
HDprintf("empty key and region; non-empty id\n");
@@ -893,7 +893,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x", "", "", NULL};
+ const char *values[] = {"x", "", "", NULL};
if (show_progress) {
HDprintf("empty key and id; non-empty region\n");
@@ -912,17 +912,17 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {bad_version, FALSE, "a", "b", "c"};
- const char * values[] = {"x", "y",
+ const char *values[] = {"x", "y",
"Why is it necessary to solve the problem? "
- "What benefits will you receive by solving the problem? "
- "What is the unknown? "
- "What is it you don't yet understand? "
- "What is the information you have? "
- "What isn't the problem? "
- "Is the information insufficient, redundant, or contradictory? "
- "Should you draw a diagram or figure of the problem? "
- "What are the boundaries of the problem? "
- "Can you separate the various parts of the problem?"};
+ "What benefits will you receive by solving the problem? "
+ "What is the unknown? "
+ "What is it you don't yet understand? "
+ "What is the information you have? "
+ "What isn't the problem? "
+ "Is the information insufficient, redundant, or contradictory? "
+ "Should you draw a diagram or figure of the problem? "
+ "What are the boundaries of the problem? "
+ "Can you separate the various parts of the problem?"};
if (show_progress) {
HDprintf("key overflow\n");
@@ -942,7 +942,7 @@ test_populate_ros3_fa(void)
*/
{
H5FD_ros3_fapl_t fa = {0, 0, "", "", ""};
- const char * values[] = {"us-east-2", "AKIAIMC3D3XLYXLN5COA",
+ const char *values[] = {"us-east-2", "AKIAIMC3D3XLYXLN5COA",
"ugs5aVVnLFCErO/8uW14iWE3K5AgXMpsMlWneO/+"};
JSVERIFY(1, h5tools_populate_ros3_fapl(&fa, values), "unable to set use case")
JSVERIFY(1, fa.version, "version check")
@@ -994,7 +994,7 @@ test_set_configured_fapl(void)
int expected;
int fapl_choice;
const char vfdname[12];
- void * conf_fa;
+ void *conf_fa;
} testcase;
typedef struct other_fa_t {
diff --git a/tools/src/h5copy/h5copy.c b/tools/src/h5copy/h5copy.c
index fc210cc..d87e9b3 100644
--- a/tools/src/h5copy/h5copy.c
+++ b/tools/src/h5copy/h5copy.c
@@ -19,7 +19,7 @@
#define PROGRAMNAME "h5copy"
/* command-line options: short and long-named parameters */
-static const char * s_opts = "d:f:hi:o:ps:vVE*";
+static const char *s_opts = "d:f:hi:o:ps:vVE*";
static struct long_options l_opts[] = {{"destination", require_arg, 'd'},
{"flag", require_arg, 'f'},
{"help", no_arg, 'h'},
@@ -31,11 +31,11 @@ static struct long_options l_opts[] = {{"destination", require_arg, 'd'},
{"version", no_arg, 'V'},
{"enable-error-stack", optional_arg, 'E'},
{NULL, 0, '\0'}};
-char * fname_src = NULL;
-char * fname_dst = NULL;
-char * oname_src = NULL;
-char * oname_dst = NULL;
-char * str_flag = NULL;
+char *fname_src = NULL;
+char *fname_dst = NULL;
+char *oname_src = NULL;
+char *oname_dst = NULL;
+char *str_flag = NULL;
/*-------------------------------------------------------------------------
* Function: leave
diff --git a/tools/src/h5diff/h5diff_common.c b/tools/src/h5diff/h5diff_common.c
index c032b7a..15f59e8 100644
--- a/tools/src/h5diff/h5diff_common.c
+++ b/tools/src/h5diff/h5diff_common.c
@@ -25,7 +25,7 @@ static int check_d_input(const char *);
* Command-line options: The user can specify short or long-named
* parameters.
*/
-static const char * s_opts = "hVrv*qn:d:p:NcelxE:A:S*";
+static const char *s_opts = "hVrv*qn:d:p:NcelxE:A:S*";
static struct long_options l_opts[] = {{"help", no_arg, 'h'},
{"version", no_arg, 'V'},
{"report", no_arg, 'r'},
@@ -94,8 +94,8 @@ check_options(diff_opt_t *opts)
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;
@@ -154,7 +154,7 @@ static struct subset_t *
parse_subset_params(const char *dset)
{
struct subset_t *s = NULL;
- char * brace;
+ char *brace;
H5TOOLS_START_DEBUG(" - dset:%s", dset);
if ((brace = HDstrrchr(dset, '[')) != NULL) {
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c
index 7c7a845..097541c 100644
--- a/tools/src/h5dump/h5dump.c
+++ b/tools/src/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;
@@ -69,7 +69,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;
};
@@ -80,7 +80,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'},
{"binary", optional_arg, 'b'},
{"count", require_arg, 'c'},
@@ -557,8 +557,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;
@@ -611,7 +611,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';
@@ -666,7 +666,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) {
@@ -1309,7 +1309,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/src/h5dump/h5dump.h b/tools/src/h5dump/h5dump.h
index a53d1ba..6ad1cb6 100644
--- a/tools/src/h5dump/h5dump.h
+++ b/tools/src/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/src/h5dump/h5dump_ddl.c b/tools/src/h5dump/h5dump_ddl.c
index 868b75d..52b9eaa 100644
--- a/tools/src/h5dump/h5dump_ddl.c
+++ b/tools/src/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_info2_t *linfo, void H5_ATT
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 */
@@ -631,7 +631,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 */
@@ -764,7 +764,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 */
@@ -918,7 +918,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;
@@ -1092,7 +1092,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;
@@ -1309,11 +1309,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 / */
@@ -1373,7 +1373,7 @@ obj_search(const char *path, const H5O_info2_t *oi, const char H5_ATTR_UNUSED *a
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;
@@ -1412,9 +1412,9 @@ lnk_search(const char *path, const H5L_info2_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] != '/')
@@ -1525,12 +1525,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 */
@@ -1669,7 +1669,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 (dump_opts.display_data) {
if ((dapl_id = H5Pcreate(H5P_DATASET_ACCESS)) < 0) {
@@ -2031,9 +2031,9 @@ dump_extlink(hid_t group, const char *linkname, const char *objname)
{
hid_t oid;
H5O_info2_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/src/h5dump/h5dump_extern.h b/tools/src/h5dump/h5dump_extern.h
index 308f602..1139390 100644
--- a/tools/src/h5dump/h5dump_extern.h
+++ b/tools/src/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/src/h5dump/h5dump_xml.c b/tools/src/h5dump/h5dump_xml.c
index 5f64d6c..16a5a07 100644
--- a/tools/src/h5dump/h5dump_xml.c
+++ b/tools/src/h5dump/h5dump_xml.c
@@ -134,10 +134,10 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_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 */
@@ -585,7 +585,7 @@ int
xml_name_to_XID(hid_t loc_id, const char *str, char *outstr, int outlen, int gen)
{
H5O_token_t obj_token;
- char * obj_tok_str = NULL;
+ char *obj_tok_str = NULL;
int lookup_ret;
if (outlen < 22)
@@ -659,8 +659,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)
@@ -749,8 +749,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)
@@ -851,7 +851,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;
@@ -873,7 +873,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 */
@@ -903,7 +903,7 @@ xml_print_datatype(hid_t type, unsigned in_group)
if (!in_group && H5Tcommitted(type) > 0) {
H5O_info2_t oinfo;
- obj_t * found_obj; /* Found object */
+ obj_t *found_obj; /* Found object */
/* detect a shared datatype, output only once */
H5Oget_info3(type, &oinfo, H5O_INFO_BASIC);
@@ -1571,7 +1571,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 */
@@ -1604,7 +1604,7 @@ xml_dump_datatype(hid_t type)
if (H5Tcommitted(type) > 0) {
H5O_info2_t oinfo;
- obj_t * found_obj; /* Found object */
+ obj_t *found_obj; /* Found object */
/* Datatype is a shared or named datatype */
H5Oget_info3(type, &oinfo, H5O_INFO_BASIC);
@@ -1703,7 +1703,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 */
@@ -1882,7 +1882,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));
@@ -2049,7 +2049,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);
@@ -2365,14 +2365,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 = NULL;
- char * dtxid = NULL;
- char * parentxid = NULL;
- char * t_tmp = NULL;
- char * t_prefix = NULL;
- char * t_name = NULL;
+ char *tmp = NULL;
+ char *dtxid = NULL;
+ char *parentxid = NULL;
+ char *t_tmp = NULL;
+ char *t_prefix = NULL;
+ char *t_name = NULL;
tmp = (char *)HDmalloc(HDstrlen(prefix) + HDstrlen(name) + 2);
if (tmp == NULL) {
@@ -2573,14 +2573,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 */
@@ -2955,11 +2955,11 @@ xml_print_refs(hid_t did, int source)
hid_t space = H5I_INVALID_HID;
hssize_t ssiz = -1;
hsize_t i;
- H5R_ref_t * refbuf = NULL;
- char * buf = NULL;
+ H5R_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 */
@@ -3108,12 +3108,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 */
@@ -3280,7 +3280,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 */
@@ -3417,11 +3417,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 */
@@ -3769,20 +3769,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 */
@@ -4380,8 +4380,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 */
@@ -4390,7 +4390,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/src/h5format_convert/h5format_convert.c b/tools/src/h5format_convert/h5format_convert.c
index 6a2bad1..07ff281 100644
--- a/tools/src/h5format_convert/h5format_convert.c
+++ b/tools/src/h5format_convert/h5format_convert.c
@@ -38,7 +38,7 @@ static int verbose_g = 0;
* Command-line options: The user can specify short or long-named
* parameters.
*/
-static const char * s_opts = "hVvd:n";
+static const char *s_opts = "hVvd:n";
static struct long_options l_opts[] = {{"help", no_arg, 'h'}, {"version", no_arg, 'V'},
{"verbose", no_arg, 'v'}, {"dname", require_arg, 'd'},
{"noop", no_arg, 'n'}, {"enable-error-stack", no_arg, 'E'},
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index 317db81..12730cb 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -78,7 +78,7 @@ main(int argc, char *argv[])
int token;
int i;
int state = 0;
- struct Input * in = NULL;
+ struct Input *in = NULL;
const char *err1 = "Invalid number of arguments: %d.\n";
const char *err2 = "Error in state table.\n";
@@ -352,7 +352,7 @@ gtoken(char *s)
static int
processDataFile(char *infile, struct Input *in, hid_t file_id)
{
- FILE * strm = NULL;
+ FILE *strm = NULL;
const char *err1 = "Unable to open the input file %s for reading.\n";
const char *err2 = "Error in allocating integer data storage.\n";
const char *err3 = "Error in allocating floating-point data storage.\n";
@@ -462,7 +462,7 @@ error:
static int
readIntegerData(FILE *strm, struct Input *in)
{
- H5DT_INT8 * in08;
+ H5DT_INT8 *in08;
H5DT_INT16 *in16;
H5DT_INT16 temp16;
H5DT_INT32 *in32;
@@ -634,7 +634,7 @@ readIntegerData(FILE *strm, struct Input *in)
static int
readUIntegerData(FILE *strm, struct Input *in)
{
- H5DT_UINT8 * in08;
+ H5DT_UINT8 *in08;
H5DT_UINT16 *in16;
H5DT_UINT16 temp16;
H5DT_UINT32 *in32;
@@ -645,9 +645,9 @@ readUIntegerData(FILE *strm, struct Input *in)
hsize_t len = 1;
hsize_t i;
int j;
- const char * err1 = "Unable to get unsigned integer value from file.\n";
- const char * err2 = "Unrecognized input class type.\n";
- const char * err3 = "Invalid input size.\n";
+ const char *err1 = "Unable to get unsigned integer value from file.\n";
+ const char *err2 = "Unrecognized input class type.\n";
+ const char *err3 = "Invalid input size.\n";
for (j = 0; j < in->rank; j++)
len *= in->sizeOfDimension[j];
@@ -802,10 +802,10 @@ static int
readFloatData(FILE *strm, struct Input *in)
{
H5DT_FLOAT32 *fp32;
- uint32_t * bfp32;
+ uint32_t *bfp32;
uint32_t temp32;
H5DT_FLOAT64 *fp64;
- uint64_t * bfp64;
+ uint64_t *bfp64;
uint64_t temp64;
hsize_t len = 1;
@@ -1037,7 +1037,7 @@ processStrData(FILE *strm, struct Input *in, hid_t file_id)
i++;
if (c == 10) { /* eol */
- char * str2 = str;
+ char *str2 = str;
hid_t fspace_id;
hsize_t start[1];
hsize_t count[1] = {1};
@@ -1095,9 +1095,9 @@ processStrHDFData(FILE *strm, struct Input *in, hid_t file_id)
hid_t mspace_id = H5I_INVALID_HID;
hid_t type_id = H5I_INVALID_HID;
hid_t handle = H5I_INVALID_HID;
- char * str1 = NULL;
- char * str2 = NULL;
- char * str3 = NULL;
+ char *str1 = NULL;
+ char *str2 = NULL;
+ char *str3 = NULL;
char str[1024] = "";
int j;
hsize_t line;
@@ -2512,7 +2512,7 @@ static int
parsePathInfo(struct path_info *path, char *temp)
{
const char delimiter[] = "/\"";
- char * token;
+ char *token;
int i = 0;
const char *err1 = "Path string larger than MAX_PATH_NAME_LENGTH.\n";
@@ -2542,7 +2542,7 @@ parseDimensions(struct Input *in, char *strm)
{
const char delimiter[] = ",";
char temp[255];
- char * token;
+ char *token;
int i = 0;
const char *err1 = "Unable to allocate dynamic memory.\n";
@@ -4589,7 +4589,7 @@ static int
process(struct Options *opt)
{
struct Input *in;
- FILE * extfile;
+ FILE *extfile;
hid_t file_id;
hid_t group_id;
hid_t handle;
diff --git a/tools/src/h5import/h5import.h b/tools/src/h5import/h5import.h
index efd40e1..2ebeecc 100644
--- a/tools/src/h5import/h5import.h
+++ b/tools/src/h5import/h5import.h
@@ -84,16 +84,16 @@ struct Input {
int inputArchitecture;
int inputByteOrder;
int rank;
- hsize_t * sizeOfDimension;
+ hsize_t *sizeOfDimension;
int outputClass;
int outputSize;
int outputArchitecture;
int outputByteOrder;
- hsize_t * sizeOfChunk;
- hsize_t * maxsizeOfDimension;
+ hsize_t *sizeOfChunk;
+ hsize_t *maxsizeOfDimension;
int compressionType;
int compressionParam;
- char * externFilename;
+ char *externFilename;
VOIDP data;
int configOptionVector[NUM_KEYS];
};
diff --git a/tools/src/h5jam/h5jam.c b/tools/src/h5jam/h5jam.c
index b2ae5b1..98d9948 100644
--- a/tools/src/h5jam/h5jam.c
+++ b/tools/src/h5jam/h5jam.c
@@ -34,7 +34,7 @@ char *ub_file = NULL;
* parameters. The long-named ones can be partially spelled. When
* adding more, make sure that they don't clash with each other.
*/
-static const char * s_opts = "hi:u:o:c:V";
+static const char *s_opts = "hi:u:o:c:V";
static struct long_options l_opts[] = {{"help", no_arg, 'h'}, {"i", require_arg, 'i'},
{"u", require_arg, 'u'}, {"o", require_arg, 'o'},
{"clobber", no_arg, 'c'}, {NULL, 0, '\0'}};
diff --git a/tools/src/h5jam/h5unjam.c b/tools/src/h5jam/h5unjam.c
index ae9af0f..fc6aa65 100644
--- a/tools/src/h5jam/h5unjam.c
+++ b/tools/src/h5jam/h5unjam.c
@@ -35,7 +35,7 @@ char *ub_file = NULL;
* parameters. The long-named ones can be partially spelled. When
* adding more, make sure that they don't clash with each other.
*/
-static const char * s_opts = "hu:i:o:d:V";
+static const char *s_opts = "hu:i:o:d:V";
static struct long_options l_opts[] = {{"help", no_arg, 'h'}, {"i", require_arg, 'i'},
{"u", require_arg, 'u'}, {"o", require_arg, 'o'},
{"delete", no_arg, 'd'}, {NULL, 0, '\0'}};
diff --git a/tools/src/h5ls/h5ls.c b/tools/src/h5ls/h5ls.c
index 1ccf8b2..cbb4880 100644
--- a/tools/src/h5ls/h5ls.c
+++ b/tools/src/h5ls/h5ls.c
@@ -109,7 +109,7 @@ static h5tool_format_t ls_dataformat = {
/* Struct to pass through to visitors */
typedef struct {
- const char * fname; /* Filename */
+ const char *fname; /* Filename */
hid_t fid; /* File ID */
hid_t gid; /* Group ID */
hbool_t symlink_target; /* Whether this is the target of an symbolic link */
@@ -830,7 +830,7 @@ print_float_type(h5tools_str_t *buffer, hid_t type, int ind)
static hbool_t
print_cmpd_type(h5tools_str_t *buffer, hid_t type, int ind)
{
- char * name = NULL; /* member name */
+ char *name = NULL; /* member name */
size_t size; /* total size of type in bytes */
hid_t subtype; /* member data type */
int nmembs; /* number of members */
@@ -889,7 +889,7 @@ print_enum_type(h5tools_str_t *buffer, hid_t type, int ind)
h5tools_str_append(buffer, " {");
if (nmembs > 0) {
- char ** name; /* member names */
+ char **name; /* member names */
unsigned char *value; /* value array */
hid_t native = H5I_INVALID_HID; /* native integer data type */
size_t dst_size; /* destination value type size */
@@ -1115,7 +1115,7 @@ print_reference_type(h5tools_str_t *buffer, hid_t type, int H5_ATTR_UNUSED ind)
static hbool_t
print_opaque_type(h5tools_str_t *buffer, hid_t type, int ind)
{
- char * tag;
+ char *tag;
size_t size;
if (H5T_OPAQUE != H5Tget_class(type))
@@ -1312,8 +1312,8 @@ dump_dataset_values(hid_t dset)
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
h5tool_format_t outputformat;
- h5tool_format_t * info = &ls_dataformat;
- H5R_ref_t * ref_buf = NULL;
+ h5tool_format_t *info = &ls_dataformat;
+ H5R_ref_t *ref_buf = NULL;
H5TOOLS_START_DEBUG(" ");
@@ -1481,8 +1481,8 @@ dump_attribute_values(hid_t attr)
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
h5tool_format_t outputformat;
- h5tool_format_t * info = &ls_dataformat;
- H5R_ref_t * ref_buf = NULL;
+ h5tool_format_t *info = &ls_dataformat;
+ H5R_ref_t *ref_buf = NULL;
H5TOOLS_START_DEBUG(" ");
@@ -1659,7 +1659,7 @@ list_attr(hid_t obj, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED *ain
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 * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
H5TOOLS_START_DEBUG(" ");
@@ -1769,7 +1769,7 @@ dataset_list1(hid_t dset)
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 * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -1841,7 +1841,7 @@ dataset_list2(hid_t dset, const char H5_ATTR_UNUSED *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 * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -1995,7 +1995,7 @@ dataset_list2(hid_t dset, const char H5_ATTR_UNUSED *name)
for (i = 0; i < nf; i++) {
cd_nelmts = NELMTS(cd_values);
filt_id = H5Pget_filter2(dcpl, (unsigned)i, &filt_flags, &cd_nelmts, cd_values,
- sizeof(f_name), f_name, NULL);
+ sizeof(f_name), f_name, NULL);
f_name[sizeof(f_name) - 1] = '\0';
HDsnprintf(s, sizeof(s), "Filter-%d:", i);
h5tools_str_append(&buffer, " %-10s %s-%u %s {", s, (f_name[0] ? f_name : "method"),
@@ -2051,7 +2051,7 @@ datatype_list2(hid_t type, const char H5_ATTR_UNUSED *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 * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -2082,11 +2082,11 @@ static herr_t
list_obj(const char *name, const H5O_info2_t *oinfo, const char *first_seen, void *_iter)
{
H5O_type_t obj_type = oinfo->type; /* Type of the object */
- iter_t * iter = (iter_t *)_iter;
+ iter_t *iter = (iter_t *)_iter;
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 * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
H5TOOLS_START_DEBUG(" ");
@@ -2153,8 +2153,8 @@ list_obj(const char *name, const H5O_info2_t *oinfo, const char *first_seen, voi
* which is common to all objects. */
if (verbose_g > 0) {
size_t buf_size = 0;
- char * comment = NULL;
- char * obj_tok_str = NULL;
+ char *comment = NULL;
+ char *obj_tok_str = NULL;
ssize_t cmt_bufsize = -1;
hbool_t supported = FALSE;
@@ -2259,14 +2259,14 @@ done:
static herr_t
list_lnk(const char *name, const H5L_info2_t *linfo, void *_iter)
{
- char * buf = NULL;
- iter_t * iter = (iter_t *)_iter;
+ char *buf = NULL;
+ iter_t *iter = (iter_t *)_iter;
int ret;
hsize_t curr_pos = 0; /* total data element position */
h5tool_link_info_t lnk_info;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -2452,7 +2452,7 @@ visit_obj(hid_t file, const char *oname, iter_t *iter)
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 * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -2643,13 +2643,13 @@ int
main(int argc, char *argv[])
{
hid_t file_id = H5I_INVALID_HID;
- char * fname = NULL, *oname = NULL, *x = NULL;
- const char * s = NULL;
- char * rest;
+ char *fname = NULL, *oname = NULL, *x = NULL;
+ const char *s = NULL;
+ char *rest;
int argno;
static char root_name[] = "/";
char drivername[50];
- const char * preferred_driver = NULL;
+ const char *preferred_driver = NULL;
int err_exit = 0;
hid_t fapl_id = H5P_DEFAULT;
hbool_t custom_vol_fapl = FALSE;
@@ -3089,7 +3089,7 @@ main(int argc, char *argv[])
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 * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
diff --git a/tools/src/h5perf/perf.c b/tools/src/h5perf/perf.c
index 48f76f2..64e1fb5 100644
--- a/tools/src/h5perf/perf.c
+++ b/tools/src/h5perf/perf.c
@@ -91,7 +91,7 @@ hid_t dataset; /* Dataset ID */
hsize_t opt_alignment = 1;
hsize_t opt_threshold = 1;
int opt_split_vfd = 0;
-char * meta_ext, *raw_ext; /* holds the meta and raw file extension if */
+char *meta_ext, *raw_ext; /* holds the meta and raw file extension if */
/* opt_split_vfd is set */
/* DEFAULT VALUES FOR OPTIONS */
@@ -117,7 +117,7 @@ extern char *optarg;
#ifndef HDF5_PARAPREFIX
#define HDF5_PARAPREFIX ""
#endif
-char * paraprefix = NULL; /* for command line option para-prefix */
+char *paraprefix = NULL; /* for command line option para-prefix */
MPI_Info h5_io_info_g = MPI_INFO_NULL; /* MPI INFO object for IO */
static char *h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fullname,
@@ -126,7 +126,7 @@ static char *h5_fixname_real(const char *base_name, hid_t fapl, const char *_suf
int
main(int argc, char **argv)
{
- char * buf = NULL, *tmp = NULL, *buf2 = NULL, *tmp2 = NULL, *check = NULL;
+ char *buf = NULL, *tmp = NULL, *buf2 = NULL, *tmp2 = NULL, *check = NULL;
int i, j, mynod = 0, nprocs = 1, my_correct = 1, correct, myerrno;
double stim, etim;
double write_tim = 0;
@@ -583,7 +583,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu
{
const char *prefix = NULL;
const char *env = NULL; /* HDF5_DRIVER environment variable */
- char * ptr, last = '\0';
+ char *ptr, last = '\0';
const char *suffix = _suffix;
size_t i, j;
hid_t driver = -1;
diff --git a/tools/src/h5perf/pio_engine.c b/tools/src/h5perf/pio_engine.c
index 90d63c8..1562aac 100644
--- a/tools/src/h5perf/pio_engine.c
+++ b/tools/src/h5perf/pio_engine.c
@@ -120,7 +120,7 @@ typedef union _file_descr {
} file_descr;
/* local functions */
-static char * pio_create_filename(iotype iot, const char *base_name, char *fullname, size_t size);
+static char *pio_create_filename(iotype iot, const char *base_name, char *fullname, size_t size);
static herr_t do_write(results *res, file_descr *fd, parameters *parms, long ndsets, off_t nelmts,
size_t buf_size, void *buffer);
static herr_t do_read(results *res, file_descr *fd, parameters *parms, long ndsets, off_t nelmts,
@@ -155,7 +155,7 @@ do_pio(parameters param)
off_t snbytes; /*general dataset size */
/*for 1D, it is the actual dataset size */
/*for 2D, it is the size of a side of the dataset square */
- char * buffer = NULL; /*data buffer pointer */
+ char *buffer = NULL; /*data buffer pointer */
size_t buf_size; /*general buffer size in bytes */
/*for 1D, it is the actual buffer size */
/*for 2D, it is the length of the buffer rectangle */
@@ -387,7 +387,7 @@ static char *
pio_create_filename(iotype iot, const char *base_name, char *fullname, size_t size)
{
const char *prefix, *suffix = "";
- char * ptr, last = '\0';
+ char *ptr, last = '\0';
size_t i, j;
if (!base_name || !fullname || size < 1)
@@ -1223,15 +1223,14 @@ do_write(results *res, file_descr *fd, parameters *parms, long ndsets, off_t nby
/* Interleaved access pattern */
else {
/* Compute offset in file */
- mpi_offset =
- mpi_file_offset +
- (MPI_Offset)(
- ((((size_t)nbytes_xfer / buf_size) * (size_t)pio_mpi_nprocs_g) /
- (size_t)snbytes) *
- (buf_size * (size_t)snbytes)) +
- (MPI_Offset)(
- (((size_t)nbytes_xfer / buf_size) * (size_t)pio_mpi_nprocs_g) %
- (size_t)snbytes);
+ mpi_offset = mpi_file_offset +
+ (MPI_Offset)(((((size_t)nbytes_xfer / buf_size) *
+ (size_t)pio_mpi_nprocs_g) /
+ (size_t)snbytes) *
+ (buf_size * (size_t)snbytes)) +
+ (MPI_Offset)((((size_t)nbytes_xfer / buf_size) *
+ (size_t)pio_mpi_nprocs_g) %
+ (size_t)snbytes);
/* Number of bytes to be transferred per I/O operation */
nbytes_xfer_advance = blk_size;
@@ -2194,15 +2193,14 @@ do_read(results *res, file_descr *fd, parameters *parms, long ndsets, off_t nbyt
/* Interleaved access pattern */
else {
/* Compute offset in file */
- mpi_offset =
- mpi_file_offset +
- (MPI_Offset)(
- ((((size_t)nbytes_xfer / buf_size) * (size_t)pio_mpi_nprocs_g) /
- (size_t)snbytes) *
- (buf_size * (size_t)snbytes)) +
- (MPI_Offset)(
- (((size_t)nbytes_xfer / buf_size) * (size_t)pio_mpi_nprocs_g) %
- (size_t)snbytes);
+ mpi_offset = mpi_file_offset +
+ (MPI_Offset)(((((size_t)nbytes_xfer / buf_size) *
+ (size_t)pio_mpi_nprocs_g) /
+ (size_t)snbytes) *
+ (buf_size * (size_t)snbytes)) +
+ (MPI_Offset)((((size_t)nbytes_xfer / buf_size) *
+ (size_t)pio_mpi_nprocs_g) %
+ (size_t)snbytes);
/* Number of bytes to be transferred per I/O operation */
nbytes_xfer_advance = blk_size;
diff --git a/tools/src/h5perf/pio_perf.c b/tools/src/h5perf/pio_perf.c
index 948eec5..aea7337 100644
--- a/tools/src/h5perf/pio_perf.c
+++ b/tools/src/h5perf/pio_perf.c
@@ -96,7 +96,7 @@
#endif /* FALSE */
/* global variables */
-FILE * output; /* output file */
+FILE *output; /* output file */
int comm_world_rank_g; /* my rank in MPI_COMM_RANK */
int comm_world_nprocs_g; /* num. of processes of MPI_COMM_WORLD */
MPI_Comm pio_comm_g; /* Communicator to run the PIO */
@@ -116,7 +116,7 @@ static const char *progname = "h5perf";
#ifndef HDF5_PARAPREFIX
#define HDF5_PARAPREFIX ""
#endif
-char * paraprefix = NULL; /* for command line option para-prefix */
+char *paraprefix = NULL; /* for command line option para-prefix */
MPI_Info h5_io_info_g = MPI_INFO_NULL; /* MPI INFO object for IO */
/*
@@ -415,18 +415,18 @@ run_test(iotype iot, parameters parms, struct options *opts)
register int i, ret_value = SUCCESS;
int comm_size;
off_t raw_size;
- minmax * write_mpi_mm_table = NULL;
- minmax * write_mm_table = NULL;
- minmax * write_gross_mm_table = NULL;
- minmax * write_raw_mm_table = NULL;
- minmax * read_mpi_mm_table = NULL;
- minmax * read_mm_table = NULL;
- minmax * read_gross_mm_table = NULL;
- minmax * read_raw_mm_table = NULL;
- minmax * read_open_mm_table = NULL;
- minmax * read_close_mm_table = NULL;
- minmax * write_open_mm_table = NULL;
- minmax * write_close_mm_table = NULL;
+ minmax *write_mpi_mm_table = NULL;
+ minmax *write_mm_table = NULL;
+ minmax *write_gross_mm_table = NULL;
+ minmax *write_raw_mm_table = NULL;
+ minmax *read_mpi_mm_table = NULL;
+ minmax *read_mm_table = NULL;
+ minmax *read_gross_mm_table = NULL;
+ minmax *read_raw_mm_table = NULL;
+ minmax *read_open_mm_table = NULL;
+ minmax *read_close_mm_table = NULL;
+ minmax *write_open_mm_table = NULL;
+ minmax *write_close_mm_table = NULL;
minmax write_mpi_mm = {0.0, 0.0, 0.0, 0};
minmax write_mm = {0.0, 0.0, 0.0, 0};
minmax write_gross_mm = {0.0, 0.0, 0.0, 0};
@@ -773,7 +773,7 @@ h5_set_info_object(void)
do {
size_t len;
- char * key_val, *endp, *namep;
+ char *key_val, *endp, *namep;
if (*valp == ';')
valp++;
diff --git a/tools/src/h5perf/pio_perf.h b/tools/src/h5perf/pio_perf.h
index 8924c20..b12996f 100644
--- a/tools/src/h5perf/pio_perf.h
+++ b/tools/src/h5perf/pio_perf.h
@@ -76,7 +76,7 @@ typedef struct results_ {
#define FAIL -1
#endif /* !FAIL */
-extern FILE * output; /* output file */
+extern FILE *output; /* output file */
extern io_time_t *timer_g; /* timer: global for stub functions */
extern int comm_world_rank_g; /* my rank in MPI_COMM_RANK */
extern int comm_world_nprocs_g; /* num. of processes of MPI_COMM_WORLD */
diff --git a/tools/src/h5perf/sio_engine.c b/tools/src/h5perf/sio_engine.c
index 008023c..4b39545 100644
--- a/tools/src/h5perf/sio_engine.c
+++ b/tools/src/h5perf/sio_engine.c
@@ -86,7 +86,7 @@ typedef union {
} file_descr;
/* local functions */
-static char * sio_create_filename(iotype iot, const char *base_name, char *fullname, size_t size,
+static char *sio_create_filename(iotype iot, const char *base_name, char *fullname, size_t size,
parameters *param);
static herr_t do_write(results *res, file_descr *fd, parameters *parms, void *buffer);
static herr_t do_read(results *res, file_descr *fd, parameters *parms, void *buffer);
@@ -109,7 +109,7 @@ static int cont_dim; /* lowest dimension for contigu
static size_t cont_size; /* size of contiguous POSIX access */
static hid_t fapl; /* file access list */
static unsigned char *buf_p; /* buffer pointer */
-static const char * multi_letters = "msbrglo"; /* string for multi driver */
+static const char *multi_letters = "msbrglo"; /* string for multi driver */
/* HDF5 global variables */
static hsize_t h5count[MAX_DIMS]; /*selection count */
@@ -129,7 +129,7 @@ static hid_t h5dxpl = H5I_INVALID_HID; /* Dataset transfer property
void
do_sio(parameters param, results *res)
{
- char * buffer = NULL; /*data buffer pointer */
+ char *buffer = NULL; /*data buffer pointer */
size_t buf_size[MAX_DIMS]; /* general buffer size in bytes */
file_descr fd; /* file handles */
iotype iot; /* API type */
@@ -290,7 +290,7 @@ static char *
sio_create_filename(iotype iot, const char *base_name, char *fullname, size_t size, parameters *param)
{
const char *prefix, *suffix = "";
- char * ptr, last = '\0';
+ char *ptr, last = '\0';
size_t i, j;
vfdtype vfd;
vfd = param->vfd;
@@ -769,7 +769,7 @@ done:
static herr_t
do_read(results *res, file_descr *fd, parameters *parms, void *buffer)
{
- char * buffer2 = NULL; /* Buffer for data verification */
+ char *buffer2 = NULL; /* Buffer for data verification */
int ret_code = SUCCESS;
char dname[64];
int i;
@@ -1276,7 +1276,7 @@ done:
static void
do_cleanupfile(iotype iot, char *filename)
{
- char * temp = NULL;
+ char *temp = NULL;
size_t temp_sz;
int j;
hid_t driver;
diff --git a/tools/src/h5perf/sio_perf.c b/tools/src/h5perf/sio_perf.c
index f299c04..227ee4e 100644
--- a/tools/src/h5perf/sio_perf.c
+++ b/tools/src/h5perf/sio_perf.c
@@ -97,7 +97,7 @@ static const char *progname = "h5perf_serial";
* It seems that only the options that accept additional information
* such as dataset size (-e) require the colon next to it.
*/
-static const char * s_opts = "a:A:B:c:Cd:D:e:F:ghi:Imno:p:P:r:stT:v:wx:X:";
+static const char *s_opts = "a:A:B:c:Cd:D:e:F:ghi:Imno:p:P:r:stT:v:wx:X:";
static struct long_options l_opts[] = {{"align", require_arg, 'a'},
{"api", require_arg, 'A'},
#if 0
@@ -302,14 +302,14 @@ run_test(iotype iot, parameters parms, struct options *opts)
results res;
register int i, ret_value = SUCCESS;
off_t raw_size;
- minmax * write_sys_mm_table = NULL;
- minmax * write_mm_table = NULL;
- minmax * write_gross_mm_table = NULL;
- minmax * write_raw_mm_table = NULL;
- minmax * read_sys_mm_table = NULL;
- minmax * read_mm_table = NULL;
- minmax * read_gross_mm_table = NULL;
- minmax * read_raw_mm_table = NULL;
+ minmax *write_sys_mm_table = NULL;
+ minmax *write_mm_table = NULL;
+ minmax *write_gross_mm_table = NULL;
+ minmax *write_raw_mm_table = NULL;
+ minmax *read_sys_mm_table = NULL;
+ minmax *read_mm_table = NULL;
+ minmax *read_gross_mm_table = NULL;
+ minmax *read_raw_mm_table = NULL;
minmax write_sys_mm = {0.0, 0.0, 0.0, 0};
minmax write_mm = {0.0, 0.0, 0.0, 0};
minmax write_gross_mm = {0.0, 0.0, 0.0, 0};
@@ -1188,7 +1188,7 @@ static hsize_t
parse_size_directive(const char *size)
{
hsize_t s;
- char * endptr;
+ char *endptr;
s = HDstrtoull(size, &endptr, 10);
diff --git a/tools/src/h5perf/sio_perf.h b/tools/src/h5perf/sio_perf.h
index d998377..cb4af1f 100644
--- a/tools/src/h5perf/sio_perf.h
+++ b/tools/src/h5perf/sio_perf.h
@@ -82,7 +82,7 @@ typedef struct results_ {
#define FAIL -1
#endif /* !FAIL */
-extern FILE * output; /* output file */
+extern FILE *output; /* output file */
extern io_time_t *timer_g; /* timer: global for stub functions */
extern int sio_debug_level; /* The debug level:
* 0 - Off
diff --git a/tools/src/h5repack/h5repack.c b/tools/src/h5repack/h5repack.c
index bcb156b..9aef46d 100644
--- a/tools/src/h5repack/h5repack.c
+++ b/tools/src/h5repack/h5repack.c
@@ -117,7 +117,7 @@ h5repack_end(pack_opt_t *options)
int
h5repack_addfilter(const char *str, pack_opt_t *options)
{
- obj_list_t * obj_list = NULL; /* one object list for the -f and -l option entry */
+ obj_list_t *obj_list = NULL; /* one object list for the -f and -l option entry */
filter_info_t filter; /* filter info for the current -f option entry */
unsigned n_objs; /* number of objects in the current -f or -l option entry */
int is_glb; /* is the filter global */
@@ -361,7 +361,7 @@ copy_attr(hid_t loc_in, hid_t loc_out, named_dt_t **named_dt_head_p, trav_table_
hid_t ftype_id = H5I_INVALID_HID; /* file type ID */
hid_t wtype_id = H5I_INVALID_HID; /* read/write type ID */
size_t msize; /* size of type */
- void * buf = NULL; /* data buffer */
+ void *buf = NULL; /* data buffer */
hsize_t nelmts; /* number of elements in dataset */
int rank; /* rank of dataset */
htri_t is_named; /* Whether the datatype is named */
@@ -697,7 +697,7 @@ check_options(pack_opt_t *options)
for (i = 0; i < options->op_tbl->nelems; i++) {
pack_info_t pack = options->op_tbl->objs[i];
- char * name = pack.path;
+ char *name = pack.path;
for (j = 0; j < pack.nfilters; j++) {
if (options->verbose > 0) {
@@ -816,7 +816,7 @@ check_objects(const char *fname, pack_opt_t *options)
for (i = 0; i < options->op_tbl->nelems; i++) {
pack_info_t obj = options->op_tbl->objs[i];
- char * name = obj.path;
+ char *name = obj.path;
if (options->verbose > 0)
HDprintf(" <%s>", name);
diff --git a/tools/src/h5repack/h5repack.h b/tools/src/h5repack/h5repack.h
index 65e5d40..ad81cf7 100644
--- a/tools/src/h5repack/h5repack.h
+++ b/tools/src/h5repack/h5repack.h
@@ -125,7 +125,7 @@ typedef struct {
int grp_indexed; /* Set the minimum number of links to store in the indexed format */
int msg_size[8]; /* Minimum size of shared messages: dataspace,
datatype, fill value, filter pipeline, attribute */
- const char * ublock_filename; /* user block file name */
+ const char *ublock_filename; /* user block file name */
hsize_t ublock_size; /* user block size */
hsize_t meta_block_size; /* metadata aggregation block size (for H5Pset_meta_block_size) */
hsize_t threshold; /* alignment threshold for H5Pset_alignment */
@@ -201,13 +201,13 @@ void init_packobject(pack_info_t *obj);
*-------------------------------------------------------------------------
*/
-int apply_filters(const char * name, /* object name from traverse list */
+int apply_filters(const char *name, /* object name from traverse list */
int rank, /* rank of dataset */
const hsize_t *dims, /* dimensions of dataset */
size_t msize, /* size of type */
hid_t dcpl_id, /* dataset creation property list */
- pack_opt_t * options, /* repack options */
- int * has_filter); /* (OUT) object NAME has a filter */
+ pack_opt_t *options, /* repack options */
+ int *has_filter); /* (OUT) object NAME has a filter */
/*-------------------------------------------------------------------------
* options table
diff --git a/tools/src/h5repack/h5repack_copy.c b/tools/src/h5repack/h5repack_copy.c
index 772c3a7..b9b2b8e 100644
--- a/tools/src/h5repack/h5repack_copy.c
+++ b/tools/src/h5repack/h5repack_copy.c
@@ -65,7 +65,7 @@ copy_objects(const char *fnamein, const char *fnameout, pack_opt_t *options)
hid_t grp_in = H5I_INVALID_HID; /* group ID */
hid_t gcpl_in = H5I_INVALID_HID; /* group creation property list */
hid_t fcpl = H5P_DEFAULT; /* file creation property list ID */
- trav_table_t * travt = NULL;
+ trav_table_t *travt = NULL;
hsize_t ub_size = 0; /* size of user block */
H5F_fspace_strategy_t set_strategy; /* Strategy to be set in output file */
hbool_t set_persist; /* Persist free-space status to be set in output file */
@@ -628,7 +628,7 @@ do_copy_objects(hid_t fidin, hid_t fidout, trav_table_t *travt, pack_opt_t *opti
hid_t ocpl_id = H5I_INVALID_HID; /* property to pass copy options */
hid_t lcpl_id = H5I_INVALID_HID; /* link creation property list */
hid_t dxpl_id = H5I_INVALID_HID; /* dataset transfer property list */
- named_dt_t * named_dt_head = NULL; /* Pointer to the stack of named datatypes copied */
+ named_dt_t *named_dt_head = NULL; /* Pointer to the stack of named datatypes copied */
size_t msize; /* size of type */
hsize_t nelmts; /* number of elements in dataset */
H5D_space_status_t space_status; /* determines whether space has been allocated for the dataset */
@@ -638,8 +638,8 @@ do_copy_objects(hid_t fidin, hid_t fidout, trav_table_t *travt, pack_opt_t *opti
hsize_t dsize_out; /* output dataset size after filter */
int apply_s; /* flag for apply filter to small dataset sizes */
int apply_f; /* flag for apply filter to return error on H5Dcreate */
- void * buf = NULL; /* buffer for raw data */
- void * hslab_buf = NULL; /* hyperslab buffer for raw data */
+ void *buf = NULL; /* buffer for raw data */
+ void *hslab_buf = NULL; /* hyperslab buffer for raw data */
int has_filter; /* current object has a filter */
int req_filter; /* there was a request for a filter */
int req_obj_layout = 0; /* request layout to current object */
diff --git a/tools/src/h5repack/h5repack_filters.c b/tools/src/h5repack/h5repack_filters.c
index 76bac5e..3198062 100644
--- a/tools/src/h5repack/h5repack_filters.c
+++ b/tools/src/h5repack/h5repack_filters.c
@@ -34,7 +34,7 @@
*/
static int
aux_copy_obj(hid_t dcpl_id, /* dataset creation property list */
- const char * name, /* object name from traverse list */
+ const char *name, /* object name from traverse list */
pack_info_t *objout /*OUT*/) /* info about object to filter */
{
int nfilters; /* number of filters in DCPL */
@@ -84,12 +84,12 @@ done:
*-------------------------------------------------------------------------
*/
static int
-aux_find_obj(const char * name, /* object name from traverse list */
- pack_opt_t * options, /* repack options */
+aux_find_obj(const char *name, /* object name from traverse list */
+ pack_opt_t *options, /* repack options */
pack_info_t *obj /*OUT*/) /* info about object to filter */
{
- char * pdest = NULL;
- const char * pname = NULL;
+ char *pdest = NULL;
+ const char *pname = NULL;
unsigned int i;
for (i = 0; i < options->op_tbl->nelems; i++) {
@@ -124,8 +124,8 @@ aux_find_obj(const char * name, /* object name from traverse list */
*-------------------------------------------------------------------------
*/
static int
-aux_assign_obj(const char * name, /* object name from traverse list */
- pack_opt_t * options, /* repack options */
+aux_assign_obj(const char *name, /* object name from traverse list */
+ pack_opt_t *options, /* repack options */
pack_info_t *obj /*OUT*/) /* info about object to filter */
{
int idx, i;
@@ -236,13 +236,13 @@ aux_assign_obj(const char * name, /* object name from traverse list */
*/
int
-apply_filters(const char * name, /* object name from traverse list */
+apply_filters(const char *name, /* object name from traverse list */
int rank, /* rank of dataset */
const hsize_t *dims, /* dimensions of dataset */
size_t msize, /* size of type */
hid_t dcpl_id, /* dataset creation property list */
- pack_opt_t * options, /* repack options */
- int * has_filter) /* (OUT) object NAME has a filter */
+ pack_opt_t *options, /* repack options */
+ int *has_filter) /* (OUT) object NAME has a filter */
{
int nfilters; /* number of filters in DCPL */
hsize_t chsize[64]; /* chunk size in elements */
diff --git a/tools/src/h5repack/h5repack_main.c b/tools/src/h5repack/h5repack_main.c
index 87a83bc..65d6972 100644
--- a/tools/src/h5repack/h5repack_main.c
+++ b/tools/src/h5repack/h5repack_main.c
@@ -31,7 +31,7 @@ const char *outfile = NULL;
* Command-line options: The user can specify short or long-named
* parameters.
*/
-static const char * s_opts = "a:b:c:d:e:f:hi:j:k:l:m:no:q:s:t:u:v*z:E*G:LM:P:S:T:VXW";
+static const char *s_opts = "a:b:c:d:e:f:hi:j:k:l:m:no:q:s:t:u:v*z:E*G:LM:P:S:T:VXW";
static struct long_options l_opts[] = {{"alignment", require_arg, 'a'},
{"block", require_arg, 'b'},
{"compact", require_arg, 'c'},
diff --git a/tools/src/h5repack/h5repack_refs.c b/tools/src/h5repack/h5repack_refs.c
index 3259b89..e1f23f2 100644
--- a/tools/src/h5repack/h5repack_refs.c
+++ b/tools/src/h5repack/h5repack_refs.c
@@ -53,7 +53,7 @@ do_copy_refobjs(hid_t fidin, hid_t fidout, trav_table_t *travt, pack_opt_t *opti
hsize_t dims[H5S_MAX_RANK]; /* dimensions of dataset */
unsigned int i, j;
int k;
- named_dt_t * named_dt_head = NULL; /* Pointer to the stack of named datatypes copied */
+ named_dt_t *named_dt_head = NULL; /* Pointer to the stack of named datatypes copied */
int ret_value = 0;
/*-------------------------------------------------------------------------
@@ -227,7 +227,7 @@ do_copy_refobjs(hid_t fidin, hid_t fidout, trav_table_t *travt, pack_opt_t *opti
hid_t refobj_id = H5I_INVALID_HID;
hdset_reg_ref_t *refbuf = NULL; /* input buffer for region references */
hdset_reg_ref_t *buf = NULL; /* output buffer */
- const char * refname;
+ const char *refname;
unsigned u;
/*-------------------------------------------------------------------------
@@ -453,10 +453,10 @@ copy_refs_attr(hid_t loc_in, hid_t loc_out, trav_table_t *travt, hid_t fidout) /
int rank;
H5T_class_t type_class = -1;
hbool_t is_ref = 0, is_ref_vlen = 0, is_ref_array = 0, is_ref_comp = 0;
- void * refbuf = NULL;
- void * buf = NULL;
- unsigned * ref_comp_index = NULL;
- size_t * ref_comp_size = NULL;
+ void *refbuf = NULL;
+ void *buf = NULL;
+ unsigned *ref_comp_index = NULL;
+ size_t *ref_comp_size = NULL;
int ref_comp_field_n = 0;
int ret_value = 0;
@@ -812,7 +812,7 @@ static const char *
MapIdToName(hid_t refobj_id, trav_table_t *travt)
{
unsigned int u;
- const char * ret = NULL;
+ const char *ret = NULL;
/* linear search */
for (u = 0; u < travt->nobjs; u++) {
diff --git a/tools/src/h5repack/h5repack_verify.c b/tools/src/h5repack/h5repack_verify.c
index 98883b2..06c96ee 100644
--- a/tools/src/h5repack/h5repack_verify.c
+++ b/tools/src/h5repack/h5repack_verify.c
@@ -46,7 +46,7 @@ h5repack_verify(const char *in_fname, const char *out_fname, pack_opt_t *options
hid_t tid = H5I_INVALID_HID; /* type ID */
int ok = 1; /* step results */
unsigned int i;
- trav_table_t * travt = NULL;
+ trav_table_t *travt = NULL;
hid_t fcpl_in = H5I_INVALID_HID; /* file creation property for input file */
hid_t fcpl_out = H5I_INVALID_HID; /* file creation property for output file */
H5F_fspace_strategy_t in_strategy, out_strategy; /* file space handling strategy for in/output file */
@@ -60,7 +60,7 @@ h5repack_verify(const char *in_fname, const char *out_fname, pack_opt_t *options
H5TOOLS_GOTO_ERROR((-1), "H5Fopen failed on <%s>", out_fname);
for (i = 0; i < options->op_tbl->nelems; i++) {
- char * name = options->op_tbl->objs[i].path;
+ char *name = options->op_tbl->objs[i].path;
pack_info_t *obj = &options->op_tbl->objs[i];
/*-------------------------------------------------------------------------
diff --git a/tools/src/h5stat/h5stat.c b/tools/src/h5stat/h5stat.c
index fd485e7..c420749 100644
--- a/tools/src/h5stat/h5stat.c
+++ b/tools/src/h5stat/h5stat.c
@@ -84,7 +84,7 @@ typedef struct iter_t {
unsigned long dset_layouts[H5D_NLAYOUTS]; /* Type of storage for each dataset */
unsigned long dset_comptype[H5_NFILTERS_IMPL]; /* Number of currently implemented filters */
unsigned long dset_ntypes; /* Number of diff. dataset datatypes found */
- dtype_info_t * dset_type_info; /* Pointer to dataset datatype information found */
+ dtype_info_t *dset_type_info; /* Pointer to dataset datatype information found */
unsigned dset_dim_nbins; /* Number of bins for dataset dimensions */
unsigned long *dset_dim_bins; /* Pointer to array of bins for dataset dimensions */
ohdr_info_t dset_ohdr_info; /* Object header information for datasets */
@@ -109,7 +109,7 @@ typedef struct iter_t {
hsize_t free_hdr; /* Size of free space manager metadata in the file */
unsigned long num_small_sects[SIZE_SMALL_SECTS]; /* Size of small free-space sections */
unsigned sect_nbins; /* Number of bins for free-space section sizes */
- unsigned long * sect_bins; /* Pointer to array of bins for free-space section sizes */
+ unsigned long *sect_bins; /* Pointer to array of bins for free-space section sizes */
hsize_t datasets_index_storage_size; /* meta size for chunked dataset's indexing type */
hsize_t datasets_heap_storage_size; /* heap size for dataset with external storage */
unsigned long nexternal; /* Number of external files for a dataset */
@@ -649,7 +649,7 @@ static herr_t
obj_stats(const char *path, const H5O_info2_t *oi, const char *already_visited, void *_iter)
{
H5O_native_info_t native_info;
- iter_t * iter = (iter_t *)_iter;
+ iter_t *iter = (iter_t *)_iter;
herr_t ret_value = SUCCEED;
/* If the object has already been seen then just return */
@@ -1685,7 +1685,7 @@ int
main(int argc, char *argv[])
{
iter_t iter;
- const char * fname = NULL;
+ const char *fname = NULL;
hid_t fid = H5I_INVALID_HID;
struct handler_t *hand = NULL;
hid_t fapl_id = H5P_DEFAULT;
diff --git a/tools/src/misc/h5clear.c b/tools/src/misc/h5clear.c
index 60e2e63..ea4240e 100644
--- a/tools/src/misc/h5clear.c
+++ b/tools/src/misc/h5clear.c
@@ -34,7 +34,7 @@
/* Default increment is 1 megabytes for the --increment option */
#define DEFAULT_INCREMENT (1024 * 1024)
-static char * fname_g = NULL;
+static char *fname_g = NULL;
static hbool_t clear_status_flags = FALSE;
static hbool_t remove_cache_image = FALSE;
static hbool_t print_filesize = FALSE;
@@ -44,7 +44,7 @@ static hsize_t increment = DEFAULT_INCREMENT;
/*
* Command-line options: only publicize long options
*/
-static const char * s_opts = "hVsmzi*";
+static const char *s_opts = "hVsmzi*";
static struct long_options l_opts[] = {
{"help", no_arg, 'h'}, {"version", no_arg, 'V'}, {"status", no_arg, 's'},
{"image", no_arg, 'm'}, {"filesize", no_arg, 'z'}, {"increment", optional_arg, 'i'},
@@ -226,7 +226,7 @@ leave(int ret)
int
main(int argc, char *argv[])
{
- char * fname = NULL; /* File name */
+ char *fname = NULL; /* File name */
hid_t fapl = H5I_INVALID_HID; /* File access property list */
hid_t fid = H5I_INVALID_HID; /* File ID */
haddr_t image_addr;
diff --git a/tools/src/misc/h5debug.c b/tools/src/misc/h5debug.c
index 5f51786..31ee131 100644
--- a/tools/src/misc/h5debug.c
+++ b/tools/src/misc/h5debug.c
@@ -240,14 +240,14 @@ main(int argc, char *argv[])
hid_t fid = H5I_INVALID_HID;
hid_t fapl = H5I_INVALID_HID;
H5VL_object_t *vol_obj;
- H5F_t * f;
+ H5F_t *f;
haddr_t addr = 0;
int extra_count = 0; /* Number of extra arguments */
haddr_t extra[10];
uint8_t sig[H5F_SIGNATURE_LEN];
size_t u;
H5E_auto2_t func = NULL;
- void * edata = NULL;
+ void *edata = NULL;
hbool_t api_ctx_pushed = FALSE; /* Whether API context pushed */
herr_t status = SUCCEED;
int exit_value = 0;
diff --git a/tools/src/misc/h5mkgrp.c b/tools/src/misc/h5mkgrp.c
index 36d9a55..d1e727e 100644
--- a/tools/src/misc/h5mkgrp.c
+++ b/tools/src/misc/h5mkgrp.c
@@ -22,7 +22,7 @@
int d_status = EXIT_SUCCESS;
/* command-line options: short and long-named parameters */
-static const char * s_opts = "hlpvV";
+static const char *s_opts = "hlpvV";
static struct long_options l_opts[] = {
{"help", no_arg, 'h'}, {"latest", no_arg, 'l'}, {"parents", no_arg, 'p'},
{"verbose", no_arg, 'v'}, {"version", no_arg, 'V'}, {"vol-value", require_arg, '1'},
@@ -30,12 +30,12 @@ static struct long_options l_opts[] = {
/* Command line parameter settings */
typedef struct mkgrp_opt_t {
- char * fname; /* File name to operate on */
+ char *fname; /* File name to operate on */
hbool_t latest; /* Whether file should use latest format versions */
hbool_t verbose; /* Whether output should be verbose */
hbool_t parents; /* Whether to create intermediate groups */
size_t ngroups; /* Number of groups to create */
- char ** groups; /* Pointer to array of group names */
+ char **groups; /* Pointer to array of group names */
hid_t fapl_id; /* fapl to use when opening the file */
} mkgrp_opt_t;
diff --git a/tools/src/misc/h5repart.c b/tools/src/misc/h5repart.c
index f4cef6a..4f4ee76 100644
--- a/tools/src/misc/h5repart.c
+++ b/tools/src/misc/h5repart.c
@@ -156,7 +156,7 @@ main(int argc, char *argv[])
{
const char *prog_name; /*program name */
size_t blk_size = 1024; /*size of each I/O block */
- char * buf = NULL; /*I/O block buffer */
+ char *buf = NULL; /*I/O block buffer */
size_t n, i; /*counters */
ssize_t nio; /*I/O return value */
int argno = 1; /*program argument number */
@@ -168,13 +168,13 @@ main(int argc, char *argv[])
int verbose = FALSE; /*display file names? */
const char *src_gen_name; /*general source name */
- char * src_name = NULL; /*source member name */
+ char *src_name = NULL; /*source member name */
int src_is_family; /*is source name a family name? */
int src_membno = 0; /*source member number */
const char *dst_gen_name; /*general destination name */
- char * dst_name = NULL; /*destination member name */
+ char *dst_name = NULL; /*destination member name */
int dst_is_family; /*is dst name a family name? */
int dst_membno = 0; /*destination member number */
diff --git a/tools/test/h5copy/dynlib_copy.c b/tools/test/h5copy/dynlib_copy.c
index b954a22..f474a55 100644
--- a/tools/test/h5copy/dynlib_copy.c
+++ b/tools/test/h5copy/dynlib_copy.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/test/h5copy/h5copygentest.c b/tools/test/h5copy/h5copygentest.c
index 2b40470..18ae0cd 100644
--- a/tools/test/h5copy/h5copygentest.c
+++ b/tools/test/h5copy/h5copygentest.c
@@ -281,7 +281,7 @@ gent_nested_vl(hid_t loc_id)
hid_t sid, did, tid1, tid2;
hsize_t dims[1] = {2};
hvl_t buf[2];
- hvl_t * tvl;
+ hvl_t *tvl;
/* allocate and initialize VL dataset to write */
buf[0].len = 1;
diff --git a/tools/test/h5diff/dynlib_diff.c b/tools/test/h5diff/dynlib_diff.c
index 433522d..9d277e0 100644
--- a/tools/test/h5diff/dynlib_diff.c
+++ b/tools/test/h5diff/dynlib_diff.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/test/h5diff/h5diffgentest.c b/tools/test/h5diff/h5diffgentest.c
index 6abd265..2c77e87 100644
--- a/tools/test/h5diff/h5diffgentest.c
+++ b/tools/test/h5diff/h5diffgentest.c
@@ -3427,8 +3427,8 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
/* compound1 datatype */
typedef struct comp1_t {
- char * str_vlen; /* vlen string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
const char *str_array_vlen[VLEN_STR_ARRY_DIM]; /* vlen string array */
@@ -3439,9 +3439,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
/* compound2 datatype */
typedef struct comp2_t {
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
const char *str_array_vlen[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_array_fixlen[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
@@ -3464,9 +3464,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
/* compound4 datatype */
typedef struct comp4_t {
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
char str_array_fixlen[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
const char *str_array_vlen[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_fixlen_array_again[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
@@ -3505,8 +3505,8 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
const char *str_vlen_array_again[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen; /* vlen string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
} comp7_t;
/* compound8 datatype */
@@ -3516,9 +3516,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
char str_fixlen_array_again[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
const char *str_vlen_array_again[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
} comp8_t;
/* compound9 datatype */
@@ -3532,9 +3532,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
hobj_ref_t objref1; /* reference */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
hobj_ref_t objref2; /* reference */
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
int int_data2;
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
hobj_ref_t objref3; /* reference */
int int_data3;
} comp9_t;
@@ -4730,15 +4730,15 @@ test_data_nocomparables(const char *fname, int make_diffs)
int rank_attr;
char data1_str[DIM_ARRY][STR_SIZE] = {"ab", "cd", "ef"};
herr_t status = SUCCEED;
- void * dset_data_ptr1 = NULL;
- void * dset_data_ptr2 = NULL;
- void * dset_data_ptr3 = NULL;
- void * attr_data_ptr1 = NULL;
- void * attr_data_ptr2 = NULL;
- void * attr_data_ptr3 = NULL;
- void * attr_data_ptr4 = NULL;
- void * attr2_dim_ptr = NULL;
- void * attr3_dim_ptr = NULL;
+ void *dset_data_ptr1 = NULL;
+ void *dset_data_ptr2 = NULL;
+ void *dset_data_ptr3 = NULL;
+ void *attr_data_ptr1 = NULL;
+ void *attr_data_ptr2 = NULL;
+ void *attr_data_ptr3 = NULL;
+ void *attr_data_ptr4 = NULL;
+ void *attr2_dim_ptr = NULL;
+ void *attr3_dim_ptr = NULL;
/* init */
tid_dset1 = H5Tcopy(H5T_NATIVE_INT);
@@ -5208,7 +5208,7 @@ write_attr_strings(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 1D attributes with dimension [2], 2 elements */
hsize_t dims[1] = {2};
char buf1[2][STR_SIZE] = {"ab", "de"}; /* string */
- char * buf1a[2]; /* VL string */
+ char *buf1a[2]; /* VL string */
char buf2[2] = {1, 2}; /* bitfield, opaque */
s_t buf3[2] = {{1, 2.0}, {3, 4.0}}; /* compound */
hobj_ref_t buf4[2]; /* reference */
@@ -5222,7 +5222,7 @@ write_attr_strings(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 2D attributes with dimension [3][2], 6 elements */
hsize_t dims2[2] = {3, 2};
char buf12[3][2][STR_SIZE] = {{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}}; /* string */
- char * buf12a[3][2]; /* VL string */
+ char *buf12a[3][2]; /* VL string */
char buf22[3][2] = {{1, 2}, {3, 4}, {5, 6}}; /* bitfield, opaque */
s_t buf32[6] = {{1, 2.0}, {3, 4.0}, {5, 6.0}, {7, 8.0}, {9, 10.0}, {11, 12.0}}; /* compound */
hobj_ref_t buf42[3][2]; /* reference */
@@ -5238,7 +5238,7 @@ write_attr_strings(hid_t loc_id, const char *dset_name, hid_t fid,
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
- char * buf13a[4][3][2]; /* VL string */
+ char *buf13a[4][3][2]; /* VL string */
char buf23[4][3][2]; /* bitfield, opaque */
s_t buf33[4][3][2]; /* compound */
hobj_ref_t buf43[4][3][2]; /* reference */
@@ -6197,7 +6197,7 @@ write_attr_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 1D attributes with dimension [2], 2 elements */
hsize_t dims[1] = {2};
char buf1[2][STR_SIZE] = {"ab", "de"}; /* string */
- char * buf1a[2]; /* VL string */
+ char *buf1a[2]; /* VL string */
char buf2[2] = {1, 2}; /* bitfield, opaque */
s_t buf3[2] = {{1, 2.0}, {3, 4.0}}; /* compound */
hobj_ref_t buf4[2]; /* reference */
@@ -6211,7 +6211,7 @@ write_attr_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 2D attributes with dimension [3][2], 6 elements */
hsize_t dims2[2] = {3, 2};
char buf12[3][2][STR_SIZE] = {{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}}; /* string */
- char * buf12a[3][2]; /* VL string */
+ char *buf12a[3][2]; /* VL string */
char buf22[3][2] = {{1, 2}, {3, 4}, {5, 6}}; /* bitfield, opaque */
s_t buf32[6] = {{1, 2.0}, {3, 4.0}, {5, 6.0}, {7, 8.0}, {9, 10.0}, {11, 12.0}}; /* compound */
hobj_ref_t buf42[3][2]; /* reference */
@@ -6227,7 +6227,7 @@ write_attr_in(hid_t loc_id, const char *dset_name, hid_t fid,
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
- char * buf13a[4][3][2]; /* VL string */
+ char *buf13a[4][3][2]; /* VL string */
char buf23[4][3][2]; /* bitfield, opaque */
s_t buf33[4][3][2]; /* compound */
hobj_ref_t buf43[4][3][2]; /* reference */
@@ -7189,7 +7189,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 1D attributes with dimension [2], 2 elements */
hsize_t dims[1] = {2};
char buf1[2][STR_SIZE] = {"ab", "de"}; /* string */
- char * buf1a[2]; /* VL string */
+ char *buf1a[2]; /* VL string */
char buf2[2] = {1, 2}; /* bitfield, opaque */
s_t buf3[2] = {{1, 2.0}, {3, 4.0}}; /* compound */
hobj_ref_t buf4[2]; /* reference */
@@ -7203,7 +7203,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 2D attributes with dimension [3][2], 6 elements */
hsize_t dims2[2] = {3, 2};
char buf12[3][2][STR_SIZE] = {{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}}; /* string */
- char * buf12a[3][2]; /* VL string */
+ char *buf12a[3][2]; /* VL string */
char buf22[3][2] = {{1, 2}, {3, 4}, {5, 6}}; /* bitfield, opaque */
s_t buf32[6] = {{1, 2.0}, {3, 4.0}, {5, 6.0}, {7, 8.0}, {9, 10.0}, {11, 12.0}}; /* compound */
hobj_ref_t buf42[3][2]; /* reference */
@@ -7218,7 +7218,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, hid_t fid,
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
- char * buf13a[4][3][2]; /* VL string */
+ char *buf13a[4][3][2]; /* VL string */
char buf23[4][3][2]; /* bitfield, opaque */
s_t buf33[4][3][2]; /* compound */
hobj_ref_t buf43[4][3][2]; /* reference */
@@ -7805,12 +7805,12 @@ gen_datareg(hid_t fid, int make_diffs /* flag to modify data buffers */)
hid_t did1 = H5I_INVALID_HID; /* dataset ID */
hid_t sid1 = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims1[2] = {10, 10}; /* dimensions */
- int * buf; /* dataset buffer */
+ int *buf; /* dataset buffer */
/* reference dataset */
hid_t did2 = H5I_INVALID_HID; /* dataset ID */
hid_t sid2 = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims2[] = {2}; /* 2 references */
- hdset_reg_ref_t * rbuf; /* buffer for write the references */
+ hdset_reg_ref_t *rbuf; /* buffer for write the references */
hsize_t start[10]; /* starting location of hyperslab */
hsize_t count[10]; /* element count of hyperslab */
hsize_t coord[5][2]; /* coordinates for point selection */
@@ -7925,7 +7925,7 @@ test_hyperslab(const char *fname, int make_diffs /* flag to modify data buffers
size_t size;
size_t nelmts = (size_t)GBLL / (1024 * 1024); /* elements in each hyperslab */
char fillvalue = -1;
- char * buf = NULL;
+ char *buf = NULL;
int i, j, s;
char c;
diff --git a/tools/test/h5dump/binread.c b/tools/test/h5dump/binread.c
index 341a085..4e46c57 100644
--- a/tools/test/h5dump/binread.c
+++ b/tools/test/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/test/h5dump/dynlib_dump.c b/tools/test/h5dump/dynlib_dump.c
index 433522d..9d277e0 100644
--- a/tools/test/h5dump/dynlib_dump.c
+++ b/tools/test/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/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c
index e271511..003e29a 100644
--- a/tools/test/h5dump/h5dumpgentest.c
+++ b/tools/test/h5dump/h5dumpgentest.c
@@ -457,10 +457,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 */
@@ -1798,7 +1798,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 */
@@ -2114,7 +2114,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 */
hbool_t supports_comments = FALSE;
@@ -2352,9 +2352,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 */
@@ -2768,7 +2768,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 */
@@ -3046,7 +3046,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 */
@@ -3566,7 +3566,7 @@ gent_array8(void)
herr_t H5_ATTR_NDEBUG_UNUSED status = -1;
hsize_t sdims[] = {F64_DIM0};
hsize_t tdims[] = {F64_DIM1};
- int * wdata; /* Write buffer */
+ int *wdata; /* Write buffer */
unsigned int i;
/* Allocate data buffer */
@@ -3858,8 +3858,8 @@ gent_multi(void)
H5FD_mem_t mt, memb_map[H5FD_MEM_NTYPES];
hid_t memb_fapl[H5FD_MEM_NTYPES];
const char *memb_name[H5FD_MEM_NTYPES];
- char ** sv = NULL;
- char * sv_data = NULL;
+ char **sv = NULL;
+ char *sv_data = NULL;
haddr_t memb_addr[H5FD_MEM_NTYPES];
sv_data = (char *)HDcalloc(H5FD_MEM_NTYPES * 1024, sizeof(char));
@@ -3989,10 +3989,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);
@@ -6257,7 +6257,7 @@ gent_longlinks(void)
hid_t fid = (-1); /* File ID */
hid_t gid = (-1); /* Group ID */
hid_t H5_ATTR_NDEBUG_UNUSED 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 */
@@ -6479,7 +6479,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;
@@ -7264,15 +7264,15 @@ gent_packedbits(void)
hid_t space = 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;
@@ -7489,15 +7489,15 @@ gent_attr_intsize(void)
hid_t root = 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;
@@ -8586,15 +8586,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;
@@ -8829,15 +8829,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;
@@ -9618,15 +9618,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;
@@ -9896,25 +9896,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;
@@ -10238,12 +10238,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;
@@ -11069,7 +11069,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/test/h5format_convert/h5fc_chk_idx.c b/tools/test/h5format_convert/h5fc_chk_idx.c
index 26a0fb9..f353dd4 100644
--- a/tools/test/h5format_convert/h5fc_chk_idx.c
+++ b/tools/test/h5format_convert/h5fc_chk_idx.c
@@ -43,8 +43,8 @@ usage(void)
int
main(int argc, char *argv[])
{
- char * fname = NULL;
- char * dname = NULL;
+ char *fname = NULL;
+ char *dname = NULL;
hid_t fid = H5I_INVALID_HID;
hid_t did = H5I_INVALID_HID;
H5D_chunk_index_t idx_type;
diff --git a/tools/test/h5jam/getub.c b/tools/test/h5jam/getub.c
index 562a6b9..8fed5b0 100644
--- a/tools/test/h5jam/getub.c
+++ b/tools/test/h5jam/getub.c
@@ -21,7 +21,7 @@ void parse_command_line(int argc, const char *const *argv);
#define PROGRAM_NAME "getub"
char *nbytes = NULL;
-static const char * s_opts = "c:"; /* add more later ? */
+static const char *s_opts = "c:"; /* add more later ? */
static struct long_options l_opts[] = {{"c", require_arg, 'c'}, /* input file */
{NULL, 0, '\0'}};
@@ -81,9 +81,9 @@ main(int argc, char *argv[])
{
int fd = H5I_INVALID_HID;
unsigned size;
- char * filename = NULL;
+ char *filename = NULL;
long res;
- char * buf = NULL;
+ char *buf = NULL;
h5tools_setprogname(PROGRAM_NAME);
h5tools_setstatus(EXIT_SUCCESS);
diff --git a/tools/test/h5jam/h5jamgentest.c b/tools/test/h5jam/h5jamgentest.c
index 5632cc0..b15784a 100644
--- a/tools/test/h5jam/h5jamgentest.c
+++ b/tools/test/h5jam/h5jamgentest.c
@@ -363,10 +363,10 @@ error:
static herr_t
create_textfile(const char *name, size_t size)
{
- char * buf = NULL;
+ char *buf = NULL;
int fd = -1;
size_t i;
- char * bp = NULL;
+ char *bp = NULL;
if ((fd = HDcreat(name, 0777)) < 0)
goto error;
diff --git a/tools/test/h5jam/tellub.c b/tools/test/h5jam/tellub.c
index d608df5..227df5c 100644
--- a/tools/test/h5jam/tellub.c
+++ b/tools/test/h5jam/tellub.c
@@ -24,7 +24,7 @@
* parameters. The long-named ones can be partially spelled. When
* adding more, make sure that they don't clash with each other.
*/
-static const char * s_opts = "h";
+static const char *s_opts = "h";
static struct long_options l_opts[] = {{"help", no_arg, 'h'}, {"hel", no_arg, 'h'}, {NULL, 0, '\0'}};
/*-------------------------------------------------------------------------
@@ -100,7 +100,7 @@ leave(int ret)
int
main(int argc, char *argv[])
{
- char * ifname;
+ char *ifname;
hid_t ifile = H5I_INVALID_HID;
hsize_t usize;
htri_t testval;
diff --git a/tools/test/h5ls/dynlib_ls.c b/tools/test/h5ls/dynlib_ls.c
index 433522d..9d277e0 100644
--- a/tools/test/h5ls/dynlib_ls.c
+++ b/tools/test/h5ls/dynlib_ls.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/test/h5repack/dynlib_rpk.c b/tools/test/h5repack/dynlib_rpk.c
index bef032a..b9e863b 100644
--- a/tools/test/h5repack/dynlib_rpk.c
+++ b/tools/test/h5repack/dynlib_rpk.c
@@ -68,7 +68,7 @@ static size_t
H5Z_filter_dynlib1(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- int * int_ptr = (int *)*buf; /* Pointer to the data values */
+ int *int_ptr = (int *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
int add_on = 0;
diff --git a/tools/test/h5repack/dynlib_vrpk.c b/tools/test/h5repack/dynlib_vrpk.c
index a45de65..981b848 100644
--- a/tools/test/h5repack/dynlib_vrpk.c
+++ b/tools/test/h5repack/dynlib_vrpk.c
@@ -65,7 +65,7 @@ static size_t
H5Z_filter_dynlib4(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- int * int_ptr = (int *)*buf; /* Pointer to the data values */
+ int *int_ptr = (int *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
int add_on = 0;
unsigned ver_info[3];
diff --git a/tools/test/h5repack/h5repacktst.c b/tools/test/h5repack/h5repacktst.c
index 4b8ba56..88d9f97 100644
--- a/tools/test/h5repack/h5repacktst.c
+++ b/tools/test/h5repack/h5repacktst.c
@@ -2432,7 +2432,7 @@ make_szip(hid_t loc_id)
unsigned szip_pixels_per_block = 8;
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
int szip_can_encode = 0;
/* Create and fill array */
@@ -2470,7 +2470,7 @@ make_szip(hid_t loc_id)
/* WARNING? SZIP is decoder only, can't generate test files */
if (H5Sclose(sid) < 0)
- goto error;
+ goto error;
if (H5Pclose(dcpl) < 0)
goto error;
@@ -2506,7 +2506,7 @@ make_deflate(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
hobj_ref_t bufref[1]; /* reference */
hsize_t dims1r[1] = {1};
@@ -2585,7 +2585,7 @@ make_shuffle(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2654,7 +2654,7 @@ make_fletcher32(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2728,7 +2728,7 @@ make_nbit(hid_t loc_id)
hid_t dsid = H5I_INVALID_HID;
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2815,7 +2815,7 @@ make_scaleoffset(hid_t loc_id)
hid_t dsid = H5I_INVALID_HID;
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2900,7 +2900,7 @@ make_all_filters(hid_t loc_id)
#endif /* H5_HAVE_FILTER_SZIP */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
#if defined(H5_HAVE_FILTER_SZIP)
int szip_can_encode = 0;
#endif
@@ -3152,7 +3152,7 @@ make_layout(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
int i;
char name[16];
@@ -3343,8 +3343,8 @@ make_layout3(hid_t loc_id)
hsize_t chunk_dims1[RANK] = {DIM1_L3 * 2, 5};
hsize_t chunk_dims2[RANK] = {SDIM1_L3 + 2, SDIM2_L3 / 2};
hsize_t chunk_dims3[RANK] = {SDIM1_L3 - 2, SDIM2_L3 / 2};
- int ** buf1 = NULL;
- int ** buf2 = NULL;
+ int **buf1 = NULL;
+ int **buf2 = NULL;
/* Create and fill arrays */
H5TEST_ALLOCATE_2D_ARRAY(buf1, int, DIM1_L3, DIM2_L3);
@@ -4063,7 +4063,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, /* for saving reference to da
{
hsize_t TEST_BUFSIZE = (128 * 1024 * 1024); /* 128MB */
- double * dbuf; /* information to write */
+ double *dbuf; /* information to write */
size_t size;
hsize_t sdims[] = {1};
hsize_t tdims[] = {TEST_BUFSIZE / sizeof(double) + 1};
@@ -4567,7 +4567,7 @@ make_dset_reg_ref(hid_t loc_id)
hsize_t count[SPACE2_RANK]; /* Element count of hyperslab */
hsize_t block[SPACE2_RANK]; /* Block size of hyperslab */
hdset_reg_ref_t *wbuf = NULL; /* buffer to write to disk */
- int * dwbuf = NULL; /* Buffer for writing numeric data to disk */
+ int *dwbuf = NULL; /* Buffer for writing numeric data to disk */
int i; /* counting variables */
int retval = -1; /* return value */
diff --git a/tools/test/misc/h5clear_gentest.c b/tools/test/misc/h5clear_gentest.c
index 04a2379..6f7d0c3 100644
--- a/tools/test/misc/h5clear_gentest.c
+++ b/tools/test/misc/h5clear_gentest.c
@@ -63,7 +63,7 @@ gen_cache_image_file(const char *fname)
hsize_t dims[2]; /* Dimension sizes */
hsize_t chunks[2]; /* Chunked dimension sizes */
int i, j; /* Local index variables */
- int ** buf = NULL; /* Buffer for data to write */
+ int **buf = NULL; /* Buffer for data to write */
H5AC_cache_image_config_t cache_image_config = /* Cache image input configuration */
{H5AC__CURR_CACHE_IMAGE_CONFIG_VERSION, TRUE, FALSE, H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE};
diff --git a/tools/test/misc/h5perf_gentest.c b/tools/test/misc/h5perf_gentest.c
index 248fd92..faf5ff3 100644
--- a/tools/test/misc/h5perf_gentest.c
+++ b/tools/test/misc/h5perf_gentest.c
@@ -42,7 +42,7 @@ typedef struct {
phase_t e;
float f_array[FIXED_LEN];
hvl_t i_vlen;
- char * s_vlen;
+ char *s_vlen;
} test_comp_t;
typedef struct {
@@ -140,19 +140,19 @@ create_perf_test_file(const char *fname, int ngrps, int ndsets, int nattrs, hsiz
tid_vlen_i, tid_vlen_s;
char name[32], tmp_name1[32], tmp_name2[32], tmp_name3[32];
hsize_t dims[1] = {dim0}, dims2d[2] = {dim0, (dim0 / 4 + 1)}, dims_array[1] = {FIXED_LEN}, dim1[1] = {2};
- char * enum_names[4] = {"SOLID", "LIQUID", "GAS", "PLASMA"};
+ char *enum_names[4] = {"SOLID", "LIQUID", "GAS", "PLASMA"};
test_comp_t *buf_comp = NULL, *buf_comp_large = NULL;
- int * buf_int = NULL;
+ int *buf_int = NULL;
float(*buf_float_a)[FIXED_LEN] = NULL;
double **buf_double2d = NULL;
- hvl_t * buf_vlen_i = NULL;
+ hvl_t *buf_vlen_i = NULL;
char(*buf_str)[FIXED_LEN];
- char ** buf_vlen_s = NULL;
+ char **buf_vlen_s = NULL;
hobj_ref_t buf_ref[2];
hdset_reg_ref_t buf_reg_ref[2];
size_t offset, len;
herr_t status;
- char * names[NTYPES] = {"int",
+ char *names[NTYPES] = {"int",
"ulong",
"float",
"double",
@@ -543,9 +543,9 @@ add_attrs(hid_t oid, int idx)
long long l = -2147483647;
float f = 123456789.987654321;
double d = 987654321.123456789;
- char * s[7] = {"Parting", "is such", "sweeter", "sorrow."};
+ char *s[7] = {"Parting", "is such", "sweeter", "sorrow."};
float f_array[4] = {1.0, 2.22, 3.333, 4.444};
- char * s_vlen[4] = {"Parting", "is such", "sweet", "sorrow."};
+ char *s_vlen[4] = {"Parting", "is such", "sweet", "sorrow."};
hsize_t dims1[1] = {1}, dims2[1] = {4}, dims3[2] = {3, 5};
int int3d[4][3][5];
size_t offset = 0;
diff --git a/tools/test/misc/h5repart_gentest.c b/tools/test/misc/h5repart_gentest.c
index b068985..5fd454e 100644
--- a/tools/test/misc/h5repart_gentest.c
+++ b/tools/test/misc/h5repart_gentest.c
@@ -26,7 +26,7 @@
#define FILENAME "family_file%05d.h5"
int **buf = NULL;
-int * buf_data = NULL;
+int *buf_data = NULL;
int
main(void)
diff --git a/tools/test/misc/vds/UC_1_one_dim_gen.c b/tools/test/misc/vds/UC_1_one_dim_gen.c
index a816fb8..5ccc7d0 100644
--- a/tools/test/misc/vds/UC_1_one_dim_gen.c
+++ b/tools/test/misc/vds/UC_1_one_dim_gen.c
@@ -62,7 +62,7 @@ main(void)
hsize_t start[RANK]; /* starting point for hyperslab */
hsize_t map_start = 0; /* starting point in the VDS map */
- int * buffer = NULL; /* data buffer */
+ int *buffer = NULL; /* data buffer */
hsize_t count = 0; /* number of elements in a plane */
int n_planes = -1; /* number of planes to write */
int value = -1; /* value written to datasets */
diff --git a/tools/test/misc/vds/UC_2_two_dims_gen.c b/tools/test/misc/vds/UC_2_two_dims_gen.c
index 85bd63d..bf8bd3a 100644
--- a/tools/test/misc/vds/UC_2_two_dims_gen.c
+++ b/tools/test/misc/vds/UC_2_two_dims_gen.c
@@ -70,7 +70,7 @@ main(void)
hsize_t start[RANK]; /* starting point for hyperslab */
hsize_t extent[RANK]; /* dataset extents */
- int * buffer = NULL; /* data buffer */
+ int *buffer = NULL; /* data buffer */
int value = -1; /* value written to datasets */
hsize_t count = 0; /* number of elements in a plane */
int n_planes = -1; /* number of planes to write */
diff --git a/tools/test/perform/chunk.c b/tools/test/perform/chunk.c
index 1b08e95..e197eed 100644
--- a/tools/test/perform/chunk.c
+++ b/tools/test/perform/chunk.c
@@ -329,7 +329,7 @@ main(void)
{
size_t io_size;
double effic, io_percent;
- FILE * f, *d;
+ FILE *f, *d;
size_t cache_size;
double w0;
diff --git a/tools/test/perform/chunk_cache.c b/tools/test/perform/chunk_cache.c
index ad9bf09..28e5dd2 100644
--- a/tools/test/perform/chunk_cache.c
+++ b/tools/test/perform/chunk_cache.c
@@ -98,7 +98,7 @@ create_dset1(hid_t file)
hid_t dcpl = H5I_INVALID_HID;
hsize_t dims[RANK] = {DSET1_DIM1, DSET1_DIM2};
hsize_t chunk_dims[RANK] = {CHUNK1_DIM1, CHUNK1_DIM2};
- int ** data = NULL; /* data for writing */
+ int **data = NULL; /* data for writing */
/* Create the data space. */
if ((dataspace = H5Screate_simple(RANK, dims, NULL)) < 0)
@@ -162,7 +162,7 @@ create_dset2(hid_t file)
hid_t dcpl = H5I_INVALID_HID;
hsize_t dims[RANK] = {DSET2_DIM1, DSET2_DIM2};
hsize_t chunk_dims[RANK] = {CHUNK2_DIM1, CHUNK2_DIM2};
- int ** data = NULL; /* data for writing */
+ int **data = NULL; /* data for writing */
/* Create the data space. */
if ((dataspace = H5Screate_simple(RANK, dims, NULL)) < 0)
diff --git a/tools/test/perform/direct_write_perf.c b/tools/test/perform/direct_write_perf.c
index 6fd9688..1d56cbd 100644
--- a/tools/test/perform/direct_write_perf.c
+++ b/tools/test/perform/direct_write_perf.c
@@ -150,7 +150,7 @@ create_file(hid_t fapl_id)
size_t buf_size = CHUNK_NY * CHUNK_NZ * sizeof(unsigned int);
const Bytef *z_src;
- Bytef * z_dst; /*destination buffer */
+ Bytef *z_dst; /*destination buffer */
uLongf z_dst_nbytes = (uLongf)DEFLATE_SIZE_ADJUST(buf_size);
uLong z_src_nbytes = (uLong)buf_size;
diff --git a/tools/test/perform/overhead.c b/tools/test/perform/overhead.c
index 64192ba..d2340fc 100644
--- a/tools/test/perform/overhead.c
+++ b/tools/test/perform/overhead.c
@@ -175,7 +175,7 @@ test(fill_t fill_style, const double splits[], hbool_t verbose, hbool_t use_rdcc
hsize_t hs_start[1]; /*hyperslab start offset*/
hsize_t hs_count[1] = {1}; /*hyperslab nelmts */
int fd = (-1); /*h5 file direct */
- int * had = NULL; /*for random filling */
+ int *had = NULL; /*for random filling */
const char *sname = NULL; /*fill style nam */
int mdc_nelmts; /*num meta objs to cache*/
hsize_t i, k;
diff --git a/tools/test/perform/pio_standalone.h b/tools/test/perform/pio_standalone.h
index 5e56c92..cac66e5 100644
--- a/tools/test/perform/pio_standalone.h
+++ b/tools/test/perform/pio_standalone.h
@@ -441,7 +441,7 @@ H5_DLL int64_t HDstrtoll(const char *s, const char **rest, int base);
#else /* H5_HAVE_WIN32_API */
#if !defined strdup && !defined H5_HAVE_STRDUP
-extern char * strdup(const char *s);
+extern char *strdup(const char *s);
#endif
#define HDstrdup(S) strdup(S)
@@ -471,7 +471,7 @@ enum h5_arg_level {
};
struct long_options {
- const char * name; /* Name of the long option */
+ const char *name; /* Name of the long option */
enum h5_arg_level has_arg; /* Whether we should look for an arg */
char shortval; /* The shortname equivalent of long arg
* this gets returned from get_option
diff --git a/tools/test/perform/sio_standalone.h b/tools/test/perform/sio_standalone.h
index 02bd647..d1960af 100644
--- a/tools/test/perform/sio_standalone.h
+++ b/tools/test/perform/sio_standalone.h
@@ -456,7 +456,7 @@ H5_DLL int64_t HDstrtoll(const char *s, const char **rest, int base);
#else /* H5_HAVE_WIN32_API */
#if !defined strdup && !defined H5_HAVE_STRDUP
-extern char * strdup(const char *s);
+extern char *strdup(const char *s);
#endif
#define HDstrdup(S) strdup(S)
@@ -486,7 +486,7 @@ enum h5_arg_level {
};
struct long_options {
- const char * name; /* Name of the long option */
+ const char *name; /* Name of the long option */
enum h5_arg_level has_arg; /* Whether we should look for an arg */
char shortval; /* The shortname equivalent of long arg
* this gets returned from get_option
diff --git a/tools/test/perform/zip_perf.c b/tools/test/perform/zip_perf.c
index 6a8dac8..e1cff93 100644
--- a/tools/test/perform/zip_perf.c
+++ b/tools/test/perform/zip_perf.c
@@ -52,7 +52,7 @@
/* internal variables */
static const char *prog = NULL;
static const char *option_prefix = NULL;
-static char * filename = NULL;
+static char *filename = NULL;
static int compress_percent = 0;
static int compress_level = Z_DEFAULT_COMPRESSION;
static int output, random_test = FALSE;
@@ -64,7 +64,7 @@ static void error(const char *fmt, ...);
static void compress_buffer(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen);
/* commandline options : long and short form */
-static const char * s_opts = "hB:b:c:p:rs:0123456789";
+static const char *s_opts = "hB:b:c:p:rs:0123456789";
static struct long_options l_opts[] = {{"help", no_arg, 'h'},
{"compressability", require_arg, 'c'},
{"file-size", require_arg, 's'},
@@ -111,7 +111,7 @@ cleanup(void)
static void
write_file(Bytef *source, uLongf sourceLen)
{
- Bytef * d_ptr, *dest;
+ Bytef *d_ptr, *dest;
uLongf d_len, destLen;
struct timeval timer_start, timer_stop;
@@ -303,7 +303,7 @@ static unsigned long
parse_size_directive(const char *size)
{
unsigned long s;
- char * endptr;
+ char *endptr;
s = HDstrtoul(size, &endptr, 10);
@@ -383,7 +383,7 @@ do_write_test(unsigned long file_size, unsigned long min_buf_size, unsigned long
uLongf src_len, total_len;
struct timeval timer_start, timer_stop;
double total_time;
- Bytef * src;
+ Bytef *src;
for (src_len = min_buf_size; src_len <= max_buf_size; src_len <<= 1) {
unsigned long i, iters;