summaryrefslogtreecommitdiffstats
path: root/src/H5Ofill.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-08 20:09:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-08 20:09:07 (GMT)
commit390f1d02846803abfd46d30b3bd27894a30698c6 (patch)
treeaa0269135e97f1e92f0c33d970dac519d5025532 /src/H5Ofill.c
parent3fff86acfa11ab756a8f72f3a30478677fb7bcf6 (diff)
downloadhdf5-390f1d02846803abfd46d30b3bd27894a30698c6.zip
hdf5-390f1d02846803abfd46d30b3bd27894a30698c6.tar.gz
hdf5-390f1d02846803abfd46d30b3bd27894a30698c6.tar.bz2
[svn-r6837] Purpose:
Code cleanup. Description: Move many package or internal function prototypes and macro definitions into tighter scope according to their current use. Added more comments where appropriate. Eliminate ancient, unused functions. Added a couple "accessor" functions to get parts of data structures which were moved out of scope. Platforms tested: h5committested
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r--src/H5Ofill.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index 210b2de..8fbe390 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -21,13 +21,13 @@
#define H5O_PACKAGE /*suppress error about including H5Opkg */
-#include "H5private.h"
-#include "H5Eprivate.h"
-#include "H5FLprivate.h" /*Free Lists */
-#include "H5Iprivate.h"
-#include "H5MMprivate.h"
+#include "H5private.h" /* Generic Functions */
+#include "H5Eprivate.h" /* Error handling */
+#include "H5FLprivate.h" /* Free Lists */
+#include "H5Iprivate.h" /* IDs */
+#include "H5MMprivate.h" /* Memory management */
#include "H5Opkg.h" /* Object header functions */
-#include "H5Pprivate.h"
+#include "H5Pprivate.h" /* Property lists */
#define PABLO_MASK H5O_fill_mask
@@ -870,7 +870,7 @@ H5O_fill_convert(void *_fill, H5T_t *dset_type, hid_t dxpl_id)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion");
HDmemcpy(buf, fill->buf, H5T_get_size(fill->type));
}
- if (tpath->cdata.need_bkg && NULL==(bkg=H5MM_malloc(H5T_get_size(dset_type))))
+ if (H5T_path_bkg(tpath) && NULL==(bkg=H5MM_malloc(H5T_get_size(dset_type))))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion");
/* Do the conversion */