From 83292cf765186eeb7e377676a66c42e36d9f1edf Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Wed, 26 Jan 2011 16:54:49 -0500 Subject: [svn-r20007] Purpose: Clean up tool code. Remove "h5test.h" from tool code. Currently only in h5repack. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), linew (solaris-BE), tejeda (mac32-LE) --- tools/h5repack/h5repack.h | 1 + tools/h5repack/h5repack_filters.c | 9 ++++++++- tools/h5repack/h5repack_verify.c | 6 +++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tools/h5repack/h5repack.h b/tools/h5repack/h5repack.h index f7445ac..163b277 100644 --- a/tools/h5repack/h5repack.h +++ b/tools/h5repack/h5repack.h @@ -17,6 +17,7 @@ #ifndef H5REPACK_H__ #define H5REPACK_H__ +#include #include "hdf5.h" #include "h5trav.h" diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c index 8075a77..c7d8b1e 100644 --- a/tools/h5repack/h5repack_filters.c +++ b/tools/h5repack/h5repack_filters.c @@ -14,9 +14,16 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include "h5repack.h" -#include "h5test.h" #include "h5tools.h" +/* number of members in an array */ +#ifndef NELMTS +# define NELMTS(X) (sizeof(X)/sizeof(X[0])) +#endif + +/* minimum of two values */ +#undef MIN +#define MIN(a,b) (((a)<(b)) ? (a) : (b)) /*------------------------------------------------------------------------- * Function: aux_find_obj diff --git a/tools/h5repack/h5repack_verify.c b/tools/h5repack/h5repack_verify.c index d83f23b..2aabd46 100644 --- a/tools/h5repack/h5repack_verify.c +++ b/tools/h5repack/h5repack_verify.c @@ -14,9 +14,13 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include "h5repack.h" -#include "h5test.h" #include "h5tools_utils.h" +/* number of members in an array */ +#ifndef NELMTS +# define NELMTS(X) (sizeof(X)/sizeof(X[0])) +#endif + static int verify_layout(hid_t pid, pack_info_t *obj); static int verify_filters(hid_t pid, hid_t tid, int nfilters, filter_info_t *filter); -- cgit v0.12