diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-09-28 18:27:21 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-09-28 18:27:21 (GMT) |
commit | 9b7b0df0b4ac3a6f33c01ca53a86aa9cab5dba52 (patch) | |
tree | 9087da39dc504b509add1e2beb398c75e1cfbede /tools/lib | |
parent | 208cfdc941bd911253051dc496c087dae6012241 (diff) | |
download | hdf5-9b7b0df0b4ac3a6f33c01ca53a86aa9cab5dba52.zip hdf5-9b7b0df0b4ac3a6f33c01ca53a86aa9cab5dba52.tar.gz hdf5-9b7b0df0b4ac3a6f33c01ca53a86aa9cab5dba52.tar.bz2 |
Remove unsupported function
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5tools_str.c | 75 | ||||
-rw-r--r-- | tools/lib/h5tools_str.h | 1 |
2 files changed, 4 insertions, 72 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index 60b85d9..7f65c91 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -413,73 +413,6 @@ h5tools_str_region_prefix(h5tools_str_t *str, const h5tool_format_t *info, } /*------------------------------------------------------------------------- - * Function: h5tools_str_dump_space_slabs - * - * Purpose: Prints information about a dataspace selection by appending - * the information to the specified string. - * - * Return: none - * - * In/Out: - * h5tools_context_t *ctx - * h5tools_str_t *str - *------------------------------------------------------------------------- - */ -void -h5tools_str_dump_space_slabs(h5tools_str_t *str, hid_t rspace, - const h5tool_format_t *info, h5tools_context_t *ctx) -{ - hsize_t start[H5S_MAX_RANK]; - hsize_t stride[H5S_MAX_RANK]; - hsize_t count[H5S_MAX_RANK]; - hsize_t block[H5S_MAX_RANK]; - int j; - int ndims = H5Sget_simple_extent_ndims(rspace); - - H5Sget_regular_hyperslab(rspace, start, stride, count, block); - - /* Print hyperslab information */ - - /* Start coordinates */ - h5tools_str_append(str, "%s%s ", info->line_indent, START); - for (j = 0; j < ndims; j++) - h5tools_str_append(str, "%s" HSIZE_T_FORMAT, j ? "," : "(", start[j]); - h5tools_str_append(str, ")"); - h5tools_str_append(str, "%s", "\n"); - h5tools_str_indent(str, info, ctx); - - /* Stride coordinates */ - h5tools_str_append(str, "%s ", STRIDE); - for (j = 0; j < ndims; j++) - h5tools_str_append(str, "%s" HSIZE_T_FORMAT, j ? "," : "(", stride[j]); - h5tools_str_append(str, ")"); - h5tools_str_append(str, "%s", "\n"); - h5tools_str_indent(str, info, ctx); - - /* Count coordinates */ - h5tools_str_append(str, "%s ", COUNT); - for (j = 0; j < ndims; j++) { - if(count[j] == H5S_UNLIMITED) - h5tools_str_append(str, "%s%s", j ? "," : "(","H5S_UNLIMITED"); - else - h5tools_str_append(str, "%s" HSIZE_T_FORMAT, j ? "," : "(", count[j]); - } - h5tools_str_append(str, ")"); - h5tools_str_append(str, "%s", "\n"); - h5tools_str_indent(str, info, ctx); - - /* Block coordinates */ - h5tools_str_append(str, "%s ", BLOCK); - for (j = 0; j < ndims; j++) { - if(block[j] == H5S_UNLIMITED) - h5tools_str_append(str, "%s%s", j ? "," : "(","H5S_UNLIMITED"); - else - h5tools_str_append(str, "%s" HSIZE_T_FORMAT, j ? "," : "(", block[j]); - } - h5tools_str_append(str, ")"); -} - -/*------------------------------------------------------------------------- * Function: h5tools_str_dump_space_blocks * * Purpose: Prints information about a dataspace selection by appending @@ -1458,8 +1391,8 @@ h5tools_str_replace ( const char *string, const char *substr, const char *replac char *tok = NULL; char *newstr = NULL; char *head = NULL; - - if(substr == NULL || replacement == NULL) + + if(substr == NULL || replacement == NULL) return HDstrdup(string); newstr = HDstrdup(string); head = newstr; @@ -1470,8 +1403,8 @@ h5tools_str_replace ( const char *string, const char *substr, const char *replac newstr = (char *)HDmalloc(HDstrlen(oldstr) - HDstrlen(substr) + HDstrlen(replacement) + 1); if(newstr == NULL) { - HDfree(oldstr); - return NULL; + HDfree(oldstr); + return NULL; } HDmemcpy(newstr, oldstr, (size_t)(tok - oldstr)); HDmemcpy(newstr + (tok - oldstr), replacement, HDstrlen(replacement)); diff --git a/tools/lib/h5tools_str.h b/tools/lib/h5tools_str.h index 6173b89..8d4c042 100644 --- a/tools/lib/h5tools_str.h +++ b/tools/lib/h5tools_str.h @@ -40,7 +40,6 @@ H5TOOLS_DLL char *h5tools_str_prefix(h5tools_str_t *str, const h5tool_format_ H5TOOLS_DLL char *h5tools_str_region_prefix(h5tools_str_t *str, const h5tool_format_t *info, hsize_t elmtno, hsize_t *ptdata, unsigned ndims, hsize_t max_idx[], h5tools_context_t *ctx); -H5TOOLS_DLL void h5tools_str_dump_space_slabs(h5tools_str_t *, hid_t, const h5tool_format_t *, h5tools_context_t *ctx); H5TOOLS_DLL void h5tools_str_dump_space_blocks(h5tools_str_t *, hid_t, const h5tool_format_t *); H5TOOLS_DLL void h5tools_str_dump_space_points(h5tools_str_t *, hid_t, const h5tool_format_t *); H5TOOLS_DLL void h5tools_str_sprint_region(h5tools_str_t *str, const h5tool_format_t *info, hid_t container, |