mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r7308] Purpose:
Code cleanup Description: Made automatic error printing routine, h5_errors(), static. Passed along error stack in h5_errors() Platforms tested: h5committested
This commit is contained in:
parent
8daa13f3cd
commit
92f5e443f8
@ -89,6 +89,8 @@ MPI_Info h5_io_info_g=MPI_INFO_NULL;/* MPI INFO object for IO */
|
||||
*/
|
||||
static const char *multi_letters = "msbrglo";
|
||||
|
||||
static herr_t h5_errors(hid_t err_stack, void *client_data);
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: h5_errors
|
||||
@ -106,11 +108,11 @@ static const char *multi_letters = "msbrglo";
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
herr_t
|
||||
h5_errors(void UNUSED *client_data)
|
||||
static herr_t
|
||||
h5_errors(hid_t err_stack, void UNUSED *client_data)
|
||||
{
|
||||
H5_FAILED();
|
||||
H5Eprint (H5E_DEFAULT, stdout);
|
||||
H5Eprint (err_stack, stdout);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
H5TEST_DLL int h5_cleanup(const char *base_name[], hid_t fapl);
|
||||
H5TEST_DLL herr_t h5_errors(void *client_data);
|
||||
H5TEST_DLL char *h5_fixname(const char *base_name, hid_t fapl, char *fullname,
|
||||
size_t size);
|
||||
H5TEST_DLL hid_t h5_fileaccess(void);
|
||||
|
Loading…
Reference in New Issue
Block a user