summaryrefslogtreecommitdiffstats
path: root/src/H5M.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-09-05 19:33:15 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-09-05 19:33:15 (GMT)
commit0a379e1cc1a0cfcc51d3bb1a3e90cbc3310aa820 (patch)
treef46c614ba963652e912e050b4434614c4b5f2dca /src/H5M.c
parente58abf2a422e81bb49f315f4d9b014bbc63ad03a (diff)
downloadhdf5-0a379e1cc1a0cfcc51d3bb1a3e90cbc3310aa820.zip
hdf5-0a379e1cc1a0cfcc51d3bb1a3e90cbc3310aa820.tar.gz
hdf5-0a379e1cc1a0cfcc51d3bb1a3e90cbc3310aa820.tar.bz2
[svn-r70] Added clarifying comments from code review meeting to H5Mflush and H5D_flush.
Diffstat (limited to 'src/H5M.c')
-rw-r--r--src/H5M.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/H5M.c b/src/H5M.c
index 04cbeaf..b4a18a4 100644
--- a/src/H5M.c
+++ b/src/H5M.c
@@ -614,17 +614,19 @@ done:
--------------------------------------------------------------------------*/
hatom_t H5Mflush(hatom_t oid)
{
- group_t group=H5Aatom_group(oid); /* Atom group for incoming object */
+ group_t group; /* Atom group for incoming object */
intn i; /* local counting variable */
herr_t ret_value = SUCCEED;
- FUNC_ENTER(H5Mflush, H5M_init_interface, FAIL);
+ FUNC_ENTER(H5Mflush, H5M_init_interface, FAIL); /* Insert function initialization code and variables */
/* Clear errors and check args and all the boring stuff. */
H5ECLEAR;
+ group=H5Aatom_group(oid); /* look up group for incoming object */
if(group<=BADGROUP || group>=MAXGROUP)
HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL);
+ /* Find correct function pointer set from static array */
i=H5M_find_type(group);
if(meta_func_arr[i].flush==NULL)
HGOTO_ERROR(H5E_INTERNAL, H5E_UNSUPPORTED, FAIL);
@@ -638,7 +640,7 @@ done:
/* Normal function cleanup */
- FUNC_LEAVE(ret_value);
+ FUNC_LEAVE(ret_value); /* Insert function prologue code */
} /* end H5Mflush() */
/*--------------------------------------------------------------------------