diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2017-05-24 11:44:18 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2017-05-24 11:44:18 (GMT) |
commit | e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3 (patch) | |
tree | 2f4f57f2bec05bd3bc2fb15e0b93052c578fd90f /src/H5FD.c | |
parent | e3b22b8fa45697d6f73330b33cd201c37e0335d6 (diff) | |
download | hdf5-e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3.zip hdf5-e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3.tar.gz hdf5-e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3.tar.bz2 |
* Made H5FD_driver_query() a private function instead of static.
* Moved H5FD_driver_query() to H5FDint.c.
* Minor typo fixes in H5I.c.
* Updated swmr.c to check the VFD feature flags and skip the
retries test when the VFD is not compatible with H5P_DEFAULT.
Diffstat (limited to 'src/H5FD.c')
-rw-r--r-- | src/H5FD.c | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -62,7 +62,6 @@ /********************/ static herr_t H5FD_free_cls(H5FD_class_t *cls); static int H5FD_query(const H5FD_t *f, unsigned long *flags/*out*/); -static int H5FD_driver_query(const H5FD_class_t *driver, unsigned long *flags/*out*/); /*********************/ /* Package Variables */ @@ -1085,42 +1084,6 @@ H5FD_query(const H5FD_t *f, unsigned long *flags/*out*/) /*------------------------------------------------------------------------- -* Function: H5FD_driver_query -* -* Purpose: Similar to H5FD_query(), but intended for cases when we don't -* have a file available (e.g. before one is opened). Since we -* can't use the file to get the driver, the driver is passed in -* as a parameter. -* -* Return: Success: non-negative -* Failure: negative -* -* Programmer: Jacob Gruber -* Wednesday, August 17, 2011 -* -*------------------------------------------------------------------------- -*/ -static int -H5FD_driver_query(const H5FD_class_t *driver, unsigned long *flags/*out*/) -{ - int ret_value = 0; /* Return value */ - - FUNC_ENTER_NOAPI_NOINIT_NOERR - - HDassert(driver); - HDassert(flags); - - /* Check for the driver to query and then query it */ - if(driver->query) - ret_value = (driver->query)(NULL, flags); - else - *flags = 0; - - FUNC_LEAVE_NOAPI(ret_value) -} /* end H5FD_driver_query() */ - - -/*------------------------------------------------------------------------- * Function: H5FDalloc * * Purpose: Allocates SIZE bytes of memory from the FILE. The memory will |