From 0173a3720d0576dfdf4053ae7c8c406d930e0857 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 14 Oct 2002 14:57:17 -0500 Subject: [svn-r5993] Purpose: New feature. Description: Add H5P_DEFAULT_HASH_SIZE macro for users to use as the default size of hash tables for H5Pcreate_class. Platforms tested: FreeBSD 4.6 (sleipnir) w and w/o parallel Linux 2.2.x (eirene) w/FORTRAN & C++ Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/FORTRAN & parallel --- src/H5Ppublic.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h index 07cbec2..b0b332e 100644 --- a/src/H5Ppublic.h +++ b/src/H5Ppublic.h @@ -67,10 +67,6 @@ typedef herr_t (*H5P_prp_close_func_t)(const char *name, size_t size, void *valu /* Define property list iteration function type */ typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data); -#ifdef __cplusplus -extern "C" { -#endif - /* * The library created property list classes */ @@ -109,6 +105,13 @@ H5_DLLVAR hid_t H5P_LST_DATASET_CREATE_g; H5_DLLVAR hid_t H5P_LST_DATASET_XFER_g; H5_DLLVAR hid_t H5P_LST_MOUNT_g; +/* Default hash table size */ +#define H5P_DEFAULT_HASH_SIZE 17 + +#ifdef __cplusplus +extern "C" { +#endif + /* Public functions */ H5_DLL hid_t H5Pcreate_class(hid_t parent, const char *name, unsigned hashsize, H5P_cls_create_func_t cls_create, void *create_data, -- cgit v0.12