diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-02-08 01:03:48 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-02-08 01:03:48 (GMT) |
commit | b4153b4f5edef4833abea9a1249baf4690984258 (patch) | |
tree | 795e76dc6e0ce6ecf7b34cd38e437748194b875e /src/H5B2pkg.h | |
parent | 093515817bd8d1bd78944d1f3ee1b90dc4ba9d51 (diff) | |
download | hdf5-b4153b4f5edef4833abea9a1249baf4690984258.zip hdf5-b4153b4f5edef4833abea9a1249baf4690984258.tar.gz hdf5-b4153b4f5edef4833abea9a1249baf4690984258.tar.bz2 |
[svn-r9955] Purpose:
New feature & bug fix
Description:
Allow h5debug tool to dump "test" v2 B-trees correctly.
Also, fix incorrect parameter passing that was causing failures on
various platforms.
Platforms tested:
FreeBSD 4.11 (sleipnir)
AIX 5.2 (copper)
Diffstat (limited to 'src/H5B2pkg.h')
-rw-r--r-- | src/H5B2pkg.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/H5B2pkg.h b/src/H5B2pkg.h index 001d0ca..b6aa65c 100644 --- a/src/H5B2pkg.h +++ b/src/H5B2pkg.h @@ -65,6 +65,11 @@ 2 + /* Merge % of full (as integer, ie. "98" means 98%) */ \ H5B2_NODE_POINTER_SIZE(f)) /* Node pointer to root node in tree */ +/* Macro to retrieve pointer to i'th native key for leaf node */ +#define H5B2_INT_NREC(i,shared,idx) ((i)->int_native+(shared)->nat_off[(idx)]) +#define H5B2_LEAF_NREC(l,shared,idx) ((l)->leaf_native+(shared)->nat_off[(idx)]) + + /****************************/ /* Package Private Typedefs */ /****************************/ @@ -160,6 +165,11 @@ H5FL_EXTERN(H5B2_internal_t); /* Declare a free list to manage the H5B2_leaf_t struct */ H5FL_EXTERN(H5B2_leaf_t); +/* Internal v2 B-tree testing class */ +#ifdef H5B2_TESTING +H5_DLLVAR const H5B2_class_t H5B2_TEST[1]; +#endif /* H5B2_TESTING */ + /******************************/ /* Package Private Prototypes */ @@ -172,6 +182,12 @@ H5_DLL herr_t H5B2_cache_leaf_dest(H5F_t *f, H5B2_leaf_t *l); H5_DLL herr_t H5B2_cache_internal_dest(H5F_t *f, H5B2_internal_t *i); H5_DLL herr_t H5B2_hdr_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, int fwidth, const H5B2_class_t *type); +H5_DLL herr_t H5B2_int_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, + FILE *stream, int indent, int fwidth, const H5B2_class_t *type, + haddr_t hdr_addr, unsigned nrec); +H5_DLL herr_t H5B2_leaf_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, + FILE *stream, int indent, int fwidth, const H5B2_class_t *type, + haddr_t hdr_addr, unsigned nrec); #endif /* _H5B2pkg_H */ |