summaryrefslogtreecommitdiffstats
path: root/src/H5FDmulti.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-04-10 23:37:34 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-04-10 23:37:34 (GMT)
commit670ae864af0d876bb24e20338e3a7204219f2285 (patch)
treefff363a5dd6a0f41dd66aa3f929df67cfb246144 /src/H5FDmulti.c
parentda472d0c9bc5d19088bdea3a3d2143147ace371a (diff)
downloadhdf5-670ae864af0d876bb24e20338e3a7204219f2285.zip
hdf5-670ae864af0d876bb24e20338e3a7204219f2285.tar.gz
hdf5-670ae864af0d876bb24e20338e3a7204219f2285.tar.bz2
[svn-r5165] Purpose:
Feature Description: Added comments that this is intended as an example of file driver. Added a macro detection at the end to flag if non-public definitions are used. (only check for H5private.h which is mostly likely used. Not bullet proof at all.) Platforms tested: eirene.
Diffstat (limited to 'src/H5FDmulti.c')
-rw-r--r--src/H5FDmulti.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index b554b88..901e379 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1997-2001 NCSA
+ * Copyright (C) 1997-2002 NCSA
* All rights reserved.
*
* Programmer: Robb Matzke <matzke@llnl.gov>
@@ -9,6 +9,8 @@
* other file drivers depending on the purpose of the address
* region being accessed. For instance, all meta-data could be
* place in one file while all raw data goes to some other file.
+ * This also serves as an example of coding a complex file driver,
+ * therefore, it should not use any non-public definitions.
*/
#include <assert.h>
#include <stdlib.h>
@@ -1869,3 +1871,13 @@ open_members(H5FD_multi_t *file)
return 0;
}
+
+
+#ifdef _H5private_H
+/*
+ * This is not related to the functionality of the driver code.
+ * It is added here to trigger warning if HDF5 private definitions are included
+ * by mistake. The code should use only HDF5 public API and definitions.
+ */
+#error "Do not use HDF5 private definitions"
+#endif