summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-04-14 04:49:26 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-04-14 04:49:26 (GMT)
commit32aed76605ffaf1c46f91526ce195ca40c0aadc8 (patch)
tree65d705e343698bbed7920cf7f8e2bbbbc739905c /src/H5G.c
parentf37cc250264ad00bb69e454676f8bc81fd454d40 (diff)
downloadhdf5-32aed76605ffaf1c46f91526ce195ca40c0aadc8.zip
hdf5-32aed76605ffaf1c46f91526ce195ca40c0aadc8.tar.gz
hdf5-32aed76605ffaf1c46f91526ce195ca40c0aadc8.tar.bz2
[svn-r6654] Purpose:
Code cleanup Description: Stop using hard-coded constant for the initial size of the root group's symbol table local heap and use macro. Also, changed existing (unused) macro for the initial heap size to be the same as the hard-coded constant. Platforms tested: FreeBSD 4.8 (sleipnir) w/C++ Linux 2.4 (burrwhite) w/FORTRAN Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/parallel & FORTRAN (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 9d3391c..a3eb9b5 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -1550,7 +1550,7 @@ H5G_mkroot (H5F_t *f, hid_t dxpl_id, H5G_entry_t *ent)
if (!ent) {
ent = &new_root;
HDmemset(ent, 0, sizeof(H5G_entry_t));
- if (H5G_stab_create (f, dxpl_id, 256, ent/*out*/)<0)
+ if (H5G_stab_create (f, dxpl_id, H5G_SIZE_HINT, ent/*out*/)<0)
HGOTO_ERROR (H5E_SYM, H5E_CANTINIT, FAIL, "unable to create root group");
if (1 != H5O_link (ent, 1, dxpl_id))
HGOTO_ERROR (H5E_SYM, H5E_LINK, FAIL, "internal error (wrong link count)");
@@ -2768,13 +2768,13 @@ H5G_unlink(H5G_entry_t *loc, const char *name, hid_t dxpl_id)
/* Remove the name from the symbol table */
if (H5G_stab_remove(&grp_ent, base, dxpl_id)<0)
- HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to unlink name from symbol table");
+ HGOTO_ERROR(H5E_SYM, H5E_CANTDELETE, FAIL, "unable to unlink name from symbol table");
/* Search the open IDs and replace names for unlinked object */
name_r=H5RS_wrap(name);
assert(name_r);
if (H5G_replace_name(statbuf.type, &obj_ent, name_r, NULL, NULL, NULL, OP_UNLINK )<0)
- HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to replace name");
+ HGOTO_ERROR(H5E_SYM, H5E_CANTDELETE, FAIL, "unable to replace name");
H5RS_decr(name_r);
done: