From b8e5408e6ff53436e113c9c17b7700092e47363b Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Mon, 5 Oct 2020 08:45:48 -0500 Subject: Update formating --- c++/src/H5Location.h | 6 +++--- hl/src/H5LTanalyze.c | 6 +----- src/H5Fquery.c | 4 ++-- src/H5MF.c | 2 +- src/H5Ocache.c | 2 +- test/fheap.c | 5 +++-- 6 files changed, 11 insertions(+), 14 deletions(-) diff --git a/c++/src/H5Location.h b/c++/src/H5Location.h index 74e24ef..99f584d 100644 --- a/c++/src/H5Location.h +++ b/c++/src/H5Location.h @@ -200,9 +200,9 @@ class H5_DLLCPP H5Location : public IdComponent { // PropList is currently not used, so always be default. // Deprecated // virtual Attribute createAttribute(const char* name, const DataType& type, const DataSpace& space, const - // PropList& create_plist = PropList::DEFAULT) const; virtual Attribute createAttribute(const H5std_string& - // name, const DataType& type, const DataSpace& space, const PropList& create_plist = PropList::DEFAULT) - // const; + // PropList& create_plist = PropList::DEFAULT) const; virtual Attribute createAttribute(const + // H5std_string& name, const DataType& type, const DataSpace& space, const PropList& create_plist = + // PropList::DEFAULT) const; // Given its name, opens the attribute that belongs to an object at // this location. diff --git a/hl/src/H5LTanalyze.c b/hl/src/H5LTanalyze.c index 63b9755..13b6ce7 100644 --- a/hl/src/H5LTanalyze.c +++ b/hl/src/H5LTanalyze.c @@ -2156,11 +2156,7 @@ H5LTyy_scan_buffer(char *base, yy_size_t size) * H5LTyy_scan_bytes() instead. */ YY_BUFFER_STATE -H5LTyy_scan_string(yyconst char *yystr) -{ - - return H5LTyy_scan_bytes(yystr, strlen(yystr)); -} +H5LTyy_scan_string(yyconst char *yystr) { return H5LTyy_scan_bytes(yystr, strlen(yystr)); } /** Setup the input buffer state to scan the given bytes. The next call to H5LTyylex() will * scan from a @e copy of @a bytes. diff --git a/src/H5Fquery.c b/src/H5Fquery.c index 42f7c3a..e407d1e 100644 --- a/src/H5Fquery.c +++ b/src/H5Fquery.c @@ -143,8 +143,8 @@ H5F_get_actual_name(const H5F_t *f) * Function: H5F_get_extpath * * Purpose: Retrieve the file's 'extpath' flags - * This is used by H5L_extern_traverse() and H5D_build_extfile_prefix() to retrieve the main file's - *location when searching the target file. + * This is used by H5L_extern_traverse() and H5D_build_extfile_prefix() to retrieve the main + *file's location when searching the target file. * * Return: 'extpath' on success/abort on failure (shouldn't fail) * diff --git a/src/H5MF.c b/src/H5MF.c index da1fb6f..6137bf0 100644 --- a/src/H5MF.c +++ b/src/H5MF.c @@ -1124,7 +1124,7 @@ H5MF_close(H5F_t *f, hid_t dxpl_id) #ifdef H5MF_ALLOC_DEBUG_MORE HDfprintf(stderr, "%s: Before deleting free space manager\n", FUNC); -#endif /* H5MF_ALLOC_DEBUG_MORE */ +#endif /* H5MF_ALLOC_DEBUG_MORE */ /* Delete free space manager for this type */ if (H5FS_delete(f, dxpl_id, tmp_fs_addr) < 0) HGOTO_ERROR(H5E_FSPACE, H5E_CANTFREE, FAIL, "can't delete free space manager") diff --git a/src/H5Ocache.c b/src/H5Ocache.c index eb843db..8a8ce9f 100644 --- a/src/H5Ocache.c +++ b/src/H5Ocache.c @@ -428,7 +428,7 @@ H5O_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t H5_ATTR_UNUSED addr, break; case 2: /* 4 byte size */ - /* use <= 2**32 -1 to stay within 4 bytes integer range */ + /* use <= 2**32 -1 to stay within 4 bytes integer range */ HDassert(chunk0_size <= 4294967295UL); UINT32ENCODE(p, chunk0_size); break; diff --git a/test/fheap.c b/test/fheap.c index cfc1053..8d8b84a 100644 --- a/test/fheap.c +++ b/test/fheap.c @@ -75,8 +75,9 @@ #define IBLOCK_MAX_DROWS(fh, pos) \ H5HF_get_iblock_max_drows_test(fh, pos) /* Max. # of direct block rows in a indirect block */ #define DBLOCK_SIZE(fh, r) H5HF_get_dblock_size_test(fh, r) /* Size of a direct block in a given row */ -#define DBLOCK_FREE(fh, r) H5HF_get_dblock_free_test(fh, r) /* Free space in a direct block of a given row \ - */ +#define DBLOCK_FREE(fh, r) \ + H5HF_get_dblock_free_test(fh, r) /* Free space in a direct block of a given row \ + */ const char *FILENAME[] = {"fheap", NULL}; -- cgit v0.12