Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 23, 2024
1 parent fb20e00 commit 26ab363
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/H5.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ H5__debug_mask(const char *s)
H5_debug_g.pkg[i].stream = clear ? NULL : stream;
break;
} /* end if */
} /* end for */
} /* end for */
if (i >= (size_t)H5_NPKGS)
fprintf(stderr, "HDF5_DEBUG: ignored %s\n", pkg_name);
} /* end if-else */
Expand Down Expand Up @@ -761,7 +761,7 @@ H5__debug_mask(const char *s)
else {
s++;
} /* end if-else */
} /* end while */
} /* end while */
} /* end H5__debug_mask() */

#ifdef H5_HAVE_PARALLEL
Expand Down
8 changes: 5 additions & 3 deletions src/H5TSthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,14 @@ H5TS_thread_detach(H5TS_thread_t thread)
*--------------------------------------------------------------------------
*/
herr_t
H5TS_thread_setcancelstate(int H5_ATTR_UNUSED state, int H5_ATTR_UNUSED *oldstate){
H5TS_thread_setcancelstate(int H5_ATTR_UNUSED state, int H5_ATTR_UNUSED *oldstate)
{
FUNC_ENTER_NOAPI_NAMECHECK_ONLY

/* Windows threads are not cancelable, so this is a noop */
/* Windows threads are not cancelable, so this is a noop */

FUNC_LEAVE_NOAPI_NAMECHECK_ONLY(SUCCEED)} /* H5TS_thread_setcancelstate() */
FUNC_LEAVE_NOAPI_NAMECHECK_ONLY(SUCCEED)
} /* H5TS_thread_setcancelstate() */
#else
/*--------------------------------------------------------------------------
* Function: H5TS_thread_create
Expand Down
10 changes: 5 additions & 5 deletions src/H5private.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
/* Check if a read of size bytes starting at ptr would overflow past
* the last valid byte, pointed to by buffer_end.
*/
#define H5_IS_BUFFER_OVERFLOW(ptr, size, buffer_end) (((ptr) + (size) - 1) > (buffer_end))
#define H5_IS_BUFFER_OVERFLOW(ptr, size, buffer_end) (((ptr) + (size)-1) > (buffer_end))

/* Variant of H5_IS_BUFFER_OVERFLOW, used with functions such as H5Tdecode()
* that don't take a size parameter, where we need to skip the bounds checks.
Expand All @@ -340,7 +340,7 @@
* the entire library.
*/
#define H5_IS_KNOWN_BUFFER_OVERFLOW(skip, ptr, size, buffer_end) \
(skip ? false : ((ptr) + (size) - 1) > (buffer_end))
(skip ? false : ((ptr) + (size)-1) > (buffer_end))

/*
* HDF Boolean type.
Expand Down Expand Up @@ -903,7 +903,7 @@ H5_DLL H5_ATTR_CONST int Nflock(int fd, int operation);
#ifdef H5_HAVE_VASPRINTF
#define HDvasprintf(RET, FMT, A) vasprintf(RET, FMT, A)
#else
H5_DLL int HDvasprintf(char **bufp, const char *fmt, va_list _ap);
H5_DLL int HDvasprintf(char **bufp, const char *fmt, va_list _ap);
#endif
#endif

Expand Down Expand Up @@ -1356,8 +1356,8 @@ H5_DLL herr_t H5CX_pop(bool update_dxpl_props);
/* Don't check again */ \
func_check = true; \
} /* end if */ \
} /* end scope */
#else /* NDEBUG */
} /* end scope */
#else /* NDEBUG */
#define FUNC_ENTER_CHECK_NAME(asrt)
#endif /* NDEBUG */

Expand Down

0 comments on commit 26ab363

Please sign in to comment.