summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-08-28 17:14:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-08-28 17:14:35 (GMT)
commita39e0ef324c57105c09e84f4aee878595a320a41 (patch)
tree401eaf34c9864657784d486b79c2cae1da1b0614 /src/H5D.c
parente8d5c25431dd926d04f35cc06ab2027db86869cf (diff)
downloadhdf5-a39e0ef324c57105c09e84f4aee878595a320a41.zip
hdf5-a39e0ef324c57105c09e84f4aee878595a320a41.tar.gz
hdf5-a39e0ef324c57105c09e84f4aee878595a320a41.tar.bz2
[svn-r47] Finished flashing out the H5M* functions calls. Cleaned up non-compiling
source. Finished adding in remainder of H5Osdtyp.c functions.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 54b3e5f..08bcbfe 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -34,6 +34,9 @@ static char RcsId[] = "@(#)$Revision$";
#include <H5private.h> /* Generic Functions */
#include <H5Aprivate.h> /* Atoms */
+#include <H5Gprivate.h> /* Groups */
+#include <H5Oprivate.h> /* Object Headers */
+#include <H5Mprivate.h> /* Meta-Object API */
#include <H5Dprivate.h> /* Dataset functions */
#include <H5Eprivate.h> /* Error handling */
#include <H5Mprivate.h> /* Meta data */
@@ -299,21 +302,9 @@ herr_t H5D_flush(hatom_t oid)
if(dset_parent!=H5_FILE ||
(dset_parent==H5_FILE && root_type==H5F_ROOT_DIRECTORY))
{
- uintn namelen; /* length of parent directory's name */
- char *name; /* pointer to parent directory's name */
-
- /* Get the name of the parent directory */
- if((namelen=H5Mname_len(dataset->parent))==UFAIL)
- HGOTO_ERROR(H5E_DIRECTORY, H5E_BADVALUE, FAIL);
- if((name=HDmalloc(namelen+1))==NULL);
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL);
- if(H5Mget_name(dataset->parent,name)==FAIL)
- HGOTO_ERROR(H5E_DIRECTORY, H5E_NOTFOUND, FAIL);
-
/* Insert the dataset into the parent directory */
- if(H5G_insert (file, NULL, name, dataset->name, &d_sym)==FAIL)
+ if(H5G_insert (file, NULL, NULL, dataset->name, &d_sym)==FAIL)
HGOTO_ERROR(H5E_DIRECTORY, H5E_CANTINSERT, FAIL);
- HDfree(name);
} /* end if */
else /* insert dataset as root-object, or into root-directory */
{