summaryrefslogtreecommitdiffstats
path: root/c++/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2006-05-12 18:29:49 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2006-05-12 18:29:49 (GMT)
commitcbe0bc01f0b36901ae5b7b0abb5ae1f65a9fef02 (patch)
treec5a846dc79344aca513399c416b137ab8b1370f4 /c++/src
parentdb31594e6824688b03963fa092761b02d9179296 (diff)
downloadhdf5-cbe0bc01f0b36901ae5b7b0abb5ae1f65a9fef02.zip
hdf5-cbe0bc01f0b36901ae5b7b0abb5ae1f65a9fef02.tar.gz
hdf5-cbe0bc01f0b36901ae5b7b0abb5ae1f65a9fef02.tar.bz2
[svn-r12345] Purpose: Codes for backward compatibility.
Description: Function prototype H5E_walk_t and structure H5E_error_t wasn't backward compatible. Solution: Make them compatible with v1.6 and provide new definitions of H5E_walk_stack_t and H5E_error_stack_t. Platforms tested: fuss and h5committest.
Diffstat (limited to 'c++/src')
-rw-r--r--c++/src/H5Exception.cpp6
-rw-r--r--c++/src/H5Exception.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp
index c52e974..3ac47b6 100644
--- a/c++/src/H5Exception.cpp
+++ b/c++/src/H5Exception.cpp
@@ -227,7 +227,7 @@ void Exception::clearErrorStack()
///\par
/// Data structure to describe the error:
///\code
-/// typedef struct H5E_error_t {
+/// typedef struct H5E_error_stack_t {
/// hid_t cls_id; //class ID
/// hid_t maj_num; //major error ID
/// hid_t min_num; //minor error number
@@ -235,11 +235,11 @@ void Exception::clearErrorStack()
/// const char *file_name; //file in which error occurred
/// unsigned line; //line in file where error occurs
/// const char *desc; //optional supplied description
-/// } H5E_error_t;
+/// } H5E_error_stack_t;
///\endcode
// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
-void Exception::walkErrorStack( H5E_direction_t direction, H5E_walk_t func, void* client_data )
+void Exception::walkErrorStack( H5E_direction_t direction, H5E_walk_stack_t func, void* client_data )
{
// calls the C API routine H5Ewalk to walk the error stack
herr_t ret_value = H5Ewalk_stack( H5E_DEFAULT, direction, func, client_data );
diff --git a/c++/src/H5Exception.h b/c++/src/H5Exception.h
index 8ea3da0..66219c7 100644
--- a/c++/src/H5Exception.h
+++ b/c++/src/H5Exception.h
@@ -63,7 +63,7 @@ class H5_DLLCPP Exception {
// Walks the error stack for the current thread, calling the
// specified function.
static void walkErrorStack( H5E_direction_t direction,
- H5E_walk_t func, void* client_data);
+ H5E_walk_stack_t func, void* client_data);
// Prints the error stack in a default manner.
virtual void printError( FILE* stream = NULL ) const;