diff options
Diffstat (limited to 'src/H5FDcore.c')
-rw-r--r-- | src/H5FDcore.c | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/src/H5FDcore.c b/src/H5FDcore.c index 97437de..fe5baac 100644 --- a/src/H5FDcore.c +++ b/src/H5FDcore.c @@ -189,7 +189,7 @@ static const H5FD_class_t H5FD_core_g = { /* Define a free list to manage the region type */ H5FL_DEFINE(H5FD_core_region_t); - + /*------------------------------------------------------------------------- * Function: H5FD__core_add_dirty_region * @@ -295,7 +295,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_add_dirty_region() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_destroy_dirty_list * @@ -330,7 +330,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_destroy_dirty_list() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_write_to_bstore * @@ -403,7 +403,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_write_to_bstore() */ - + /*------------------------------------------------------------------------- * Function: H5FD__init_package * @@ -437,7 +437,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* H5FD__init_package() */ - + /*------------------------------------------------------------------------- * Function: H5FD_core_init * @@ -469,7 +469,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD_core_init() */ - + /*--------------------------------------------------------------------------- * Function: H5FD__core_term * @@ -493,7 +493,7 @@ H5FD__core_term(void) FUNC_LEAVE_NOAPI(SUCCEED) } /* end H5FD__core_term() */ - + /*------------------------------------------------------------------------- * Function: H5Pset_core_write_tracking * @@ -545,7 +545,7 @@ done: FUNC_LEAVE_API(ret_value) } /* end H5Pset_core_write_tracking() */ - + /*------------------------------------------------------------------------- * Function: H5Pget_core_write_tracking * @@ -587,7 +587,7 @@ done: FUNC_LEAVE_API(ret_value) } /* end H5Pget_core_write_tracking() */ - + /*------------------------------------------------------------------------- * Function: H5Pset_fapl_core * @@ -631,7 +631,7 @@ done: FUNC_LEAVE_API(ret_value) } /* end H5Pset_fapl_core() */ - + /*------------------------------------------------------------------------- * Function: H5Pget_fapl_core * @@ -670,7 +670,7 @@ done: FUNC_LEAVE_API(ret_value) } /* end H5Pget_fapl_core() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_fapl_get * @@ -708,7 +708,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_fapl_get() */ - + /*------------------------------------------------------------------------- * Function: H5FD___core_open * @@ -964,7 +964,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_open() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_close * @@ -1015,7 +1015,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_close() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_cmp * @@ -1093,7 +1093,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_cmp() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_query * @@ -1114,6 +1114,7 @@ H5FD__core_query(const H5FD_t * _file, unsigned long *flags /* out */) FUNC_ENTER_STATIC_NOERR + /* clang-format off */ /* Set the VFL feature flags that this driver supports */ if(flags) { *flags = 0; @@ -1130,11 +1131,12 @@ H5FD__core_query(const H5FD_t * _file, unsigned long *flags /* out */) *flags |= H5FD_FEAT_DEFAULT_VFD_COMPATIBLE; /* VFD creates a file which can be opened with the default VFD */ } } /* end if */ + /* clang-format on */ FUNC_LEAVE_NOAPI(SUCCEED) } /* end H5FD__core_query() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_get_eoa * @@ -1159,7 +1161,7 @@ H5FD__core_get_eoa(const H5FD_t *_file, H5FD_mem_t H5_ATTR_UNUSED type) FUNC_LEAVE_NOAPI(file->eoa) } /* end H5FD__core_get_eoa() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_set_eoa * @@ -1191,7 +1193,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_set_eoa() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_get_eof * @@ -1218,7 +1220,7 @@ H5FD__core_get_eof(const H5FD_t *_file, H5FD_mem_t H5_ATTR_UNUSED type) FUNC_LEAVE_NOAPI(file->eof) } /* end H5FD__core_get_eof() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_get_handle * @@ -1278,7 +1280,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_get_handle() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_read * @@ -1299,7 +1301,7 @@ static herr_t H5FD__core_read(H5FD_t *_file, H5FD_mem_t H5_ATTR_UNUSED type, hid_t H5_ATTR_UNUSED dxpl_id, haddr_t addr, size_t size, void *buf/*out*/) { - H5FD_core_t *file = (H5FD_core_t*)_file; + H5FD_core_t *file = (H5FD_core_t*)_file; herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC @@ -1340,7 +1342,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_read() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_write * @@ -1421,7 +1423,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_write() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_flush * @@ -1483,7 +1485,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_flush() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_truncate * @@ -1508,7 +1510,7 @@ done: * If we are not closing, we realloc the buffer to size equal * to the smallest multiple of the allocation increment that * equals or exceeds the eoa and set the eof accordingly. - * Note that we no longer truncate the backing store to the + * Note that we no longer truncate the backing store to the * new eof if applicable. * -- JRM * @@ -1603,14 +1605,14 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_truncate() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_lock * * Purpose: To place an advisory lock on a file. - * The lock type to apply depends on the parameter "rw": - * TRUE--opens for write: an exclusive lock - * FALSE--opens for read: a shared lock + * The lock type to apply depends on the parameter "rw": + * TRUE--opens for write: an exclusive lock + * FALSE--opens for read: a shared lock * * Return: SUCCEED/FAIL * @@ -1653,7 +1655,7 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD__core_lock() */ - + /*------------------------------------------------------------------------- * Function: H5FD__core_unlock * @@ -1668,7 +1670,7 @@ done: static herr_t H5FD__core_unlock(H5FD_t *_file) { - H5FD_core_t *file = (H5FD_core_t*)_file; /* VFD file struct */ + H5FD_core_t *file = (H5FD_core_t*)_file; /* VFD file struct */ herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC |