diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-06-04 15:47:23 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-06-04 15:47:23 (GMT) |
commit | a7c167e38969aeb2bc98c6f03e0a9a0584cacfb5 (patch) | |
tree | 7d3902571ec793daef6aa79fcd615f14df543310 /tools | |
parent | 58b40b848ceb2ba1aadbdfc17610a96b45723dac (diff) | |
download | hdf5-a7c167e38969aeb2bc98c6f03e0a9a0584cacfb5.zip hdf5-a7c167e38969aeb2bc98c6f03e0a9a0584cacfb5.tar.gz hdf5-a7c167e38969aeb2bc98c6f03e0a9a0584cacfb5.tar.bz2 |
[svn-r1298]
added a new variable to the tools lib that keeps track of what program is using
the library. h5ls.c and h5dump.c needed to init the variable to the correct
value for the programtype variable. this variable will hopefully only be temporary
until the lib gets combined farther
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5dump.c | 3 | ||||
-rw-r--r-- | tools/h5ls.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c index dde74b5..f50f487 100644 --- a/tools/h5dump.c +++ b/tools/h5dump.c @@ -1267,6 +1267,9 @@ H5Eset_auto (NULL, NULL); exit(1); } +/*init the programtype var fromt he tools lib*/ + programtype = H5DUMP; + opts = malloc((argc/2) * sizeof (int)); opts[0] = -1; /* parse command line options */ diff --git a/tools/h5ls.c b/tools/h5ls.c index cf8e905..e008510 100644 --- a/tools/h5ls.c +++ b/tools/h5ls.c @@ -1741,6 +1741,9 @@ main (int argc, char *argv[]) DISPATCH(H5G_RAGGED, "Ragged Array", H5Gopen, H5Gclose, NULL, ragged_list2); + /*init the programtype var fromthe tools lib*/ + programtype = H5LS; + /* Name of this program without the path */ if ((progname=strrchr(argv[0], '/'))) progname++; else progname = argv[0]; |