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 Jul 17, 2023
1 parent ac14742 commit e1e7055
Show file tree
Hide file tree
Showing 7 changed files with 509 additions and 919 deletions.
10 changes: 5 additions & 5 deletions src/H5Eprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ typedef struct H5E_t H5E_t;
#define HGOTO_ERROR(maj, min, ret_val, ...) \
{ \
HCOMMON_ERROR(maj, min, __VA_ARGS__); \
HGOTO_DONE(ret_val); \
HGOTO_DONE(ret_val); \
}

/*
Expand All @@ -77,7 +77,7 @@ typedef struct H5E_t H5E_t;
{ \
H5AC_tag(prv_tag, NULL); \
HCOMMON_ERROR(maj, min, __VA_ARGS__); \
HGOTO_DONE(ret_val); \
HGOTO_DONE(ret_val); \
}

/*
Expand All @@ -87,10 +87,10 @@ typedef struct H5E_t H5E_t;
* the `done' label.
*/
#define HGOTO_DONE(ret_val) \
do { \
do { \
ret_value = ret_val; \
goto done; \
} while (0)
} while (0)

/*
* HGOTO_DONE_TAG macro, used like HGOTO_DONE between H5_BEGIN_TAG and
Expand All @@ -99,7 +99,7 @@ do {
#define HGOTO_DONE_TAG(ret_val) \
{ \
H5AC_tag(prv_tag, NULL); \
HGOTO_DONE(ret_val); \
HGOTO_DONE(ret_val); \
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/H5Fint.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ H5F__get_objects_cb(void *obj_ptr, hid_t obj_id, void *key)
*/
if (olist->max_nobjs > 0 && olist->list_index >= olist->max_nobjs)
HGOTO_DONE(H5_ITER_STOP); /* Indicate that the iterator should stop */
} /* end if */
} /* end if */

done:
FUNC_LEAVE_NOAPI(ret_value)
Expand Down
4 changes: 2 additions & 2 deletions src/H5MFpkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@

/* Calculate the mis-aligned fragment */
#define H5MF_EOA_MISALIGN(F, E, A, FR) \
do { \
do { \
hsize_t m; \
\
if (H5_addr_gt((E), 0) && ((m) = ((E) + H5F_BASE_ADDR(F)) % (A))) \
(FR) = (A)-m; \
else \
(FR) = 0; \
} while (0)
} while (0)

/****************************/
/* Package Private Typedefs */
Expand Down
Loading

0 comments on commit e1e7055

Please sign in to comment.