diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-02-24 13:45:02 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-02-24 13:45:02 (GMT) |
commit | b2d288804d3f17e824383436d038976c159d0eda (patch) | |
tree | c8d45d3cb55a2bf2cdbf9587157c4bcda8697706 /tools | |
parent | 89629922985edbd558ddf036fbfbbaf29876668a (diff) | |
download | hdf5-b2d288804d3f17e824383436d038976c159d0eda.zip hdf5-b2d288804d3f17e824383436d038976c159d0eda.tar.gz hdf5-b2d288804d3f17e824383436d038976c159d0eda.tar.bz2 |
[svn-r11965] Purpose:
Maintenance
Description:
Remove half-built (half-baked? :-) implementation of B+tree, block tracker
and segmented heaps. (In preparation for starting the new heap coding)
Platforms tested:
FreeBSD 4.11 (sleipnir)
Linux 2.4 (heping)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/misc/h5debug.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tools/misc/h5debug.c b/tools/misc/h5debug.c index 9eb2d49..0228d98 100644 --- a/tools/misc/h5debug.c +++ b/tools/misc/h5debug.c @@ -28,16 +28,10 @@ #define H5O_PACKAGE /*suppress error about including H5Opkg */ #define H5B2_PACKAGE /*suppress error about including H5B2pkg */ #define H5B2_TESTING /*suppress warning about H5B2 testing funcs*/ -#define H5BP_PACKAGE /*suppress error about including H5BPpkg */ -#define H5BP_TESTING /*suppress warning about H5BP testing funcs*/ -#define H5BT_PACKAGE /*suppress error about including H5BTpkg */ -#define H5SH_PACKAGE /*suppress error about including H5SHpkg */ #include "H5private.h" /* Generic Functions */ #include "H5Bprivate.h" #include "H5B2pkg.h" /* B-trees */ -#include "H5BPpkg.h" /* B+ trees */ -#include "H5BTpkg.h" /* Block tracker */ #include "H5Dprivate.h" #include "H5Eprivate.h" /* Error handling */ #include "H5Fpkg.h" @@ -47,7 +41,6 @@ #include "H5Iprivate.h" #include "H5Opkg.h" #include "H5Pprivate.h" -#include "H5SHpkg.h" /* Segmented heap */ /* File drivers */ #include "H5FDfamily.h" @@ -200,10 +193,6 @@ main(int argc, char *argv[]) status = H5B2_hdr_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, H5B2_TEST); break; - case H5B2_BLK_TRK_ID: - status = H5B2_hdr_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, H5B2_BLKTRK); - break; - default: fprintf(stderr, "Unknown B-tree subtype %u\n", (unsigned)(subtype)); HDexit(4); @@ -222,10 +211,6 @@ main(int argc, char *argv[]) status = H5B2_int_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, H5B2_TEST, extra, (unsigned)extra2); break; - case H5B2_BLK_TRK_ID: - status = H5B2_int_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, H5B2_BLKTRK, extra, (unsigned)extra2); - break; - default: fprintf(stderr, "Unknown B-tree subtype %u\n", (unsigned)(subtype)); HDexit(4); @@ -244,45 +229,11 @@ main(int argc, char *argv[]) status = H5B2_leaf_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, H5B2_TEST, extra, (unsigned)extra2); break; - case H5B2_BLK_TRK_ID: - status = H5B2_leaf_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, H5B2_BLKTRK, extra, (unsigned)extra2); - break; - default: fprintf(stderr, "Unknown B-tree subtype %u\n", (unsigned)(subtype)); HDexit(4); } /* end switch */ - } else if (!HDmemcmp(sig, H5BT_MAGIC, H5BT_SIZEOF_MAGIC)) { - /* - * Debug a block tracker info - */ - status = H5BT_hdr_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL); - - } else if (!HDmemcmp(sig, H5SH_MAGIC, H5SH_SIZEOF_MAGIC)) { - /* - * Debug a segmented heap info - */ - status = H5SH_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL); - - } else if (!HDmemcmp(sig, H5BP_HDR_MAGIC, H5BP_SIZEOF_MAGIC)) { - /* - * Debug a B+ tree. B+ trees are debugged through the B+ tree - * subclass. The subclass identifier is two bytes after the - * B+ tree signature. - */ - H5BP_subid_t subtype = (H5BP_subid_t)sig[H5BP_SIZEOF_MAGIC+1]; - - switch (subtype) { - case H5BP_TEST_ID: - status = H5BP_hdr_debug(f, H5P_DATASET_XFER_DEFAULT, addr, stdout, 0, VCOL, H5BP_TEST); - break; - - default: - fprintf(stderr, "Unknown B+ tree subtype %u\n", (unsigned)(subtype)); - HDexit(4); - } /* end switch */ - } else if (sig[0] == H5O_VERSION) { /* * This could be an object header. Since they don't have a signature |