diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2003-07-25 13:52:46 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2003-07-25 13:52:46 (GMT) |
commit | 4cc883a96035714268d25ef5bb6d4df86ad25f2c (patch) | |
tree | fbf400093d2a8a82f8532a5720ade915128351e4 /src | |
parent | 23f22483b5de0e4c1042a72d45d94abfe3d95da8 (diff) | |
download | hdf5-4cc883a96035714268d25ef5bb6d4df86ad25f2c.zip hdf5-4cc883a96035714268d25ef5bb6d4df86ad25f2c.tar.gz hdf5-4cc883a96035714268d25ef5bb6d4df86ad25f2c.tar.bz2 |
[svn-r7263] Purpose: bug fix for C++ caused by new error api
Description: one variable was left out from checkin yesterday
Platforms tested: RH 8 with C++
Diffstat (limited to 'src')
-rw-r--r-- | src/H5E.c | 2 | ||||
-rw-r--r-- | src/H5Eprivate.h | 23 |
2 files changed, 1 insertions, 24 deletions
@@ -341,7 +341,7 @@ hid_t H5E_ERR_CLS_g = FAIL; #endif /* NEW_ERR */ -#ifdef NEW_ERR +#ifndef NEW_ERR #ifdef H5_HAVE_THREADSAFE /* * The per-thread error stack. pthread_once() initializes a special diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h index f9b98b5..7582364 100644 --- a/src/H5Eprivate.h +++ b/src/H5Eprivate.h @@ -208,29 +208,6 @@ typedef struct H5E_t_new { #define H5E_MIN_SETLOCAL_MSG_new "Error from filter \"set local\" callback" #endif /* NEW_ERR */ -#ifndef NEW_ERR -#ifdef H5_HAVE_THREADSAFE -/* - * The per-thread error stack. pthread_once() initializes a special - * key that will be used by all threads to create a stack specific to - * each thread individually. The association of stacks to threads will - * be handled by the pthread library. - * - * In order for this macro to work, H5E_get_my_stack() must be preceeded - * by "H5E_t *estack =". - */ -#define H5E_get_my_stack_new() H5E_get_stack_new() -#else /* H5_HAVE_THREADSAFE */ -/* - * The current error stack. Eventually we'll have some sort of global table - * so each thread has it's own stack. The stacks will be created on demand - * when the thread first calls H5E_push(). */ -H5E_t_new H5E_stack_g_new[1]; -#define H5E_get_my_stack_new() (H5E_stack_g_new+0) -#endif /* H5_HAVE_THREADSAFE */ -#endif /* NEW_ERR */ - - /* * HERROR macro, used to facilitate error reporting between a FUNC_ENTER() * and a FUNC_LEAVE() within a function body. The arguments are the major |