mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Purpose: Fix bug HDFFR-9920 cont.
Description:
Adding user's test revealed a flaw in the fix.
Moved CommonFG's functions in Group to H5Location, so that they
could be called by objects that can be used to specify a location
Also, rearranged many "#include" header files to resolve conflicts.
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
This commit is contained in:
@@ -163,6 +163,32 @@ int check_values (hsize_t i, hsize_t j, int apoint, int acheck)
|
||||
return 0;
|
||||
} // check_values
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: check_values
|
||||
*
|
||||
* Purpose: Checks a char string pointer for NULL. If it is NULL,
|
||||
* the function will print out a message
|
||||
*
|
||||
* Return: Success: 0
|
||||
*
|
||||
* Failure: -1
|
||||
*
|
||||
* Programmer: Binh-Minh Ribler (using C code segment for checking values)
|
||||
* Friday, September 16, 2016
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
void check_values(const char *value, const char* msg, int line, const char* file_name)
|
||||
{
|
||||
if (value == NULL)
|
||||
{
|
||||
cerr << endl;
|
||||
cerr << "*** ERROR: " << msg << ", at line " << line << endl;
|
||||
IncTestNumErrs();
|
||||
throw TestFailedException(file_name, msg);
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: verify_val (const char*, const char*,...)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user