summaryrefslogtreecommitdiffstats
path: root/src/H5Fpublic.h
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-04-22 17:26:01 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-04-22 17:26:01 (GMT)
commit1c1679b2d43a14170ee6759f578a2ecad4ab56c1 (patch)
treee8462f942e88374904821fd56557fba95c99ba6d /src/H5Fpublic.h
parent91a34f543da20aee0de3ad2ec2cc58f86750bcf6 (diff)
downloadhdf5-1c1679b2d43a14170ee6759f578a2ecad4ab56c1.zip
hdf5-1c1679b2d43a14170ee6759f578a2ecad4ab56c1.tar.gz
hdf5-1c1679b2d43a14170ee6759f578a2ecad4ab56c1.tar.bz2
[svn-r356] Changes since 19980421
---------------------- ./bin/release ./src/H5.c ./src/H5private.h ./src/H5public.h ./src/H5Fpublic.h Changed the version number constants to names that begin with H5_VERS_ and added macros that check that the version numbers in the include files match the version number of the library. ./MANIFEST ./html/H5.user.html ./html/Version.html [NEW] ./html/version.obj [NEW] ./html/version.gif [NEW] Documented version numbers and the macros, constants, and functions associated with them. ./bin/versinc A perl script that increments the minor version number and sets the patch level back to zero. This is intended to be invoked from the top of the source tree by a cvs commit anywhere in the source tree. Quincey? ./src/H5O.c ./src/H5Oprivate.h Added H5O_count() to count the number of object header messages of a particular type. Quincey needs this for the attribute package. ./test/dsets.c Fixed warnings. Enabled the small strip-mine buffer test. ./config/linux Added optimizations for the Pentium-Pro for production mode.
Diffstat (limited to 'src/H5Fpublic.h')
-rw-r--r--src/H5Fpublic.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/H5Fpublic.h b/src/H5Fpublic.h
index cfce784..2f79a6e 100644
--- a/src/H5Fpublic.h
+++ b/src/H5Fpublic.h
@@ -23,13 +23,17 @@
/*
* These are the bits that can be passed to the `flags' argument of
* H5Fcreate() and H5Fopen(). Use the bit-wise OR operator (|) to combine
- * them as needed.
+ * them as needed. As a side effect, they call H5vers_check() to make sure
+ * that the application is compiled with a version of the hdf5 header files
+ * which are compatible with the library to which the application is linked.
+ * We're assuming that these constants are used rather early in the hdf5
+ * session.
*/
-#define H5F_ACC_RDONLY 0x0000u /*absence of write implies read only */
-#define H5F_ACC_RDWR 0x0001u /*open file for reading and writing */
-#define H5F_ACC_TRUNC 0x0002u /*overwrite existing files during create*/
-#define H5F_ACC_EXCL 0x0004u /*create fails if file already exists */
-#define H5F_ACC_DEBUG 0x0008u /*print debug info */
+#define H5F_ACC_RDONLY (H5check(),0x0000u) /*absence of rdwr => rd-only */
+#define H5F_ACC_RDWR (H5check(),0x0001u) /*open for read and write */
+#define H5F_ACC_TRUNC (H5check(),0x0002u) /*overwrite existing files */
+#define H5F_ACC_EXCL (H5check(),0x0004u) /*fail if file already exists*/
+#define H5F_ACC_DEBUG (H5check(),0x0008u) /*print debug info */
#ifdef LATER