summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.h
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>2000-06-23 17:52:21 (GMT)
committerRobb Matzke <matzke@llnl.gov>2000-06-23 17:52:21 (GMT)
commit96f9f1859b73ba3a8d2364ffb6488fc899f9d158 (patch)
treed632007f62c2093809af48bdc5de8597cc0e8a61 /tools/h5tools.h
parent4aa0e950f9636066718d3786b1dbe09e70f413c4 (diff)
downloadhdf5-96f9f1859b73ba3a8d2364ffb6488fc899f9d158.zip
hdf5-96f9f1859b73ba3a8d2364ffb6488fc899f9d158.tar.gz
hdf5-96f9f1859b73ba3a8d2364ffb6488fc899f9d158.tar.bz2
[svn-r2412] Fixed a variety of problems with the new H5ToolsFopen() function.
1. The `driver' table is initialized only once, making it faster and leaking less memory. 2. The returned driver name is set to the empty string on failure. 3. Added an argument so the function cannot overwrite the end of the drivername return value. 4. Avoids core dump when assigning driver name to return value if the file could not be opened by any driver. 5. Changed name of function to h5dump_fopen() to follow the naming scheme for this source file. 6. Reindented according to hdf5 code standard. 7. Added `const' qualifiers to read-only formals. 8. Removed duplicate forward declaration. Reindented some parts of these source files that had very odd indentation (some lines had no indentation while others had 3x what they should). Fixed calls to H5ToolsFopen() function.
Diffstat (limited to 'tools/h5tools.h')
-rw-r--r--tools/h5tools.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/h5tools.h b/tools/h5tools.h
index 44432b4..bd28065 100644
--- a/tools/h5tools.h
+++ b/tools/h5tools.h
@@ -338,6 +338,7 @@ hid_t h5dump_fixtype(hid_t f_type);
int h5dump_dset(FILE *stream, const h5dump_t *info, hid_t dset, hid_t p_typ,int indentlevel);
int h5dump_mem(FILE *stream, const h5dump_t *info, hid_t type, hid_t space,
void *mem, int indentlevel);
+hid_t h5dump_fopen(const char *fname, char *drivername, size_t drivername_len);
/*if we get a new program that needs to use the library add its name here*/
@@ -434,8 +435,3 @@ extern int nCols;
/* Definitions of useful routines */
void print_version(const char *program_name);
-/*used to open files so we can use different drivers*/
-hid_t H5ToolsFopen(char* fname, char* drivername);
-
-#define NDRIVERS 10
-