diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-12-20 17:22:31 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:21 (GMT) |
commit | ba9f12b6d866417ad947562f3865cabd402199b9 (patch) | |
tree | 9ad1e6c2a32490120d3c5a7d3d810cc54c8a1c5a /src/H5Tref.c | |
parent | 996e12e796bff4c2d2b4f2fed189f542f0d8f58d (diff) | |
download | hdf5-ba9f12b6d866417ad947562f3865cabd402199b9.zip hdf5-ba9f12b6d866417ad947562f3865cabd402199b9.tar.gz hdf5-ba9f12b6d866417ad947562f3865cabd402199b9.tar.bz2 |
Cleanups from PR reviews
Diffstat (limited to 'src/H5Tref.c')
-rw-r--r-- | src/H5Tref.c | 154 |
1 files changed, 77 insertions, 77 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c index 56ac878..f31fecf 100644 --- a/src/H5Tref.c +++ b/src/H5Tref.c @@ -193,16 +193,16 @@ H5T__ref_set_loc(const H5T_t *dt, H5VL_object_t *file, H5T_loc_t loc) H5F_t *f; #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ @@ -220,16 +220,16 @@ H5T__ref_set_loc(const H5T_t *dt, H5VL_object_t *file, H5T_loc_t loc) H5F_t *f; #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ @@ -554,16 +554,16 @@ H5T__ref_mem_write(H5VL_object_t *src_file, const void *src_buf, size_t src_size HDassert(dst_size == H5T_REF_MEM_SIZE); #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(src_file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(src_file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ @@ -904,16 +904,16 @@ static herr_t H5T__ref_obj_disk_isnull(const H5VL_object_t *src_file, HDassert(isnull); #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(src_file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(src_file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ @@ -954,16 +954,16 @@ H5T__ref_obj_disk_getsize(H5VL_object_t *src_file, const void H5_ATTR_UNUSED *sr HDassert(src_buf); #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(src_file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(src_file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ @@ -1002,16 +1002,16 @@ H5T__ref_obj_disk_read(H5VL_object_t *src_file, const void *src_buf, size_t src_ HDassert(dst_buf); #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(src_file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(src_file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ @@ -1057,16 +1057,16 @@ H5T__ref_dsetreg_disk_isnull(const H5VL_object_t *src_file, const void *src_buf, HDassert(isnull); #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(src_file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(src_file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ @@ -1105,23 +1105,23 @@ H5T__ref_dsetreg_disk_getsize(H5VL_object_t H5_ATTR_UNUSED *src_file, HDassert(src_buf); #ifndef NDEBUG -{ - H5F_t *src_f; - hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ + { + H5F_t *src_f; + hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(src_file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(src_file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, 0, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); + /* Must use native VOL connector for this operation */ + HDassert(is_native); - /* Retrieve file from VOL object */ - if(NULL == (src_f = (H5F_t *)H5VL_object_data(src_file))) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "invalid VOL object") + /* Retrieve file from VOL object */ + if(NULL == (src_f = (H5F_t *)H5VL_object_data(src_file))) + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "invalid VOL object") - HDassert(src_size == H5T_REF_DSETREG_DISK_SIZE(src_f)); -} + HDassert(src_size == H5T_REF_DSETREG_DISK_SIZE(src_f)); + } #endif /* NDEBUG */ done: @@ -1154,16 +1154,16 @@ H5T__ref_dsetreg_disk_read(H5VL_object_t *src_file, const void *src_buf, size_t HDassert(dst_size == sizeof(struct H5Tref_dsetreg)); #ifndef NDEBUG -{ - hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ + { + hbool_t is_native = FALSE; /* Whether the src file is using the native VOL connector */ - /* Check if using native VOL connector */ - if(H5VL_object_is_native(src_file, &is_native) < 0) - HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") + /* Check if using native VOL connector */ + if(H5VL_object_is_native(src_file, &is_native) < 0) + HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL, "can't query if file uses native VOL connector") - /* Must use native VOL connector for this operation */ - HDassert(is_native); -} + /* Must use native VOL connector for this operation */ + HDassert(is_native); + } #endif /* NDEBUG */ /* Retrieve file from VOL object */ |