summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-12-19 18:28:42 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-12-19 18:28:42 (GMT)
commit2f5495e5503138167eee893e57030df70625e10b (patch)
treeac2b06ab50b464fe8f66d413968719d796c9eb94
parent953979f4a00f25a94a018ab6d979436991bd5620 (diff)
downloadhdf5-2f5495e5503138167eee893e57030df70625e10b.zip
hdf5-2f5495e5503138167eee893e57030df70625e10b.tar.gz
hdf5-2f5495e5503138167eee893e57030df70625e10b.tar.bz2
[svn-r148] ./src/H5ACprivate.h
Removed some debugging fields from a struct when debugging is turned off. ./src/H5H.c Reformatted a couple long lines.
-rw-r--r--src/H5ACprivate.h2
-rw-r--r--src/H5H.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/H5ACprivate.h b/src/H5ACprivate.h
index f775ca0..075966f 100644
--- a/src/H5ACprivate.h
+++ b/src/H5ACprivate.h
@@ -82,9 +82,11 @@ typedef struct H5AC_slot_t {
const H5AC_class_t *type; /*type of object stored here */
haddr_t addr; /*file address for object */
void *thing; /*the thing which is cached */
+#ifdef H5AC_DEBUG
intn nprots; /*number of things protected */
intn aprots; /*nelmts of `prot' array */
H5AC_prot_t *prot; /*array of protected things */
+#endif
} H5AC_slot_t;
typedef struct H5AC_t {
diff --git a/src/H5H.c b/src/H5H.c
index 0cc8477..44a3b8b 100644
--- a/src/H5H.c
+++ b/src/H5H.c
@@ -106,7 +106,8 @@ H5H_create (H5F_t *f, H5H_type_t heap_type, size_t size_hint,
assert (addr);
if (H5H_GLOBAL==heap_type) {
#ifndef NDEBUG
- fprintf (stderr, "H5H_create: a local heap is used as the global heap\n");
+ fprintf (stderr, "H5H_create: a local heap is used as the global "
+ "heap\n");
#endif
}
@@ -888,7 +889,8 @@ H5H_remove (H5F_t *f, const haddr_t *addr, size_t offset, size_t size)
*-------------------------------------------------------------------------
*/
herr_t
-H5H_debug (H5F_t *f, const haddr_t *addr, FILE *stream, intn indent, intn fwidth)
+H5H_debug (H5F_t *f, const haddr_t *addr, FILE *stream, intn indent,
+ intn fwidth)
{
H5H_t *h = NULL;
int i, j, overlap;