diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2021-03-25 00:39:37 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2021-03-25 00:39:37 (GMT) |
commit | feb20aac304b39e18c70f88cae2f7cf7d5c82db2 (patch) | |
tree | e15d7e751af4e3c42e77ea955d91db4cf27a71cf /test/vfd_swmr_common.h | |
parent | bdac2ecdbff2c389a222b3d93ff1eb1d23ec6b23 (diff) | |
download | hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.zip hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.gz hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.bz2 |
Formats the source and updates the gcc warning pragmas
Diffstat (limited to 'test/vfd_swmr_common.h')
-rw-r--r-- | test/vfd_swmr_common.h | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/test/vfd_swmr_common.h b/test/vfd_swmr_common.h index c764df8..83472dc 100644 --- a/test/vfd_swmr_common.h +++ b/test/vfd_swmr_common.h @@ -27,9 +27,9 @@ /* The maximum # of records to add/remove from the dataset in one step, * used by vfd_swmr_addrem_writer and vfd_swmr_remove_reader. */ -#define MAX_SIZE_CHANGE 10 +#define MAX_SIZE_CHANGE 10 -#define VFD_SWMR_FILENAME "vfd_swmr_data.h5" /* SWMR test file name */ +#define VFD_SWMR_FILENAME "vfd_swmr_data.h5" /* SWMR test file name */ /* The message sent by writer that the file open is done--releasing the file lock */ #define VFD_SWMR_WRITER_MESSAGE "VFD_SWMR_WRITER_MESSAGE" @@ -40,14 +40,10 @@ typedef struct _estack_state { H5E_auto_t efunc; - void *edata; + void * edata; } estack_state_t; -typedef enum _testsel { - TEST_NONE = 0, - TEST_NULL, - TEST_OOB -} testsel_t; +typedef enum _testsel { TEST_NONE = 0, TEST_NULL, TEST_OOB } testsel_t; /********************/ /* Global Variables */ @@ -66,7 +62,7 @@ H5TEST_DLL hbool_t below_speed_limit(struct timespec *, const struct timespec *) H5TEST_DLL estack_state_t estack_get_state(void); H5TEST_DLL estack_state_t disable_estack(void); -H5TEST_DLL void restore_estack(estack_state_t); +H5TEST_DLL void restore_estack(estack_state_t); #ifndef H5_HAVE_WIN32_API H5TEST_DLL void block_signals(sigset_t *); @@ -74,19 +70,16 @@ H5TEST_DLL void restore_signals(sigset_t *); H5TEST_DLL void await_signal(hid_t); #endif /* H5_HAVE_WIN32_API */ -H5TEST_DLL hid_t -vfd_swmr_create_fapl(bool use_latest_format, bool use_vfd_swmr, bool only_meta_pages, - H5F_vfd_swmr_config_t *config); +H5TEST_DLL hid_t vfd_swmr_create_fapl(bool use_latest_format, bool use_vfd_swmr, bool only_meta_pages, + H5F_vfd_swmr_config_t *config); -H5TEST_DLL void -init_vfd_swmr_config(H5F_vfd_swmr_config_t *config, uint32_t tick_len, uint32_t max_lag, hbool_t writer, - hbool_t flush_raw_data, uint32_t md_pages_reserved, const char *md_file_fmtstr, ...) - H5_ATTR_FORMAT(printf, 7, 8); +H5TEST_DLL void init_vfd_swmr_config(H5F_vfd_swmr_config_t *config, uint32_t tick_len, uint32_t max_lag, + hbool_t writer, hbool_t flush_raw_data, uint32_t md_pages_reserved, + const char *md_file_fmtstr, ...) H5_ATTR_FORMAT(printf, 7, 8); H5TEST_DLL void dbgf(int, const char *, ...) H5_ATTR_FORMAT(printf, 2, 3); H5TEST_DLL void evsnprintf(char *, size_t, const char *, va_list); -H5TEST_DLL void esnprintf(char *, size_t, const char *, ...) - H5_ATTR_FORMAT(printf, 3, 4); +H5TEST_DLL void esnprintf(char *, size_t, const char *, ...) H5_ATTR_FORMAT(printf, 3, 4); H5TEST_DLL int fetch_env_ulong(const char *, unsigned long, unsigned long *); |