From bc66efc788bc77c9c133a9fc3cc29e26fa659bab Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Wed, 12 Apr 2006 16:21:38 -0500 Subject: [PATCH] [svn-r12229] Purpose: new feature Description: 1) separated the HL library into "public" and "private" header files, with the same caracteristics as the basic library 2) added the public headers to hdf5.h (with a conditional include macro, defined in configure.in) 3) added the path to HL in all Makefile.am 's , because of the inclusion in hdf5.h Solution: Platforms tested: linux 32, 64 AIX solaris with fortran and c++ (one packet table example fails) Misc. update: --- MANIFEST | 16 ++- Makefile.in | 3 + c++/Makefile.in | 3 + c++/examples/Makefile.in | 3 + c++/src/Makefile.am | 2 +- c++/src/Makefile.in | 8 +- c++/test/Makefile.am | 2 +- c++/test/Makefile.in | 9 +- config/commence.am | 3 + configure | 5 + configure.in | 2 + examples/Makefile.in | 3 + fortran/Makefile.in | 3 + fortran/examples/Makefile.in | 3 + fortran/src/Makefile.am | 2 +- fortran/src/Makefile.in | 10 +- fortran/test/Makefile.am | 2 +- fortran/test/Makefile.in | 5 +- fortran/testpar/Makefile.in | 3 + hl/Makefile.in | 3 + hl/c++/Makefile.in | 3 + hl/c++/examples/Makefile.in | 3 + hl/c++/src/H5PacketTable.h | 2 +- hl/c++/src/Makefile.am | 2 +- hl/c++/src/Makefile.in | 9 +- hl/c++/test/Makefile.am | 2 +- hl/c++/test/Makefile.in | 10 +- hl/examples/Makefile.in | 3 + hl/examples/ex_ds1.c | 4 +- hl/examples/ex_image1.c | 2 +- hl/examples/ex_image2.c | 2 +- hl/examples/ex_lite1.c | 2 +- hl/examples/ex_lite2.c | 2 +- hl/examples/ex_lite3.c | 2 +- hl/examples/ex_table_01.c | 2 +- hl/examples/ex_table_02.c | 2 +- hl/examples/ex_table_03.c | 2 +- hl/examples/ex_table_04.c | 2 +- hl/examples/ex_table_05.c | 2 +- hl/examples/ex_table_06.c | 2 +- hl/examples/ex_table_07.c | 2 +- hl/examples/ex_table_08.c | 2 +- hl/examples/ex_table_09.c | 2 +- hl/examples/ex_table_10.c | 2 +- hl/examples/ex_table_11.c | 2 +- hl/examples/ex_table_12.c | 2 +- hl/examples/ptExampleFL.c | 2 +- hl/examples/ptExampleVL.c | 2 +- hl/fortran/Makefile.in | 3 + hl/fortran/examples/Makefile.in | 3 + hl/fortran/src/H5IMcc.c | 2 +- hl/fortran/src/H5IMcc.h | 4 +- hl/fortran/src/H5IMfc.c | 2 +- hl/fortran/src/H5LTfc.c | 2 +- hl/fortran/src/H5TBfc.c | 2 +- hl/fortran/src/Makefile.am | 2 +- hl/fortran/src/Makefile.in | 8 +- hl/fortran/test/Makefile.in | 3 + hl/src/H5DS.c | 27 +++-- hl/src/H5DSprivate.h | 58 ++++++++++ hl/src/{H5DS.h => H5DSpublic.h} | 32 +----- hl/src/H5HL_private.c | 169 --------------------------- hl/src/H5IM.c | 6 +- hl/src/H5IMprivate.h | 43 +++++++ hl/src/{H5IM.h => H5IMpublic.h} | 14 +-- hl/src/H5LT.c | 8 +- hl/src/H5LTprivate.h | 70 ++++++++++++ hl/src/{H5LT.h => H5LTpublic.h} | 55 +-------- hl/src/H5PT.c | 4 +- hl/src/H5PTprivate.h | 22 ++++ hl/src/{H5PT.h => H5PTpublic.h} | 18 ++- hl/src/H5TB.c | 196 ++++++++++++++++++++++++++++---- hl/src/H5TBprivate.h | 58 ++++++++++ hl/src/{H5TB.h => H5TBpublic.h} | 22 +--- hl/src/Makefile.am | 4 +- hl/src/Makefile.in | 10 +- hl/test/Makefile.in | 3 + hl/test/test_ds.c | 34 +++--- hl/test/test_image.c | 3 +- hl/test/test_lite.c | 2 +- hl/test/test_packet.c | 4 +- hl/test/test_table.c | 2 +- hl/tools/Makefile.in | 3 + hl/tools/gif2h5/Makefile.am | 2 +- hl/tools/gif2h5/Makefile.in | 9 +- hl/tools/gif2h5/writehdf.c | 2 +- perform/Makefile.am | 2 +- perform/Makefile.in | 5 +- src/H5config.h.in | 3 + src/Makefile.am | 1 + src/Makefile.in | 3 + src/hdf5.h | 8 ++ test/Makefile.am | 2 +- test/Makefile.in | 5 +- testpar/Makefile.am | 2 +- testpar/Makefile.in | 5 +- tools/Makefile.in | 3 + tools/h5diff/Makefile.am | 2 +- tools/h5diff/Makefile.in | 9 +- tools/h5dump/Makefile.am | 2 +- tools/h5dump/Makefile.in | 9 +- tools/h5import/Makefile.am | 2 +- tools/h5import/Makefile.in | 9 +- tools/h5jam/Makefile.am | 2 +- tools/h5jam/Makefile.in | 9 +- tools/h5ls/Makefile.am | 2 +- tools/h5ls/Makefile.in | 9 +- tools/h5repack/Makefile.am | 2 +- tools/h5repack/Makefile.in | 9 +- tools/lib/Makefile.am | 2 +- tools/lib/Makefile.in | 8 +- tools/misc/Makefile.am | 2 +- tools/misc/Makefile.in | 8 +- 113 files changed, 738 insertions(+), 464 deletions(-) create mode 100644 hl/src/H5DSprivate.h rename hl/src/{H5DS.h => H5DSpublic.h} (77%) delete mode 100644 hl/src/H5HL_private.c create mode 100644 hl/src/H5IMprivate.h rename hl/src/{H5IM.h => H5IMpublic.h} (94%) create mode 100644 hl/src/H5LTprivate.h rename hl/src/{H5LT.h => H5LTpublic.h} (88%) create mode 100644 hl/src/H5PTprivate.h rename hl/src/{H5PT.h => H5PTpublic.h} (92%) create mode 100644 hl/src/H5TBprivate.h rename hl/src/{H5TB.h => H5TBpublic.h} (97%) diff --git a/MANIFEST b/MANIFEST index a1d1d332be..09c252e3a5 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1290,22 +1290,26 @@ ./hl/src/Makefile.am ./hl/src/Makefile.in ./hl/src/H5IM.c -./hl/src/H5IM.h ./hl/src/H5LT.c -./hl/src/H5LT.h ./hl/src/H5TB.c -./hl/src/H5TB.h ./hl/src/H5DS.c -./hl/src/H5DS.h ./hl/src/H5PT.c -./hl/src/H5PT.h ./hl/src/H5HL_private.c -./hl/src/H5HL_private.h ./hl/src/H5LTanalyze.l ./hl/src/H5LTanalyze.c ./hl/src/H5LTparse.y ./hl/src/H5LTparse.c ./hl/src/H5LTparse.h +./hl/src/H5DSprivate.h +./hl/src/H5DSpublic.h +./hl/src/H5IMprivate.h +./hl/src/H5IMpublic.h +./hl/src/H5LTprivate.h +./hl/src/H5LTpublic.h +./hl/src/H5PTprivate.h +./hl/src/H5PTpublic.h +./hl/src/H5TBprivate.h +./hl/src/H5TBpublic.h ./hl/test/Makefile.am ./hl/test/Makefile.in ./hl/test/test_image.c diff --git a/Makefile.in b/Makefile.in index 0b53cbbd2a..11a7072b8b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -297,6 +297,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/c++/Makefile.in b/c++/Makefile.in index 9f8e55822c..5e3f2afc6b 100644 --- a/c++/Makefile.in +++ b/c++/Makefile.in @@ -267,6 +267,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/c++/examples/Makefile.in b/c++/examples/Makefile.in index 8b84eb277c..85ae764778 100644 --- a/c++/examples/Makefile.in +++ b/c++/examples/Makefile.in @@ -264,6 +264,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/c++/src/Makefile.am b/c++/src/Makefile.am index 924d25c8b3..42c7834380 100644 --- a/c++/src/Makefile.am +++ b/c++/src/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src directory -INCLUDES=-I$(top_srcdir)/src +INCLUDES+=-I$(top_srcdir)/src # This is our main target lib_LTLIBRARIES=libhdf5_cpp.la diff --git a/c++/src/Makefile.in b/c++/src/Makefile.in index 18ab3b65ad..cdf1b3c379 100644 --- a/c++/src/Makefile.in +++ b/c++/src/Makefile.in @@ -301,6 +301,11 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src directory +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -345,9 +350,6 @@ TRACE = perl $(top_srcdir)/bin/trace # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -# Include src directory -INCLUDES = -I$(top_srcdir)/src - # This is our main target lib_LTLIBRARIES = libhdf5_cpp.la diff --git a/c++/test/Makefile.am b/c++/test/Makefile.am index 35de101026..51500bf354 100644 --- a/c++/test/Makefile.am +++ b/c++/test/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src, test, and c++/src directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/c++/src +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/c++/src # Shared C++ libraries aren't universally supported. if CXX_SHARED_CONDITIONAL diff --git a/c++/test/Makefile.in b/c++/test/Makefile.in index 41b468df4a..00f85dffd2 100644 --- a/c++/test/Makefile.in +++ b/c++/test/Makefile.in @@ -290,6 +290,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src, test, and c++/src directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/test -I$(top_srcdir)/c++/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -334,9 +340,6 @@ TRACE = perl $(top_srcdir)/bin/trace # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -# Include src, test, and c++/src directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/c++/src - # Shared C++ libraries aren't universally supported. @CXX_SHARED_CONDITIONAL_FALSE@AM_LDFLAGS = -static diff --git a/config/commence.am b/config/commence.am index 6d2f1eb285..e70b50e80c 100644 --- a/config/commence.am +++ b/config/commence.am @@ -21,6 +21,9 @@ RM=rm -f CP=cp TIME=time +# Path for hl needed in hdf5.h +INCLUDES=-I$(top_srcdir)/hl/src + # Hardcode SHELL to be /bin/sh. Most machines have this shell, and # on at least one machine configure fails to detect its existence (janus). # Also, when HDF5 is configured on one machine but run on another, diff --git a/configure b/configure index f1ace0c6b6..6117660e95 100755 --- a/configure +++ b/configure @@ -51145,6 +51145,11 @@ fi; if test "X$HDF5_HL" = "Xyes"; then echo "yes" HL="hl" + +cat >>confdefs.h <<\_ACEOF +#define INCLUDE_HL 1 +_ACEOF + else echo "no" fi diff --git a/configure.in b/configure.in index a7e7f03ed3..35cbc1c736 100644 --- a/configure.in +++ b/configure.in @@ -3207,6 +3207,8 @@ AC_ARG_ENABLE([hl], if test "X$HDF5_HL" = "Xyes"; then echo "yes" HL="hl" + AC_DEFINE([INCLUDE_HL], [1], + [Define if HDF5's high-level library headers should be included in hdf5.h]) else echo "no" fi diff --git a/examples/Makefile.in b/examples/Makefile.in index 9cda3120f4..fb95fd4e79 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -264,6 +264,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/fortran/Makefile.in b/fortran/Makefile.in index 40377fa618..848bd7722d 100644 --- a/fortran/Makefile.in +++ b/fortran/Makefile.in @@ -271,6 +271,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/fortran/examples/Makefile.in b/fortran/examples/Makefile.in index 683996f8b3..65910137f6 100644 --- a/fortran/examples/Makefile.in +++ b/fortran/examples/Makefile.in @@ -264,6 +264,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/fortran/src/Makefile.am b/fortran/src/Makefile.am index 52854a3588..6188359a13 100644 --- a/fortran/src/Makefile.am +++ b/fortran/src/Makefile.am @@ -21,7 +21,7 @@ include $(top_srcdir)/config/commence.am # Include src directory in both Fortran and C flags (C compiler is used # for linking). -INCLUDES = -I$(top_srcdir)/src +INCLUDES += -I$(top_srcdir)/src AM_FCFLAGS=-I$(top_srcdir)/src -I$(top_srcdir)/fortran/src AM_FCLIBS=$(LIBHDF5) diff --git a/fortran/src/Makefile.in b/fortran/src/Makefile.in index 3f94a1e73f..5c8d792e2b 100644 --- a/fortran/src/Makefile.in +++ b/fortran/src/Makefile.in @@ -326,6 +326,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src directory in both Fortran and C flags (C compiler is used +# for linking). +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -369,10 +375,6 @@ TRACE = perl $(top_srcdir)/bin/trace # .chklog files are output from those tests. # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog - -# Include src directory in both Fortran and C flags (C compiler is used -# for linking). -INCLUDES = -I$(top_srcdir)/src AM_FCFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/fortran/src AM_FCLIBS = $(LIBHDF5) diff --git a/fortran/test/Makefile.am b/fortran/test/Makefile.am index 5301b90ee8..360f8f0118 100644 --- a/fortran/test/Makefile.am +++ b/fortran/test/Makefile.am @@ -21,7 +21,7 @@ include $(top_srcdir)/config/commence.am # Include files AM_FCFLAGS=-I$(top_builddir)/fortran/src $(F9XMODFLAG)$(top_builddir)/fortran/src -INCLUDES=-I$(top_srcdir)/src -I$(top_builddir)/fortran/src +INCLUDES+=-I$(top_srcdir)/src -I$(top_builddir)/fortran/src # The Fortran test library noinst_LTLIBRARIES=libh5test_fortran.la diff --git a/fortran/test/Makefile.in b/fortran/test/Makefile.in index 1915660844..ca5b8e5e99 100644 --- a/fortran/test/Makefile.in +++ b/fortran/test/Makefile.in @@ -320,6 +320,10 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_builddir)/fortran/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -368,7 +372,6 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5 # Include files AM_FCFLAGS = -I$(top_builddir)/fortran/src $(F9XMODFLAG)$(top_builddir)/fortran/src -INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/fortran/src # The Fortran test library noinst_LTLIBRARIES = libh5test_fortran.la diff --git a/fortran/testpar/Makefile.in b/fortran/testpar/Makefile.in index 595fff58c6..da9d96dcb6 100644 --- a/fortran/testpar/Makefile.in +++ b/fortran/testpar/Makefile.in @@ -283,6 +283,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/Makefile.in b/hl/Makefile.in index 7e6629d99f..14dfb78208 100755 --- a/hl/Makefile.in +++ b/hl/Makefile.in @@ -271,6 +271,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/c++/Makefile.in b/hl/c++/Makefile.in index d57a8b3934..27afbacf63 100644 --- a/hl/c++/Makefile.in +++ b/hl/c++/Makefile.in @@ -267,6 +267,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/c++/examples/Makefile.in b/hl/c++/examples/Makefile.in index 2332adf968..8fd10527a7 100644 --- a/hl/c++/examples/Makefile.in +++ b/hl/c++/examples/Makefile.in @@ -264,6 +264,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/c++/src/H5PacketTable.h b/hl/c++/src/H5PacketTable.h index 518aa2301e..71c9de50ba 100644 --- a/hl/c++/src/H5PacketTable.h +++ b/hl/c++/src/H5PacketTable.h @@ -23,7 +23,7 @@ #ifndef H5PTWRAP_H #define H5PTWRAP_H -#include "H5PT.h" +#include "H5PTpublic.h" class H5_HLCPPDLL PacketTable { diff --git a/hl/c++/src/Makefile.am b/hl/c++/src/Makefile.am index 63e95b62ff..ad1e06ce2a 100644 --- a/hl/c++/src/Makefile.am +++ b/hl/c++/src/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src directory -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/hl/src +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/hl/src # This is our main target lib_LTLIBRARIES=libhdf5_hl_cpp.la diff --git a/hl/c++/src/Makefile.in b/hl/c++/src/Makefile.in index 89296c22ed..c8e43833d2 100644 --- a/hl/c++/src/Makefile.in +++ b/hl/c++/src/Makefile.in @@ -290,6 +290,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src directory +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -334,9 +340,6 @@ TRACE = perl $(top_srcdir)/bin/trace # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -# Include src directory -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/hl/src - # This is our main target lib_LTLIBRARIES = libhdf5_hl_cpp.la diff --git a/hl/c++/test/Makefile.am b/hl/c++/test/Makefile.am index d438e412a9..c69d0e00ee 100644 --- a/hl/c++/test/Makefile.am +++ b/hl/c++/test/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/hl/src -I$(top_srcdir)/hl/c++/src -I$(top_srcdir)/test +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/hl/src -I$(top_srcdir)/hl/c++/src -I$(top_srcdir)/test # Shared C++ libraries aren't universally supported. if CXX_SHARED_CONDITIONAL diff --git a/hl/c++/test/Makefile.in b/hl/c++/test/Makefile.in index 4aeb064f6e..8ebea415ee 100644 --- a/hl/c++/test/Makefile.in +++ b/hl/c++/test/Makefile.in @@ -284,6 +284,13 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/hl/src -I$(top_srcdir)/hl/c++/src \ + -I$(top_srcdir)/test + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -328,9 +335,6 @@ TRACE = perl $(top_srcdir)/bin/trace # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -# Include directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/hl/src -I$(top_srcdir)/hl/c++/src -I$(top_srcdir)/test - # Shared C++ libraries aren't universally supported. @CXX_SHARED_CONDITIONAL_FALSE@AM_LDFLAGS = -static diff --git a/hl/examples/Makefile.in b/hl/examples/Makefile.in index 3a48602c47..10c65d01db 100644 --- a/hl/examples/Makefile.in +++ b/hl/examples/Makefile.in @@ -264,6 +264,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/examples/ex_ds1.c b/hl/examples/ex_ds1.c index 5db5e1da55..0bcfe10000 100644 --- a/hl/examples/ex_ds1.c +++ b/hl/examples/ex_ds1.c @@ -12,8 +12,8 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5DS.h" -#include "H5LT.h" +#include "hdf5.h" + #define RANK 2 #define DIM_DATA 12 diff --git a/hl/examples/ex_image1.c b/hl/examples/ex_image1.c index 0535cbcb26..a2ac8844b0 100644 --- a/hl/examples/ex_image1.c +++ b/hl/examples/ex_image1.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5IM.h" +#include "hdf5.h" #define WIDTH (hsize_t)400 #define HEIGHT (hsize_t)200 diff --git a/hl/examples/ex_image2.c b/hl/examples/ex_image2.c index 6740b0600c..0b4038c8f5 100644 --- a/hl/examples/ex_image2.c +++ b/hl/examples/ex_image2.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5IM.h" +#include "hdf5.h" #include #include diff --git a/hl/examples/ex_lite1.c b/hl/examples/ex_lite1.c index 6915b5939b..1c709f5891 100644 --- a/hl/examples/ex_lite1.c +++ b/hl/examples/ex_lite1.c @@ -13,7 +13,7 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5LT.h" +#include "hdf5.h" #define RANK 2 diff --git a/hl/examples/ex_lite2.c b/hl/examples/ex_lite2.c index eee213dc12..181bf838c5 100644 --- a/hl/examples/ex_lite2.c +++ b/hl/examples/ex_lite2.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5LT.h" +#include "hdf5.h" int main( void ) { diff --git a/hl/examples/ex_lite3.c b/hl/examples/ex_lite3.c index 34c798aa1b..c205b58efd 100644 --- a/hl/examples/ex_lite3.c +++ b/hl/examples/ex_lite3.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5LT.h" +#include "hdf5.h" #include #define ATTR_SIZE 5 diff --git a/hl/examples/ex_table_01.c b/hl/examples/ex_table_01.c index 0b4cc9c464..b9ca3a19f2 100644 --- a/hl/examples/ex_table_01.c +++ b/hl/examples/ex_table_01.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_02.c b/hl/examples/ex_table_02.c index 16cf33e693..71671c187d 100644 --- a/hl/examples/ex_table_02.c +++ b/hl/examples/ex_table_02.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_03.c b/hl/examples/ex_table_03.c index fbe66a1ea3..f8287e1d2c 100644 --- a/hl/examples/ex_table_03.c +++ b/hl/examples/ex_table_03.c @@ -13,7 +13,7 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_04.c b/hl/examples/ex_table_04.c index f31cc40903..4f378e13ce 100644 --- a/hl/examples/ex_table_04.c +++ b/hl/examples/ex_table_04.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_05.c b/hl/examples/ex_table_05.c index e658ee3a7a..321c060b61 100644 --- a/hl/examples/ex_table_05.c +++ b/hl/examples/ex_table_05.c @@ -13,7 +13,7 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_06.c b/hl/examples/ex_table_06.c index 8d48b3cb75..c755ed0bdb 100644 --- a/hl/examples/ex_table_06.c +++ b/hl/examples/ex_table_06.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_07.c b/hl/examples/ex_table_07.c index f577c597bc..6f73d10295 100644 --- a/hl/examples/ex_table_07.c +++ b/hl/examples/ex_table_07.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_08.c b/hl/examples/ex_table_08.c index 0be5bbcbb4..e77c6324e9 100644 --- a/hl/examples/ex_table_08.c +++ b/hl/examples/ex_table_08.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_09.c b/hl/examples/ex_table_09.c index 164f6aac2c..67dc2ce388 100644 --- a/hl/examples/ex_table_09.c +++ b/hl/examples/ex_table_09.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_10.c b/hl/examples/ex_table_10.c index b1e6705a42..ef84446ff6 100644 --- a/hl/examples/ex_table_10.c +++ b/hl/examples/ex_table_10.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_11.c b/hl/examples/ex_table_11.c index 4d12fd7692..81af4e4e45 100644 --- a/hl/examples/ex_table_11.c +++ b/hl/examples/ex_table_11.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ex_table_12.c b/hl/examples/ex_table_12.c index 3f44bf18cf..17bcf7e77d 100644 --- a/hl/examples/ex_table_12.c +++ b/hl/examples/ex_table_12.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ptExampleFL.c b/hl/examples/ptExampleFL.c index 0dbf935ff5..1596f7a176 100644 --- a/hl/examples/ptExampleFL.c +++ b/hl/examples/ptExampleFL.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5PT.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/examples/ptExampleVL.c b/hl/examples/ptExampleVL.c index b813b547c8..eebb3c3e41 100644 --- a/hl/examples/ptExampleVL.c +++ b/hl/examples/ptExampleVL.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5PT.h" +#include "hdf5.h" #include /*------------------------------------------------------------------------- diff --git a/hl/fortran/Makefile.in b/hl/fortran/Makefile.in index 51dfe3d7d6..15b15a2b10 100644 --- a/hl/fortran/Makefile.in +++ b/hl/fortran/Makefile.in @@ -271,6 +271,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/fortran/examples/Makefile.in b/hl/fortran/examples/Makefile.in index 14b34db90d..fdecd77ef6 100644 --- a/hl/fortran/examples/Makefile.in +++ b/hl/fortran/examples/Makefile.in @@ -264,6 +264,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/fortran/src/H5IMcc.c b/hl/fortran/src/H5IMcc.c index 9e14d6ec23..19a99ba167 100644 --- a/hl/fortran/src/H5IMcc.c +++ b/hl/fortran/src/H5IMcc.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5IM.h" +#include "H5IMprivate.h" #include "H5IMcc.h" #include "H5f90i_gen.h" diff --git a/hl/fortran/src/H5IMcc.h b/hl/fortran/src/H5IMcc.h index b16eeb22e4..54666c4b37 100644 --- a/hl/fortran/src/H5IMcc.h +++ b/hl/fortran/src/H5IMcc.h @@ -15,8 +15,8 @@ #ifndef _H5IMCC_H #define _H5IMCC_H -#include "H5LT.h" -#include "H5IM.h" +#include "H5LTprivate.h" +#include "H5IMprivate.h" #include "../../fortran/src/H5f90i_gen.h" #ifdef __cplusplus diff --git a/hl/fortran/src/H5IMfc.c b/hl/fortran/src/H5IMfc.c index b024edc763..0062d603ee 100755 --- a/hl/fortran/src/H5IMfc.c +++ b/hl/fortran/src/H5IMfc.c @@ -14,7 +14,7 @@ /* This files contains C stubs for H5D Fortran APIs */ -#include "H5IM.h" +#include "H5IMprivate.h" #include "H5IMcc.h" #include "H5LTf90proto.h" #include "../../../fortran/src/H5f90i_gen.h" diff --git a/hl/fortran/src/H5LTfc.c b/hl/fortran/src/H5LTfc.c index 693eca9c25..d3353c4744 100755 --- a/hl/fortran/src/H5LTfc.c +++ b/hl/fortran/src/H5LTfc.c @@ -14,7 +14,7 @@ /* This files contains C stubs for H5D Fortran APIs */ -#include "H5LT.h" +#include "H5LTprivate.h" #include "H5LTf90proto.h" diff --git a/hl/fortran/src/H5TBfc.c b/hl/fortran/src/H5TBfc.c index 29cf15b6bf..2bce973e5f 100755 --- a/hl/fortran/src/H5TBfc.c +++ b/hl/fortran/src/H5TBfc.c @@ -14,7 +14,7 @@ /* This files contains C stubs for H5D Fortran APIs */ -#include "H5TB.h" +#include "H5TBprivate.h" #include "H5LTf90proto.h" /*------------------------------------------------------------------------- diff --git a/hl/fortran/src/Makefile.am b/hl/fortran/src/Makefile.am index 6ee69cfe50..9fe86189ea 100644 --- a/hl/fortran/src/Makefile.am +++ b/hl/fortran/src/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/hl/src -I$(top_builddir)/hl/src \ +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/hl/src -I$(top_builddir)/hl/src \ -I$(top_srcdir)/fortran/src -I$(top_builddir)/fortran/src AM_FCFLAGS=-I$(top_builddir)/fortran/src $(F9XMODFLAG)$(top_builddir)/fortran/src diff --git a/hl/fortran/src/Makefile.in b/hl/fortran/src/Makefile.in index e73d461a15..67a789ca8a 100644 --- a/hl/fortran/src/Makefile.in +++ b/hl/fortran/src/Makefile.in @@ -293,6 +293,11 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/hl/src -I$(top_builddir)/hl/src \ + -I$(top_srcdir)/fortran/src -I$(top_builddir)/fortran/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -336,9 +341,6 @@ TRACE = perl $(top_srcdir)/bin/trace # .chklog files are output from those tests. # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/hl/src -I$(top_builddir)/hl/src \ - -I$(top_srcdir)/fortran/src -I$(top_builddir)/fortran/src - AM_FCFLAGS = -I$(top_builddir)/fortran/src $(F9XMODFLAG)$(top_builddir)/fortran/src # Our main target, the high-level fortran library diff --git a/hl/fortran/test/Makefile.in b/hl/fortran/test/Makefile.in index 521d214725..7c43420648 100644 --- a/hl/fortran/test/Makefile.in +++ b/hl/fortran/test/Makefile.in @@ -292,6 +292,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c index 5d5001d373..0c8c201e54 100644 --- a/hl/src/H5DS.c +++ b/hl/src/H5DS.c @@ -12,12 +12,11 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5private.h" -#include "H5DS.h" -#include "H5LT.h" #include -#include "H5IM.h" -#include "H5TB.h" +#include "H5DSprivate.h" +#include "H5LTprivate.h" +#include "H5IMprivate.h" +#include "H5TBprivate.h" @@ -30,7 +29,7 @@ * If DIMNAME is specified, then an attribute called NAME is created, * with the value DIMNAME. * - * Return: Success: SUCCESS, Failure: FAIL + * Return: Success: SUCCEED, Failure: FAIL * * Programmer: pvn@ncsa.uiuc.edu * @@ -86,7 +85,7 @@ herr_t H5DSset_scale(hid_t dsid, return FAIL; } - return SUCCESS; + return SUCCEED; } @@ -99,7 +98,7 @@ herr_t H5DSset_scale(hid_t dsid, * REFERENCE_LIST attributes. * * Return: - * Success: SUCCESS + * Success: SUCCEED * Failure: FAIL * * Fails if: Bad arguments @@ -540,7 +539,7 @@ herr_t H5DSattach_scale(hid_t did, return FAIL; } - return SUCCESS; + return SUCCEED; /* error zone, gracefully close */ out: @@ -560,7 +559,7 @@ out: * DIMENSION_LIST and REFERENCE_LIST attributes. * * Return: - * Success: SUCCESS + * Success: SUCCEED * Failure: FAIL * * Fails if: Bad arguments @@ -901,7 +900,7 @@ herr_t H5DSdetach_scale(hid_t did, } - return SUCCESS; + return SUCCEED; /* error zone, gracefully close */ out: @@ -1287,7 +1286,7 @@ herr_t H5DSiterate_scales(hid_t did, return FAIL; if (has_dimlist == 0) - return SUCCESS; + return SUCCEED; else if (has_dimlist == 1 ) { @@ -1385,7 +1384,7 @@ out: * * Purpose: Set label for the dimension IDX of dataset DID to the value LABEL * - * Return: Success: SUCCESS, Failure: FAIL + * Return: Success: SUCCEED, Failure: FAIL * * Programmer: pvn@ncsa.uiuc.edu * @@ -1533,7 +1532,7 @@ herr_t H5DSset_label(hid_t did, free(buf); } - return SUCCESS; + return SUCCEED; /* error zone, gracefully close */ out: diff --git a/hl/src/H5DSprivate.h b/hl/src/H5DSprivate.h new file mode 100644 index 0000000000..1d922be5e3 --- /dev/null +++ b/hl/src/H5DSprivate.h @@ -0,0 +1,58 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef _H5DSprivate_H +#define _H5DSprivate_H + +/* public hdf5 prototypes */ +#include "H5Ipublic.h" +#include "H5Tpublic.h" +#include "H5Spublic.h" +#include "H5Dpublic.h" +#include "H5Ppublic.h" +#include "H5Gpublic.h" +#include "H5Apublic.h" +#include "H5Epublic.h" +#include "H5Rpublic.h" + +/* public LT prototypes */ +#include "H5LTpublic.h" +#include "H5DSpublic.h" + + +#define DIMENSION_SCALE_CLASS "DIMENSION_SCALE" +#define DIMENSION_LIST "DIMENSION_LIST" +#define REFERENCE_LIST "REFERENCE_LIST" +#define DIMENSION_LABELS "DIMENSION_LABELS" + + + +/* attribute type of a DS dataset */ +typedef struct ds_list_t { + hobj_ref_t ref; /* object reference */ + int dim_idx; /* dimension index of the dataset */ +} ds_list_t; + + +/*------------------------------------------------------------------------- + * private functions + *------------------------------------------------------------------------- + */ + + +H5_HLDLL herr_t H5DS_is_reserved( hid_t did); + + + +#endif diff --git a/hl/src/H5DS.h b/hl/src/H5DSpublic.h similarity index 77% rename from hl/src/H5DS.h rename to hl/src/H5DSpublic.h index b56590b03a..cfec4719cf 100644 --- a/hl/src/H5DS.h +++ b/hl/src/H5DSpublic.h @@ -12,30 +12,12 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#ifndef _H5DS_H -#define _H5DS_H - -#include - -#ifndef TRUE -#define TRUE 1 -#endif - -#define DIMENSION_SCALE_CLASS "DIMENSION_SCALE" -#define DIMENSION_LIST "DIMENSION_LIST" -#define REFERENCE_LIST "REFERENCE_LIST" -#define DIMENSION_LABELS "DIMENSION_LABELS" +#ifndef _H5DSpublic_H +#define _H5DSpublic_H typedef herr_t (*H5DS_iterate_t)(hid_t dset, unsigned dim, hid_t scale, void *visitor_data); -/* attribute type of a DS dataset */ -typedef struct ds_list_t { - hobj_ref_t ref; /* object reference */ - int dim_idx; /* dimension index of the dataset */ -} ds_list_t; - - #ifdef __cplusplus extern "C" { #endif @@ -81,16 +63,6 @@ H5_HLDLL htri_t H5DSis_attached( hid_t did, -/*------------------------------------------------------------------------- - * private functions - *------------------------------------------------------------------------- - */ - - -H5_HLDLL herr_t H5DS_is_reserved( hid_t did); - - - #ifdef __cplusplus } #endif diff --git a/hl/src/H5HL_private.c b/hl/src/H5HL_private.c deleted file mode 100644 index 3b6377fffc..0000000000 --- a/hl/src/H5HL_private.c +++ /dev/null @@ -1,169 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Copyright by the Board of Trustees of the University of Illinois. * - * All rights reserved. * - * * - * This file is part of HDF5. The full HDF5 copyright notice, including * - * terms governing use, modification, and redistribution, is contained in * - * the files COPYING and Copyright.html. COPYING can be found at the root * - * of the source code distribution tree; Copyright.html can be found at the * - * root level of an installed copy of the electronic HDF5 document set and * - * is linked from the top-level documents page. It can also be found at * - * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * - * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include "H5HL_private.h" - -/*------------------------------------------------------------------------- - * - * Functions shared between H5TB and H5PT - * - *------------------------------------------------------------------------- - */ - -/*------------------------------------------------------------------------- - * Function: H5TBcommon_append_records - * - * Purpose: Common code for reading records shared between H5PT and H5TB - * - * Return: Success: 0, Failure: -1 - * - * Programmer: Nat Furrer, nfurrer@ncsa.uiuc.edu - * James Laird, jlaird@ncsa.uiuc.edu - * - * Date: March 8, 2004 - * - * Comments: Called by H5TBappend_records and H5PTappend_records - * - * Modifications: - * - *------------------------------------------------------------------------- - */ -herr_t H5TBcommon_append_records( hid_t dataset_id, - hid_t mem_type_id, - hsize_t nrecords, - hsize_t orig_table_size, - const void * data) -{ - hsize_t count[1]; - hsize_t offset[1]; - hid_t space_id = H5I_BADID; - hid_t mem_space_id = H5I_BADID; - hsize_t dims[1]; - hsize_t mem_dims[1]; - - /* Extend the dataset */ - dims[0] = nrecords + orig_table_size; - if ( H5Dextend ( dataset_id, dims ) < 0 ) - goto out; - - /* Create a simple memory data space */ - mem_dims[0]=nrecords; - if ( (mem_space_id = H5Screate_simple( 1, mem_dims, NULL )) < 0 ) - goto out; - - /* Get a copy of the new file data space for writing */ - if ( (space_id = H5Dget_space( dataset_id )) < 0 ) - goto out; - - /* Define a hyperslab in the dataset */ - offset[0] = orig_table_size; - count[0] = nrecords; - if ( H5Sselect_hyperslab( space_id, H5S_SELECT_SET, offset, NULL, count, NULL) < 0 ) - goto out; - - /* Write the records */ - if ( H5Dwrite( dataset_id, mem_type_id, mem_space_id, space_id, H5P_DEFAULT, data ) < -0 ) - goto out; - - /* Terminate access to the dataspace */ - if ( H5Sclose( mem_space_id ) < 0 ) - goto out; - - if ( H5Sclose( space_id ) < 0 ) - goto out; - - return 0; - -out: - H5E_BEGIN_TRY - H5Sclose(mem_space_id); - H5Sclose(space_id); - H5E_END_TRY - return -1; -} - - -/*------------------------------------------------------------------------- - * Function: H5TBcommon_read_records - * - * Purpose: Common code for reading records shared between H5PT and H5TB - * - * Return: Success: 0, Failure: -1 - * - * Programmer: Nat Furrer, nfurrer@ncsa.uiuc.edu - * James Laird, jlaird@ncsa.uiuc.edu - * - * Date: March 8, 2004 - * - * Comments: Called by H5TBread_records and H5PTread_records - * - * Modifications: - * - * - *------------------------------------------------------------------------- - */ -herr_t H5TBcommon_read_records( hid_t dataset_id, - hid_t mem_type_id, - hsize_t start, - hsize_t nrecords, - hsize_t table_size, - void *data) -{ - hsize_t count[1]; - hsize_t offset[1]; - hid_t space_id = H5I_BADID; - hid_t mem_space_id = H5I_BADID; - hsize_t mem_size[1]; - - /* Make sure the read request is in bounds */ - if ( start + nrecords > table_size ) - goto out; - - /* Get the dataspace handle */ - if ( (space_id = H5Dget_space( dataset_id )) < 0 ) - goto out; - - /* Define a hyperslab in the dataset of the size of the records */ - offset[0] = start; - count[0] = nrecords; - if ( H5Sselect_hyperslab( space_id, H5S_SELECT_SET, offset, NULL, count, NULL) < 0 ) - goto out; - - /* Create a memory dataspace handle */ - mem_size[0] = count[0]; - if ((mem_space_id = H5Screate_simple( 1, mem_size, NULL )) < 0 ) - goto out; - if ((H5Dread( dataset_id, mem_type_id, mem_space_id, space_id, H5P_DEFAULT, data)) < 0 - ) - goto out; - - /* Terminate access to the memory dataspace */ - if ( H5Sclose( mem_space_id ) < 0 ) - goto out; - - /* Terminate access to the dataspace */ - if ( H5Sclose( space_id ) < 0 ) - goto out; - - return 0; - -out: - H5E_BEGIN_TRY - H5Sclose(space_id); - H5Sclose(mem_space_id); - H5E_END_TRY - return -1; -} - diff --git a/hl/src/H5IM.c b/hl/src/H5IM.c index 19eb805e06..12269c469c 100644 --- a/hl/src/H5IM.c +++ b/hl/src/H5IM.c @@ -12,11 +12,11 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5IM.h" - - +#include "H5IMprivate.h" +#include "H5LTprivate.h" #include #include + /*------------------------------------------------------------------------- * Function: H5IMmake_image_8bit * diff --git a/hl/src/H5IMprivate.h b/hl/src/H5IMprivate.h new file mode 100644 index 0000000000..bca5a845bb --- /dev/null +++ b/hl/src/H5IMprivate.h @@ -0,0 +1,43 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef _H5IMprivate_H +#define _H5IMprivate_H + +/* public hdf5 prototypes */ +#include "H5Rpublic.h" +#include "H5Apublic.h" +#include "H5Spublic.h" +#include "H5Dpublic.h" + +/* public LT prototypes */ +#include "H5LTpublic.h" +#include "H5IMpublic.h" + + +#define IMAGE_CLASS "IMAGE" +#define PALETTE_CLASS "PALETTE" +#define IMAGE_VERSION "1.2" +#define IMAGE8_RANK 3 +#define IMAGE24_RANK 3 + + +/*------------------------------------------------------------------------- + * Private functions + *------------------------------------------------------------------------- + */ +H5_HLDLL herr_t H5IM_find_palette(hid_t loc_id ); + + +#endif diff --git a/hl/src/H5IM.h b/hl/src/H5IMpublic.h similarity index 94% rename from hl/src/H5IM.h rename to hl/src/H5IMpublic.h index 54dc404b60..a14f2f22db 100644 --- a/hl/src/H5IM.h +++ b/hl/src/H5IMpublic.h @@ -12,21 +12,14 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#ifndef _H5IM_H -#define _H5IM_H +#ifndef _H5IMpublic_H +#define _H5IMpublic_H -#include "H5LT.h" #ifdef __cplusplus extern "C" { #endif -#define IMAGE_CLASS "IMAGE" -#define PALETTE_CLASS "PALETTE" -#define IMAGE_VERSION "1.2" -#define IMAGE8_RANK 3 -#define IMAGE24_RANK 3 - H5_HLDLL herr_t H5IMmake_image_8bit( hid_t loc_id, const char *dset_name, @@ -53,8 +46,6 @@ H5_HLDLL herr_t H5IMread_image( hid_t loc_id, const char *dset_name, unsigned char *buffer ); - - H5_HLDLL herr_t H5IMmake_palette( hid_t loc_id, const char *pal_name, const hsize_t *pal_dims, @@ -77,7 +68,6 @@ H5_HLDLL herr_t H5IMget_palette_info( hid_t loc_id, int pal_number, hsize_t *pal_dims ); - H5_HLDLL herr_t H5IMget_palette( hid_t loc_id, const char *image_name, int pal_number, diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c index 4598dc5cfd..5d281a78aa 100644 --- a/hl/src/H5LT.c +++ b/hl/src/H5LT.c @@ -12,14 +12,14 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5LT.h" +#include "H5LTprivate.h" #include #include #include +#include + /* For Lex and Yacc */ -#define SUCCEED 0 -#define FAIL -1 #define COL 3 #define LIMIT 512 #define INCREMENT 1024 @@ -3590,7 +3590,7 @@ herr_t H5LT_set_attribute_string(hid_t dset_id, if (H5Tclose(tid)<0) goto out; - return SUCCESS; + return SUCCEED; /* error zone, gracefully close */ out: diff --git a/hl/src/H5LTprivate.h b/hl/src/H5LTprivate.h new file mode 100644 index 0000000000..22d753c43c --- /dev/null +++ b/hl/src/H5LTprivate.h @@ -0,0 +1,70 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef _H5LTprivate_H +#define _H5LTprivate_H + +#include "H5private.h" +/* public hdf5 prototypes */ +#include "H5Ipublic.h" +#include "H5Tpublic.h" +#include "H5Spublic.h" +#include "H5Dpublic.h" +#include "H5Ppublic.h" +#include "H5Gpublic.h" +#include "H5Apublic.h" +#include "H5Epublic.h" +/* public LT prototypes */ +#include "H5LTpublic.h" + +#define TESTING(WHAT) {printf("%-70s", "Testing " WHAT); fflush(stdout);} +#define TESTING2(WHAT) {printf("%-70s", "Testing " WHAT); fflush(stdout);} +#define TESTING3(WHAT) {printf("%-70s", "" WHAT); fflush(stdout);} +#define PASSED() {puts(" PASSED");fflush(stdout);} +#define H5_FAILED() {puts("*FAILED*");fflush(stdout);} +#define SKIPPED() {puts(" -SKIP-");fflush(stdout);} +#define EXAMPLE(WHAT) {printf("%-70s", "Example " WHAT); fflush(stdout);} + +/*------------------------------------------------------------------------- + * Private functions + *------------------------------------------------------------------------- + */ + +H5_HLDLL herr_t H5LT_get_attribute_mem( hid_t obj_id, + const char *attr_name, + hid_t mem_type_id, + void *data ); + +H5_HLDLL herr_t H5LT_get_attribute_disk( hid_t obj_id, + const char *attr_name, + void *data ); + +H5_HLDLL herr_t H5LT_find_attribute( hid_t loc_id, const char *name ); + +H5_HLDLL herr_t H5LT_set_attribute_numerical( hid_t loc_id, + const char *obj_name, + const char *attr_name, + size_t size, + hid_t type_id, + const void *data ); + +H5_HLDLL herr_t H5LT_set_attribute_string( hid_t dset_id, + char *name, + char *buf ); + +H5_HLDLL herr_t H5LT_dtype_to_text(hid_t dtype, char **dt_str, H5LT_lang_t lang, + size_t *slen, hbool_t no_user_buf); + + +#endif diff --git a/hl/src/H5LT.h b/hl/src/H5LTpublic.h similarity index 88% rename from hl/src/H5LT.h rename to hl/src/H5LTpublic.h index 0024fcf11e..cfccb08d41 100644 --- a/hl/src/H5LT.h +++ b/hl/src/H5LTpublic.h @@ -12,27 +12,12 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#ifndef _H5LT_H -#define _H5LT_H - -#include +#ifndef _H5LTpublic_H +#define _H5LTpublic_H -#ifndef FAIL -#define FAIL -1 -#endif - -#ifndef SUCCESS -#define SUCCESS 0 -#endif - -#define TESTING(WHAT) {printf("%-70s", "Testing " WHAT); fflush(stdout);} -#define TESTING2(WHAT) {printf("%-70s", "Testing " WHAT); fflush(stdout);} -#define TESTING3(WHAT) {printf("%-70s", "" WHAT); fflush(stdout);} -#define PASSED() {puts(" PASSED");fflush(stdout);} -#define H5_FAILED() {puts("*FAILED*");fflush(stdout);} -#define SKIPPED() {puts(" -SKIP-");fflush(stdout);} -#define EXAMPLE(WHAT) {printf("%-70s", "Example " WHAT); fflush(stdout);} +/* Public headers needed by this file */ +#include "H5public.h" typedef enum H5LT_lang_t { H5LT_LANG_ERR = -1, /*this is the first*/ @@ -42,6 +27,8 @@ typedef enum H5LT_lang_t { H5LT_NO_LANG = 3 /*this is the last*/ } H5LT_lang_t; + + #ifdef __cplusplus extern "C" { #endif @@ -367,36 +354,6 @@ H5_HLDLL herr_t H5LTrepack( hsize_t nfields, -/*------------------------------------------------------------------------- - * - * Private functions - * - *------------------------------------------------------------------------- - */ -H5_HLDLL herr_t H5LT_get_attribute_mem( hid_t obj_id, - const char *attr_name, - hid_t mem_type_id, - void *data ); - -H5_HLDLL herr_t H5LT_get_attribute_disk( hid_t obj_id, - const char *attr_name, - void *data ); - -H5_HLDLL herr_t H5LT_find_attribute( hid_t loc_id, const char *name ); - -H5_HLDLL herr_t H5LT_set_attribute_numerical( hid_t loc_id, - const char *obj_name, - const char *attr_name, - size_t size, - hid_t type_id, - const void *data ); - -H5_HLDLL herr_t H5LT_set_attribute_string( hid_t dset_id, - char *name, - char *buf ); - -H5_HLDLL herr_t H5LT_dtype_to_text(hid_t dtype, char **dt_str, H5LT_lang_t lang, - size_t *slen, hbool_t no_user_buf); #ifdef __cplusplus } diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c index d9ff03b572..09c90744df 100644 --- a/hl/src/H5PT.c +++ b/hl/src/H5PT.c @@ -12,8 +12,8 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5PT.h" -#include "H5HL_private.h" +#include "H5PTprivate.h" +#include "H5TBprivate.h" #include /* Packet Table private data */ diff --git a/hl/src/H5PTprivate.h b/hl/src/H5PTprivate.h new file mode 100644 index 0000000000..bf6a00b196 --- /dev/null +++ b/hl/src/H5PTprivate.h @@ -0,0 +1,22 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef _H5PTprivate_H +#define _H5PTprivate_H + + +/* public LT prototypes */ +#include "H5PTpublic.h" + +#endif diff --git a/hl/src/H5PT.h b/hl/src/H5PTpublic.h similarity index 92% rename from hl/src/H5PT.h rename to hl/src/H5PTpublic.h index aaf378b975..5bcb2035f0 100644 --- a/hl/src/H5PT.h +++ b/hl/src/H5PTpublic.h @@ -12,14 +12,20 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#ifndef _H5PT_H -#define _H5PT_H +#ifndef _H5PTpublic_H +#define _H5PTpublic_H -#include -#if 0 -#define H5_PT_DEBUG -#endif +/* public hdf5 prototypes */ +#include "H5Ipublic.h" +#include "H5Tpublic.h" +#include "H5Spublic.h" +#include "H5Dpublic.h" +#include "H5Ppublic.h" +#include "H5Gpublic.h" +#include "H5Apublic.h" +#include "H5Epublic.h" +#include "H5Rpublic.h" #ifdef __cplusplus extern "C" { diff --git a/hl/src/H5TB.c b/hl/src/H5TB.c index 8a2cdd6293..720bb0a857 100644 --- a/hl/src/H5TB.c +++ b/hl/src/H5TB.c @@ -12,38 +12,33 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" -#include "H5HL_private.h" +#include "H5TBprivate.h" #include #include -#if 0 -#define SHRINK -#endif - /*------------------------------------------------------------------------- * - * Private functions + * internal functions * *------------------------------------------------------------------------- */ -int H5TB_find_field(const char *field, - const char *field_list); +static int H5TB_find_field(const char *field, + const char *field_list); -herr_t H5TB_attach_attributes(const char *table_title, - hid_t loc_id, +static herr_t H5TB_attach_attributes(const char *table_title, + hid_t loc_id, + const char *dset_name, + hsize_t nfields, + hid_t tid ); + +static hid_t H5TB_create_type(hid_t loc_id, const char *dset_name, - hsize_t nfields, - hid_t tid ); - -hid_t H5TB_create_type(hid_t loc_id, - const char *dset_name, - size_t dst_size, - const size_t *dst_offset, - const size_t *dst_sizes, - hid_t ftype_id); + size_t dst_size, + const size_t *dst_offset, + const size_t *dst_sizes, + hid_t ftype_id); /*------------------------------------------------------------------------- * @@ -3439,7 +3434,7 @@ out: /*------------------------------------------------------------------------- * - * Private functions + * internal functions * *------------------------------------------------------------------------- */ @@ -3458,7 +3453,7 @@ out: *------------------------------------------------------------------------- */ - +static int H5TB_find_field( const char *field, const char *field_list ) { const char *start = field_list; @@ -3496,7 +3491,7 @@ int H5TB_find_field( const char *field, const char *field_list ) *------------------------------------------------------------------------- */ - +static herr_t H5TB_attach_attributes( const char *table_title, hid_t loc_id, const char *dset_name, @@ -3567,6 +3562,7 @@ out: *------------------------------------------------------------------------- */ +static hid_t H5TB_create_type(hid_t loc_id, const char *dset_name, size_t dst_size, @@ -3651,3 +3647,157 @@ out: } + +/*------------------------------------------------------------------------- + * + * Functions shared between H5TB and H5PT + * + *------------------------------------------------------------------------- + */ + +/*------------------------------------------------------------------------- + * Function: H5TBcommon_append_records + * + * Purpose: Common code for reading records shared between H5PT and H5TB + * + * Return: Success: 0, Failure: -1 + * + * Programmer: Nat Furrer, nfurrer@ncsa.uiuc.edu + * James Laird, jlaird@ncsa.uiuc.edu + * + * Date: March 8, 2004 + * + * Comments: Called by H5TBappend_records and H5PTappend_records + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +herr_t H5TBcommon_append_records( hid_t dataset_id, + hid_t mem_type_id, + hsize_t nrecords, + hsize_t orig_table_size, + const void * data) +{ + hsize_t count[1]; + hsize_t offset[1]; + hid_t space_id = H5I_BADID; + hid_t mem_space_id = H5I_BADID; + hsize_t dims[1]; + hsize_t mem_dims[1]; + + /* Extend the dataset */ + dims[0] = nrecords + orig_table_size; + if ( H5Dextend ( dataset_id, dims ) < 0 ) + goto out; + + /* Create a simple memory data space */ + mem_dims[0]=nrecords; + if ( (mem_space_id = H5Screate_simple( 1, mem_dims, NULL )) < 0 ) + goto out; + + /* Get a copy of the new file data space for writing */ + if ( (space_id = H5Dget_space( dataset_id )) < 0 ) + goto out; + + /* Define a hyperslab in the dataset */ + offset[0] = orig_table_size; + count[0] = nrecords; + if ( H5Sselect_hyperslab( space_id, H5S_SELECT_SET, offset, NULL, count, NULL) < 0 ) + goto out; + + /* Write the records */ + if ( H5Dwrite( dataset_id, mem_type_id, mem_space_id, space_id, H5P_DEFAULT, data ) < +0 ) + goto out; + + /* Terminate access to the dataspace */ + if ( H5Sclose( mem_space_id ) < 0 ) + goto out; + + if ( H5Sclose( space_id ) < 0 ) + goto out; + + return 0; + +out: + H5E_BEGIN_TRY + H5Sclose(mem_space_id); + H5Sclose(space_id); + H5E_END_TRY + return -1; +} + + +/*------------------------------------------------------------------------- + * Function: H5TBcommon_read_records + * + * Purpose: Common code for reading records shared between H5PT and H5TB + * + * Return: Success: 0, Failure: -1 + * + * Programmer: Nat Furrer, nfurrer@ncsa.uiuc.edu + * James Laird, jlaird@ncsa.uiuc.edu + * + * Date: March 8, 2004 + * + * Comments: Called by H5TBread_records and H5PTread_records + * + * Modifications: + * + * + *------------------------------------------------------------------------- + */ +herr_t H5TBcommon_read_records( hid_t dataset_id, + hid_t mem_type_id, + hsize_t start, + hsize_t nrecords, + hsize_t table_size, + void *data) +{ + hsize_t count[1]; + hsize_t offset[1]; + hid_t space_id = H5I_BADID; + hid_t mem_space_id = H5I_BADID; + hsize_t mem_size[1]; + + /* Make sure the read request is in bounds */ + if ( start + nrecords > table_size ) + goto out; + + /* Get the dataspace handle */ + if ( (space_id = H5Dget_space( dataset_id )) < 0 ) + goto out; + + /* Define a hyperslab in the dataset of the size of the records */ + offset[0] = start; + count[0] = nrecords; + if ( H5Sselect_hyperslab( space_id, H5S_SELECT_SET, offset, NULL, count, NULL) < 0 ) + goto out; + + /* Create a memory dataspace handle */ + mem_size[0] = count[0]; + if ((mem_space_id = H5Screate_simple( 1, mem_size, NULL )) < 0 ) + goto out; + if ((H5Dread( dataset_id, mem_type_id, mem_space_id, space_id, H5P_DEFAULT, data)) < 0 + ) + goto out; + + /* Terminate access to the memory dataspace */ + if ( H5Sclose( mem_space_id ) < 0 ) + goto out; + + /* Terminate access to the dataspace */ + if ( H5Sclose( space_id ) < 0 ) + goto out; + + return 0; + +out: + H5E_BEGIN_TRY + H5Sclose(space_id); + H5Sclose(mem_space_id); + H5E_END_TRY + return -1; +} + diff --git a/hl/src/H5TBprivate.h b/hl/src/H5TBprivate.h new file mode 100644 index 0000000000..68fe303d7b --- /dev/null +++ b/hl/src/H5TBprivate.h @@ -0,0 +1,58 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Copyright by the Board of Trustees of the University of Illinois. * + * All rights reserved. * + * * + * This file is part of HDF5. The full HDF5 copyright notice, including * + * terms governing use, modification, and redistribution, is contained in * + * the files COPYING and Copyright.html. COPYING can be found at the root * + * of the source code distribution tree; Copyright.html can be found at the * + * root level of an installed copy of the electronic HDF5 document set and * + * is linked from the top-level documents page. It can also be found at * + * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * + * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef _H5TBprivate_H +#define _H5TBprivate_H + + +#include "H5LTprivate.h" +#include "H5TBpublic.h" + + +#define TABLE_CLASS "TABLE" +#define HLTB_MAX_FIELD_LEN 255 + +/*------------------------------------------------------------------------- + * + * Private write function used by H5TB and H5PT + * + *------------------------------------------------------------------------- + */ + +herr_t H5TBcommon_append_records( hid_t dataset_id, + hid_t mem_type_id, + hsize_t nrecords, + hsize_t orig_table_size, + const void * data); + +/*------------------------------------------------------------------------- + * + * Private read function used by H5TB and H5PT + * + *------------------------------------------------------------------------- + */ + + +herr_t H5TBcommon_read_records( hid_t dataset_id, + hid_t mem_type_id, + hsize_t start, + hsize_t nrecords, + hsize_t table_size, + void *data); + + + + +#endif + diff --git a/hl/src/H5TB.h b/hl/src/H5TBpublic.h similarity index 97% rename from hl/src/H5TB.h rename to hl/src/H5TBpublic.h index ccc17764d7..e1c47ec2fe 100644 --- a/hl/src/H5TB.h +++ b/hl/src/H5TBpublic.h @@ -12,26 +12,8 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#ifndef _H5TB_H -#define _H5TB_H - -#if 0 -#define H5_TB_DEBUG -#endif - -#include "H5LT.h" - - -#define TABLE_CLASS "TABLE" - - -#define HLTB_MAX_FIELD_LEN 255 - -#if !defined(MAX) -#define MAX(X,Y) ((X)>(Y)?(X):(Y)) -#endif - - +#ifndef _H5TBpublic_H +#define _H5TBpublic_H #ifdef __cplusplus diff --git a/hl/src/Makefile.am b/hl/src/Makefile.am index 002438d446..e8e558831f 100644 --- a/hl/src/Makefile.am +++ b/hl/src/Makefile.am @@ -25,10 +25,10 @@ AM_CPPFLAGS=-I$(top_srcdir)/src # This library is our main target. lib_LTLIBRARIES=libhdf5_hl.la -libhdf5_hl_la_SOURCES=H5LT.c H5TB.c H5IM.c H5DS.c H5PT.c H5HL_private.c H5LTparse.c H5LTanalyze.c +libhdf5_hl_la_SOURCES=H5LT.c H5TB.c H5IM.c H5DS.c H5PT.c H5LTparse.c H5LTanalyze.c # Public header files (to be installed) -include_HEADERS=H5IM.h H5LT.h H5TB.h H5DS.h H5PT.h H5LTparse.h +include_HEADERS=H5IMpublic.h H5LTpublic.h H5TBpublic.h H5DSpublic.h H5PTpublic.h H5LTparse.h # Automake naturally assumes that we want it to remove H5LTparse.c on distclean. # Convince it otherwise. diff --git a/hl/src/Makefile.in b/hl/src/Makefile.in index a51a24441d..ae10548838 100644 --- a/hl/src/Makefile.in +++ b/hl/src/Makefile.in @@ -77,7 +77,7 @@ libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libhdf5_hl_la_LIBADD = am_libhdf5_hl_la_OBJECTS = H5LT.lo H5TB.lo H5IM.lo H5DS.lo H5PT.lo \ - H5HL_private.lo H5LTparse.lo H5LTanalyze.lo + H5LTparse.lo H5LTanalyze.lo libhdf5_hl_la_OBJECTS = $(am_libhdf5_hl_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/bin/depcomp @@ -291,6 +291,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -340,10 +343,10 @@ AM_CPPFLAGS = -I$(top_srcdir)/src # This library is our main target. lib_LTLIBRARIES = libhdf5_hl.la -libhdf5_hl_la_SOURCES = H5LT.c H5TB.c H5IM.c H5DS.c H5PT.c H5HL_private.c H5LTparse.c H5LTanalyze.c +libhdf5_hl_la_SOURCES = H5LT.c H5TB.c H5IM.c H5DS.c H5PT.c H5LTparse.c H5LTanalyze.c # Public header files (to be installed) -include_HEADERS = H5IM.h H5LT.h H5TB.h H5DS.h H5PT.h H5LTparse.h +include_HEADERS = H5IMpublic.h H5LTpublic.h H5TBpublic.h H5DSpublic.h H5PTpublic.h H5LTparse.h # Automake needs to be taught how to build lib, progs, and tests targets. # These will be filled in automatically for the most part (e.g., @@ -428,7 +431,6 @@ mostlyclean-compile: -rm -f *.$(OBJEXT) @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/H5DS.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/H5HL_private.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/H5IM.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/H5LT.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/H5LTanalyze.Plo@am__quote@ diff --git a/hl/test/Makefile.in b/hl/test/Makefile.in index 14b3fcc0e5..1e28bc3dea 100644 --- a/hl/test/Makefile.in +++ b/hl/test/Makefile.in @@ -303,6 +303,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/test/test_ds.c b/hl/test/test_ds.c index 17af015887..3e72766593 100644 --- a/hl/test/test_ds.c +++ b/hl/test/test_ds.c @@ -12,11 +12,11 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5DS.h" -#include "H5LT.h" #include #include -#include "H5IM.h" +#include "H5DSprivate.h" +#include "H5LTprivate.h" +#include "H5IMprivate.h" /* operator functions */ static herr_t verifiy_scale(hid_t dset, unsigned dim, hid_t scale, void *visitor_data); @@ -776,7 +776,7 @@ static int test_simple(void) goto out; /* detach again, it should fail */ - if (H5DSdetach_scale(did,dsid,DIM1)==SUCCESS) + if (H5DSdetach_scale(did,dsid,DIM1)==SUCCEED) goto out; /* verify attach, it must return 0 for no attach */ @@ -1751,7 +1751,7 @@ static int test_errors(void) TESTING2("attach a dataset to itself"); - if (H5DSattach_scale(did,did,0)==SUCCESS) + if (H5DSattach_scale(did,did,0)==SUCCEED) goto out; PASSED(); @@ -1762,7 +1762,7 @@ static int test_errors(void) */ TESTING2("attach a group with a dataset"); - if (H5DSattach_scale(gid,dsid,0)==SUCCESS) + if (H5DSattach_scale(gid,dsid,0)==SUCCEED) goto out; PASSED(); @@ -1773,7 +1773,7 @@ static int test_errors(void) */ TESTING2("attach a dataset with a group"); - if (H5DSattach_scale(did,gid,0)==SUCCESS) + if (H5DSattach_scale(did,gid,0)==SUCCEED) goto out; PASSED(); @@ -1784,7 +1784,7 @@ static int test_errors(void) */ TESTING2("set scale for a group"); - if (H5DSset_scale(gid,"scale 1")==SUCCESS) + if (H5DSset_scale(gid,"scale 1")==SUCCEED) goto out; PASSED(); @@ -1847,7 +1847,7 @@ static int test_errors(void) goto out; /* try to attach "ds_a" to "dset_a", not valid */ - if(H5DSattach_scale(did,dsid,0)==SUCCESS) + if(H5DSattach_scale(did,dsid,0)==SUCCEED) goto out; /* close */ @@ -1892,7 +1892,7 @@ static int test_errors(void) goto out; /* try to attach "ds_a" to "ds_b", not valid */ - if(H5DSattach_scale(dsid,did,0)==SUCCESS) + if(H5DSattach_scale(dsid,did,0)==SUCCEED) goto out; /* close */ @@ -1927,7 +1927,7 @@ static int test_errors(void) goto out; /* try to attach "ds_a" to the image, not valid */ - if(H5DSattach_scale(did,dsid,0)==SUCCESS) + if(H5DSattach_scale(did,dsid,0)==SUCCEED) goto out; /* close */ @@ -1988,7 +1988,7 @@ static int test_errors(void) goto out; /* try to detach "ds_a" from "dset_a" */ - if(H5DSdetach_scale(did,dsid,0)==SUCCESS) + if(H5DSdetach_scale(did,dsid,0)==SUCCEED) goto out; /* close */ @@ -2016,7 +2016,7 @@ static int test_errors(void) goto out; /* try to detach "ds_a" from "grp" */ - if(H5DSdetach_scale(gid,dsid,0)==SUCCESS) + if(H5DSdetach_scale(gid,dsid,0)==SUCCEED) goto out; /* close */ @@ -2044,7 +2044,7 @@ static int test_errors(void) goto out; /* try to detach "grp" from "dset_a" */ - if(H5DSdetach_scale(did,gid,0)==SUCCESS) + if(H5DSdetach_scale(did,gid,0)==SUCCEED) goto out; /* close */ @@ -2153,7 +2153,7 @@ static int test_iterators(void) goto out; /* try to iterate trough the 3rd dimension of "dset_a", return error */ - if (H5DSiterate_scales(did,3,NULL,verifiy_scale,NULL)==SUCCESS) + if (H5DSiterate_scales(did,3,NULL,verifiy_scale,NULL)==SUCCEED) goto out; /* close */ @@ -2212,7 +2212,7 @@ static int test_iterators(void) goto out; /* try to iterate, return error */ - if (H5DSiterate_scales(gid,0,NULL,verifiy_scale,NULL)==SUCCESS) + if (H5DSiterate_scales(gid,0,NULL,verifiy_scale,NULL)==SUCCEED) goto out; /* close */ @@ -2237,7 +2237,7 @@ static int test_iterators(void) goto out; /* iterate */ - if (H5DSiterate_scales(did,0,NULL,op_bogus,NULL)==SUCCESS) + if (H5DSiterate_scales(did,0,NULL,op_bogus,NULL)==SUCCEED) goto out; /* close */ diff --git a/hl/test/test_image.c b/hl/test/test_image.c index b47bab8238..6d1f44534b 100644 --- a/hl/test/test_image.c +++ b/hl/test/test_image.c @@ -12,7 +12,8 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5IM.h" +#include "H5LTprivate.h" +#include "H5IMprivate.h" #include "pal_rgb.h" #include #include diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c index b7e1af5117..1816f7fcc3 100644 --- a/hl/test/test_lite.c +++ b/hl/test/test_lite.c @@ -15,7 +15,7 @@ #include #include -#include "H5LT.h" +#include "H5LTprivate.h" #define FILE_NAME "test_lite1.h5" #define FILE_NAME2 "test_lite2.h5" diff --git a/hl/test/test_packet.c b/hl/test/test_packet.c index 70199b983c..739b0f7417 100644 --- a/hl/test/test_packet.c +++ b/hl/test/test_packet.c @@ -12,8 +12,8 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5PT.h" -#include "H5TB.h" +#include "H5PTprivate.h" +#include "H5TBprivate.h" #include #include #include diff --git a/hl/test/test_table.c b/hl/test/test_table.c index 48d87b08a6..e3d248a18e 100644 --- a/hl/test/test_table.c +++ b/hl/test/test_table.c @@ -12,7 +12,7 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5TB.h" +#include "H5TBprivate.h" #include #include diff --git a/hl/tools/Makefile.in b/hl/tools/Makefile.in index 64d704bec3..ec5ccb9b9e 100644 --- a/hl/tools/Makefile.in +++ b/hl/tools/Makefile.in @@ -268,6 +268,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/hl/tools/gif2h5/Makefile.am b/hl/tools/gif2h5/Makefile.am index cd5c3055b7..c01d1b4470 100644 --- a/hl/tools/gif2h5/Makefile.am +++ b/hl/tools/gif2h5/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src and tools/lib directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib -I$(top_srcdir)/hl/src +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib -I$(top_srcdir)/hl/src # These are our main targets, the tools diff --git a/hl/tools/gif2h5/Makefile.in b/hl/tools/gif2h5/Makefile.in index fbd61baf1a..61875e4867 100644 --- a/hl/tools/gif2h5/Makefile.in +++ b/hl/tools/gif2h5/Makefile.in @@ -294,6 +294,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src and tools/lib directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/tools/lib -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -337,9 +343,6 @@ TRACE = perl $(top_srcdir)/bin/trace # .chklog files are output from those tests. # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog - -# Include src and tools/lib directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/tools/lib -I$(top_srcdir)/hl/src gif2h5_SOURCES = gif2hdf.c gif2mem.c decompress.c gifread.c writehdf.c h52gif_SOURCES = hdf2gif.c hdfgifwr.c readhdf.c diff --git a/hl/tools/gif2h5/writehdf.c b/hl/tools/gif2h5/writehdf.c index 7313d2e2b5..bbd74ebe76 100644 --- a/hl/tools/gif2h5/writehdf.c +++ b/hl/tools/gif2h5/writehdf.c @@ -16,7 +16,7 @@ #include #include "gif.h" -#include "H5IM.h" +#include "H5IMpublic.h" /*------------------------------------------------------------------------- * Function: WriteHDF diff --git a/perform/Makefile.am b/perform/Makefile.am index 3b89e1e62f..ccabd1ae97 100644 --- a/perform/Makefile.am +++ b/perform/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib if BUILD_PARALLEL_CONDITIONAL TEST_PROG_PARA=h5perf perf diff --git a/perform/Makefile.in b/perform/Makefile.in index 275a0f1106..6e47515428 100644 --- a/perform/Makefile.in +++ b/perform/Makefile.in @@ -321,6 +321,10 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -364,7 +368,6 @@ TRACE = perl $(top_srcdir)/bin/trace # .chklog files are output from those tests. # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib @BUILD_PARALLEL_CONDITIONAL_TRUE@TEST_PROG_PARA = h5perf perf # Some programs are not built or run by default, but can be built by hand or by diff --git a/src/H5config.h.in b/src/H5config.h.in index 1ad26922aa..3dd45155cc 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -367,6 +367,9 @@ long. */ #undef HW_FP_TO_LLONG_NOT_WORKS +/* Define if HDF5's high-level library headers should be included in hdf5.h */ +#undef INCLUDE_HL + /* Define if your system can accurately convert from integers to long double values. */ #undef INTEGER_TO_LDOUBLE_ACCURATE diff --git a/src/Makefile.am b/src/Makefile.am index 32e4ed5f5b..c590ee53d2 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -20,6 +20,7 @@ include $(top_srcdir)/config/commence.am include $(top_srcdir)/config/lt_vers.am + # How to build H5detect for number format detection. # Use -g to force no optimization since many compilers (e.g., Intel) takes # a long time to compile it with any optimization on. H5detect is used diff --git a/src/Makefile.in b/src/Makefile.in index 95856b5f4c..0ac1a3cb6d 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -329,6 +329,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/src/hdf5.h b/src/hdf5.h index 01d987486e..1191e42c43 100644 --- a/src/hdf5.h +++ b/src/hdf5.h @@ -48,4 +48,12 @@ #include "H5FDstdio.h" /* Standard C buffered I/O */ #include "H5FDstream.h" /* In-memory files streamed via sockets */ +/* High Level */ +#if defined (H5_INCLUDE_HL) +#include "H5DSpublic.h" /* dimension scales */ +#include "H5LTpublic.h" /* lite */ +#include "H5IMpublic.h" /* image */ +#include "H5TBpublic.h" /* table */ +#endif /*H5_INCLUDE_HL*/ + #endif diff --git a/test/Makefile.am b/test/Makefile.am index 60d05c98c7..df4244fcb0 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am -INCLUDES=-I$(top_srcdir)/src -I$(top_builddir)/src +INCLUDES+=-I$(top_srcdir)/src -I$(top_builddir)/src # Test script for error_test and err_compat TEST_SCRIPT = $(top_srcdir)/test/testerror.sh diff --git a/test/Makefile.in b/test/Makefile.in index af9dbbcd68..8643049877 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -549,6 +549,10 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_builddir)/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -614,7 +618,6 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog cmpd_dset.h5 \ err_compat.h5 dtransform.h5 test_filters.h5 get_file_name.h5 \ tstint[1-2].h5 unlink_chunked.h5 btree2.h5 objcopy_src.h5 \ objcopy_dst.h5 objcopy_ext.dat -INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src # Test script for error_test and err_compat TEST_SCRIPT = $(top_srcdir)/test/testerror.sh diff --git a/testpar/Makefile.am b/testpar/Makefile.am index 1adaa25c66..fca0d6f624 100644 --- a/testpar/Makefile.am +++ b/testpar/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/test +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/test # Test programs and scripts. These are our main targets. # diff --git a/testpar/Makefile.in b/testpar/Makefile.in index 950e7f46d3..ea252e20fa 100644 --- a/testpar/Makefile.in +++ b/testpar/Makefile.in @@ -305,6 +305,10 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/test + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -352,7 +356,6 @@ TRACE = perl $(top_srcdir)/bin/trace # MPItest.h5 is from t_mpi # Para*.h5 are from testphdf CHECK_CLEANFILES = *.chkexe *.chklog *.clog MPItest.h5 Para*.h5 -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/test # Test programs and scripts. These are our main targets. # diff --git a/tools/Makefile.in b/tools/Makefile.in index 4649e7957e..7e6b5c2694 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -268,6 +268,9 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h +INCLUDES = -I$(top_srcdir)/hl/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that diff --git a/tools/h5diff/Makefile.am b/tools/h5diff/Makefile.am index 2d5ed6936c..aa08864512 100644 --- a/tools/h5diff/Makefile.am +++ b/tools/h5diff/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src and tools/lib directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib # Always build and test h5diff but build and test ph5diff only if parallel # is enabled. diff --git a/tools/h5diff/Makefile.in b/tools/h5diff/Makefile.in index 4566cf6462..c8cf1619ba 100644 --- a/tools/h5diff/Makefile.in +++ b/tools/h5diff/Makefile.in @@ -299,6 +299,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src and tools/lib directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/tools/lib + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -347,9 +353,6 @@ TRACE = perl $(top_srcdir)/bin/trace CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5 expect_sorted \ actual_sorted -# Include src and tools/lib directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/tools/lib - # Always build and test h5diff but build and test ph5diff only if parallel # is enabled. @BUILD_PARALLEL_CONDITIONAL_TRUE@H5PDIFF = ph5diff diff --git a/tools/h5dump/Makefile.am b/tools/h5dump/Makefile.am index 85b14439dc..ab4f73d55f 100644 --- a/tools/h5dump/Makefile.am +++ b/tools/h5dump/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include files in /src directory and /tools/lib directory -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib # Test programs and scripts TEST_PROG=h5dumpgentest diff --git a/tools/h5dump/Makefile.in b/tools/h5dump/Makefile.in index 2058e99cae..133bccaa14 100644 --- a/tools/h5dump/Makefile.in +++ b/tools/h5dump/Makefile.in @@ -292,6 +292,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include files in /src directory and /tools/lib directory +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/tools/lib + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -339,9 +345,6 @@ TRACE = perl $(top_srcdir)/bin/trace # copied to the testfiles/ directory if update is required. CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5 -# Include files in /src directory and /tools/lib directory -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/tools/lib - # Test programs and scripts TEST_PROG = h5dumpgentest TEST_SCRIPT = testh5dump.sh $(srcdir)/testh5dumpxml.sh diff --git a/tools/h5import/Makefile.am b/tools/h5import/Makefile.am index 7144b5ef6f..355f34c6e4 100644 --- a/tools/h5import/Makefile.am +++ b/tools/h5import/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src and tools/lib directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib # Test programs and scripts TEST_PROG=h5importtest diff --git a/tools/h5import/Makefile.in b/tools/h5import/Makefile.in index c6cb439b45..678d170048 100755 --- a/tools/h5import/Makefile.in +++ b/tools/h5import/Makefile.in @@ -292,6 +292,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src and tools/lib directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/tools/lib + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -336,9 +342,6 @@ TRACE = perl $(top_srcdir)/bin/trace # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -# Include src and tools/lib directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/tools/lib - # Test programs and scripts TEST_PROG = h5importtest TEST_SCRIPT = $(srcdir)/h5importtestutil.sh diff --git a/tools/h5jam/Makefile.am b/tools/h5jam/Makefile.am index 3824965071..313a816a61 100644 --- a/tools/h5jam/Makefile.am +++ b/tools/h5jam/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src and tools/lib directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib bin_PROGRAMS=h5jam h5unjam check_PROGRAMS=tellub h5jamgentest getub diff --git a/tools/h5jam/Makefile.in b/tools/h5jam/Makefile.in index 79e116d444..27104f391a 100644 --- a/tools/h5jam/Makefile.in +++ b/tools/h5jam/Makefile.in @@ -303,6 +303,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src and tools/lib directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/tools/lib + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -349,9 +355,6 @@ TRACE = perl $(top_srcdir)/bin/trace # Temporary files. *.h5 are generated by jamgentest. They should # copied to the testfiles/ directory if update is required. CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5 *.txt - -# Include src and tools/lib directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/tools/lib TEST_SCRIPT = testh5jam.sh check_SCRIPTS = $(TEST_SCRIPT) SCRIPT_DEPEND = h5jam$(EXEEXT) h5unjam$(EXEEXT) diff --git a/tools/h5ls/Makefile.am b/tools/h5ls/Makefile.am index 7d3e1e72e1..553652e432 100644 --- a/tools/h5ls/Makefile.am +++ b/tools/h5ls/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src and tools/lib directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib # Test programs and scripts TEST_SCRIPT=$(srcdir)/testh5ls.sh diff --git a/tools/h5ls/Makefile.in b/tools/h5ls/Makefile.in index 13fe9e3072..ef78bc65e6 100644 --- a/tools/h5ls/Makefile.in +++ b/tools/h5ls/Makefile.in @@ -285,6 +285,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src and tools/lib directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/tools/lib + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -329,9 +335,6 @@ TRACE = perl $(top_srcdir)/bin/trace # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -# Include src and tools/lib directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/tools/lib - # Test programs and scripts TEST_SCRIPT = $(srcdir)/testh5ls.sh check_SCRIPTS = $(TEST_SCRIPT) diff --git a/tools/h5repack/Makefile.am b/tools/h5repack/Makefile.am index 794dd4368b..97b16ee9de 100644 --- a/tools/h5repack/Makefile.am +++ b/tools/h5repack/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src, test, and tools/lib directories -INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib +INCLUDES+=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib # Test programs and scripts TEST_SCRIPT=h5repack.sh diff --git a/tools/h5repack/Makefile.in b/tools/h5repack/Makefile.in index 5394cca0ec..d833475d9a 100644 --- a/tools/h5repack/Makefile.in +++ b/tools/h5repack/Makefile.in @@ -307,6 +307,12 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src, test, and tools/lib directories +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src \ + -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -354,9 +360,6 @@ TRACE = perl $(top_srcdir)/bin/trace # copied to the testfiles/ directory if update is required. CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5 -# Include src, test, and tools/lib directories -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib - # Test programs and scripts TEST_SCRIPT = h5repack.sh TEST_PROG = h5repacktst diff --git a/tools/lib/Makefile.am b/tools/lib/Makefile.am index dad3db3bd6..4527820e7d 100644 --- a/tools/lib/Makefile.am +++ b/tools/lib/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include files in /src directory -INCLUDES=-I$(top_srcdir)/src +INCLUDES+=-I$(top_srcdir)/src # This is our main target, the h5tools library. noinst_LTLIBRARIES=libh5tools.la diff --git a/tools/lib/Makefile.in b/tools/lib/Makefile.in index 1ecc4131b1..be4892d617 100644 --- a/tools/lib/Makefile.in +++ b/tools/lib/Makefile.in @@ -289,6 +289,11 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include files in /src directory +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -333,9 +338,6 @@ TRACE = perl $(top_srcdir)/bin/trace # *.clog are from the MPE option. CHECK_CLEANFILES = *.chkexe *.chklog *.clog -# Include files in /src directory -INCLUDES = -I$(top_srcdir)/src - # This is our main target, the h5tools library. noinst_LTLIBRARIES = libh5tools.la libh5tools_la_SOURCES = h5tools.c h5tools_str.c h5tools_utils.c h5diff.c \ diff --git a/tools/misc/Makefile.am b/tools/misc/Makefile.am index 32ede775e7..d17898403b 100644 --- a/tools/misc/Makefile.am +++ b/tools/misc/Makefile.am @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am # Include src directory -INCLUDES=-I$(top_srcdir)/src +INCLUDES+=-I$(top_srcdir)/src #test script and program TEST_PROG=h5repart_gentest diff --git a/tools/misc/Makefile.in b/tools/misc/Makefile.in index 6a9a81c9fc..f498a83b0d 100644 --- a/tools/misc/Makefile.in +++ b/tools/misc/Makefile.in @@ -310,6 +310,11 @@ RM = rm -f CP = cp TIME = time +# Path for hl needed in hdf5.h + +# Include src directory +INCLUDES = -I$(top_srcdir)/hl/src -I$(top_srcdir)/src + # Some machines need a command to run executables; this is that command # so that our tests will run. # We use RUNTESTS instead of RUNSERIAL directly because it may be that @@ -359,9 +364,6 @@ TRACE = perl $(top_srcdir)/bin/trace CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5 \ ../testfiles/fst_family*.h5 ../testfiles/scd_family*.h5 -# Include src directory -INCLUDES = -I$(top_srcdir)/src - #test script and program TEST_PROG = h5repart_gentest TEST_SCRIPT = testh5repart.sh