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:
Binh-Minh Ribler
2016-09-21 14:53:17 -05:00
parent 052efd9bde
commit 7ef33fa7b3
31 changed files with 2071 additions and 1470 deletions
+26
View File
@@ -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*,...)
*