diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 2000-05-09 18:14:33 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 2000-05-09 18:14:33 (GMT) |
commit | 6f5d6505a1f919620267236672c5c9056dd69313 (patch) | |
tree | eb9bb754f945ea8640efbd4ab5ef50fff80b652c /tools | |
parent | aabe212546dd320f12ab64d7e081d78291bdafff (diff) | |
download | hdf5-6f5d6505a1f919620267236672c5c9056dd69313.zip hdf5-6f5d6505a1f919620267236672c5c9056dd69313.tar.gz hdf5-6f5d6505a1f919620267236672c5c9056dd69313.tar.bz2 |
[svn-r2232] removed the conditional compile statements that we were going to use
for the merged tools lib since these files do not require the tools lib
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5debug.c | 27 | ||||
-rw-r--r-- | tools/h5import.c | 15 | ||||
-rw-r--r-- | tools/h5repart.c | 18 |
3 files changed, 2 insertions, 58 deletions
diff --git a/tools/h5debug.c b/tools/h5debug.c index 13826d5..c2364a1 100644 --- a/tools/h5debug.c +++ b/tools/h5debug.c @@ -23,11 +23,10 @@ #include <H5HGprivate.h> #include <H5HLprivate.h> #include <H5Oprivate.h> -#include <h5tools.h> + /* File drivers */ -#ifdef VERSION13 #include <H5FDfamily.h> -#endif + #define INDENT 3 #define VCOL 50 @@ -55,30 +54,17 @@ main(int argc, char *argv[]) { hid_t fid, plist=H5P_DEFAULT; H5F_t *f; -#if defined VERSION13 haddr_t addr=0, extra=0; -#elif defined VERSION12 - haddr_t *addr,*extra; -#endif uint8_t sig[16]; intn i, ndims; herr_t status = SUCCEED; -#if defined VERSION12 - addr = malloc(sizeof(haddr_t)); - extra = malloc(sizeof(haddr_t)); - addr->offset = 0; - extra->offset = 0; -#endif - /* * Open the file and get the file descriptor. */ if (strchr (argv[1], '%')) { plist = H5Pcreate (H5P_FILE_ACCESS); -#if defined VERSION13 H5Pset_fapl_family (plist, 0, H5P_DEFAULT); -#endif } if ((fid = H5Fopen(argv[1], H5F_ACC_RDONLY, plist)) < 0) { fprintf(stderr, "cannot open file\n"); @@ -94,24 +80,15 @@ main(int argc, char *argv[]) */ if (argc > 2) { printf("New address: %s\n", argv[2]); -#if defined VERSION13 addr = HDstrtoll(argv[2], NULL, 0); -#elif defined VERSION12 - addr->offset = HDstrtoll(argv[2], NULL, 0); -#endif } if (argc > 3) { -#if defined VERSION13 extra = HDstrtoll(argv[3], NULL, 0); -#elif defined VERSION12 - extra->offset = HDstrtoll(argv[3], NULL, 0); -#endif } /* * Read the signature at the specified file position. */ HDfprintf(stdout, "Reading signature at address %a (rel)\n", addr); - if (H5F_block_read(f, addr, (hsize_t)sizeof(sig), H5P_DEFAULT, sig)<0) { fprintf(stderr, "cannot read signature\n"); HDexit(3); diff --git a/tools/h5import.c b/tools/h5import.c index a54c98f..53fae0b 100644 --- a/tools/h5import.c +++ b/tools/h5import.c @@ -10,36 +10,21 @@ /* See H5private.h for how to include system headers */ #include <hdf5.h> -#include <h5tools.c> #ifdef H5_STDC_HEADERS # include <fcntl.h> # include <string.h> # include <stdlib.h> # include <stdio.h> -#elif defined STDC_HEADERS -# include <fcntl.h> -# include <string.h> -# include <stdlib.h> -# include <stdio.h> #endif #ifdef H5_HAVE_UNISTD_H # include <sys/types.h> # include <unistd.h> -#elif defined HAVE_UNISTD_H -# include <sys/types.h> -# include <unistd.h> #endif -#if defined VERSION12 -#ifdef HAVE_SYS_STAT_H -# include <sys/stat.h> -#endif -#elif defined VERSION13 #ifdef H5_HAVE_SYS_STAT_H # include <sys/stat.h> #endif -#endif diff --git a/tools/h5repart.c b/tools/h5repart.c index 74acb26..6704f38 100644 --- a/tools/h5repart.c +++ b/tools/h5repart.c @@ -14,7 +14,6 @@ /* See H5private.h for how to include system headers */ #include <hdf5.h> -#include <h5tools.h> #ifdef H5_STDC_HEADERS # include <ctype.h> # include <errno.h> @@ -22,33 +21,16 @@ # include <stdio.h> # include <stdlib.h> # include <string.h> -#elif defined STDC_HEADERS -# include <ctype.h> -# include <errno.h> -# include <fcntl.h> -# include <stdio.h> -# include <stdlib.h> -# include <string.h> #endif #ifdef H5_HAVE_UNISTD_H # include <sys/types.h> # include <unistd.h> -#elif defined HAVE_UNISTD_H -# include <sys/types.h> -# include <unistd.h> #endif - -#if defined VERSION12 -#ifdef HAVE_SYS_STAT_H -# include <sys/stat.h> -#endif -#elif defined VERSION13 #ifdef H5_HAVE_SYS_STAT_H # include <sys/stat.h> #endif -#endif #ifndef FALSE #define FALSE 0 |