summaryrefslogtreecommitdiffstats
path: root/src/H5Fefc.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-29 13:36:40 (GMT)
committerGitHub <noreply@github.com>2022-07-29 13:36:40 (GMT)
commit40fc2cca16cd562954d3b724fa56badb3b9da72b (patch)
tree536b4bb51328af98ead7dfa1951f36b47f9b752a /src/H5Fefc.c
parentc63dfb0fd3345ecb33014612f94d3959f147be03 (diff)
downloadhdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.zip
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.gz
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.bz2
1.10 clang 13 format #1933 (#1940)
* clang 13 format #1933 * Correct workflow
Diffstat (limited to 'src/H5Fefc.c')
-rw-r--r--src/H5Fefc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5Fefc.c b/src/H5Fefc.c
index fbd81ef..14dd69e 100644
--- a/src/H5Fefc.c
+++ b/src/H5Fefc.c
@@ -41,8 +41,8 @@
/* Structure for each entry in a file's external file cache */
typedef struct H5F_efc_ent_t {
- char * name; /* Name of the file */
- H5F_t * file; /* File object */
+ char *name; /* Name of the file */
+ H5F_t *file; /* File object */
struct H5F_efc_ent_t *LRU_next; /* Next item in LRU list */
struct H5F_efc_ent_t *LRU_prev; /* Previous item in LRU list */
unsigned nopen; /* Number of times this file is currently opened by an EFC client */
@@ -50,14 +50,14 @@ typedef struct H5F_efc_ent_t {
/* Structure for a shared file struct's external file cache */
struct H5F_efc_t {
- H5SL_t * slist; /* Skip list of cached external files */
+ H5SL_t *slist; /* Skip list of cached external files */
H5F_efc_ent_t *LRU_head; /* Head of LRU list. This is the least recently used file */
H5F_efc_ent_t *LRU_tail; /* Tail of LRU list. This is the most recently used file */
unsigned nfiles; /* Size of the external file cache */
unsigned max_nfiles; /* Maximum size of the external file cache */
unsigned nrefs; /* Number of times this file appears in another file's EFC */
int tag; /* Temporary variable used by H5F__efc_try_close() */
- H5F_shared_t * tmp_next; /* Next file in temporary list used by H5F__efc_try_close() */
+ H5F_shared_t *tmp_next; /* Next file in temporary list used by H5F__efc_try_close() */
};
/* Private prototypes */
@@ -138,10 +138,10 @@ done:
H5F_t *
H5F__efc_open(H5F_t *parent, const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id)
{
- H5F_efc_t * efc = NULL; /* External file cache for parent file */
+ H5F_efc_t *efc = NULL; /* External file cache for parent file */
H5F_efc_ent_t *ent = NULL; /* Entry for target file in efc */
hbool_t open_file = FALSE; /* Whether ent->file needs to be closed in case of error */
- H5F_t * ret_value = NULL; /* Return value */
+ H5F_t *ret_value = NULL; /* Return value */
FUNC_ENTER_PACKAGE
@@ -244,7 +244,7 @@ H5F__efc_open(H5F_t *parent, const char *name, unsigned flags, hid_t fcpl_id, hi
else
/* Allocate new entry */
if (NULL == (ent = H5FL_MALLOC(H5F_efc_ent_t)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
/* Build new entry */
if (NULL == (ent->name = H5MM_strdup(name)))
@@ -325,7 +325,7 @@ done:
herr_t
H5F_efc_close(H5F_t *parent, H5F_t *file)
{
- H5F_efc_t * efc = NULL; /* External file cache for parent file */
+ H5F_efc_t *efc = NULL; /* External file cache for parent file */
H5F_efc_ent_t *ent = NULL; /* Entry for target file in efc */
herr_t ret_value = SUCCEED; /* Return value */
@@ -622,7 +622,7 @@ static void
H5F__efc_try_close_tag1(H5F_shared_t *sf, H5F_shared_t **tail)
{
H5F_efc_ent_t *ent = NULL; /* EFC entry */
- H5F_shared_t * esf; /* Convenience pointer to ent->file->shared */
+ H5F_shared_t *esf; /* Convenience pointer to ent->file->shared */
FUNC_ENTER_STATIC_NOERR
@@ -695,7 +695,7 @@ static void
H5F__efc_try_close_tag2(H5F_shared_t *sf, H5F_shared_t **tail)
{
H5F_efc_ent_t *ent = NULL; /* EFC entry */
- H5F_shared_t * esf; /* Convenience pointer to ent->file->shared */
+ H5F_shared_t *esf; /* Convenience pointer to ent->file->shared */
FUNC_ENTER_STATIC_NOERR