diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Edefin.h | 1 | ||||
-rw-r--r-- | src/H5Einit.h | 5 | ||||
-rw-r--r-- | src/H5Epubgen.h | 2 | ||||
-rw-r--r-- | src/H5Eterm.h | 3 | ||||
-rw-r--r-- | src/H5err.txt | 1 |
5 files changed, 11 insertions, 1 deletions
diff --git a/src/H5Edefin.h b/src/H5Edefin.h index 82a74b8..a41ec77 100644 --- a/src/H5Edefin.h +++ b/src/H5Edefin.h @@ -70,6 +70,7 @@ hid_t H5E_CANTGETSIZE_g = FAIL; /* Unable to compute size */ /* Heap errors */ hid_t H5E_CANTRESTORE_g = FAIL; /* Can't restore condition */ +hid_t H5E_CANTCOMPUTE_g = FAIL; /* Can't compute value */ /* Function entry/exit interface errors */ hid_t H5E_CANTINIT_g = FAIL; /* Unable to initialize object */ diff --git a/src/H5Einit.h b/src/H5Einit.h index b2a4563..2c216da 100644 --- a/src/H5Einit.h +++ b/src/H5Einit.h @@ -244,6 +244,11 @@ if((msg = H5E_create_msg(cls, H5E_MINOR, "Can't restore condition"))==NULL) HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed") if((H5E_CANTRESTORE_g = H5I_register(H5I_ERROR_MSG, msg))<0) HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message") +assert(H5E_CANTCOMPUTE_g==(-1)); +if((msg = H5E_create_msg(cls, H5E_MINOR, "Can't compute value"))==NULL) + HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed") +if((H5E_CANTCOMPUTE_g = H5I_register(H5I_ERROR_MSG, msg))<0) + HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message") /* Function entry/exit interface errors */ assert(H5E_CANTINIT_g==(-1)); diff --git a/src/H5Epubgen.h b/src/H5Epubgen.h index c846a67..28b2822 100644 --- a/src/H5Epubgen.h +++ b/src/H5Epubgen.h @@ -116,7 +116,9 @@ H5_DLLVAR hid_t H5E_CANTGETSIZE_g; /* Unable to compute size */ /* Heap errors */ #define H5E_CANTRESTORE (H5OPEN H5E_CANTRESTORE_g) +#define H5E_CANTCOMPUTE (H5OPEN H5E_CANTCOMPUTE_g) H5_DLLVAR hid_t H5E_CANTRESTORE_g; /* Can't restore condition */ +H5_DLLVAR hid_t H5E_CANTCOMPUTE_g; /* Can't compute value */ /* Function entry/exit interface errors */ #define H5E_CANTINIT (H5OPEN H5E_CANTINIT_g) diff --git a/src/H5Eterm.h b/src/H5Eterm.h index 66307f9..64f63c8 100644 --- a/src/H5Eterm.h +++ b/src/H5Eterm.h @@ -71,7 +71,8 @@ H5E_CANTGC_g= H5E_CANTGETSIZE_g= /* Heap errors */ -H5E_CANTRESTORE_g= +H5E_CANTRESTORE_g= +H5E_CANTCOMPUTE_g= /* Function entry/exit interface errors */ H5E_CANTINIT_g= diff --git a/src/H5err.txt b/src/H5err.txt index 88eb01c..91866d4 100644 --- a/src/H5err.txt +++ b/src/H5err.txt @@ -207,6 +207,7 @@ MINOR, MPI, H5E_MPIERRSTR, MPI Error String # Heap errors MINOR, HEAP, H5E_CANTRESTORE, Can't restore condition +MINOR, HEAP, H5E_CANTCOMPUTE, Can't compute value # FPHDF5 errors MINOR, FPH5, H5E_CANTRECV, Can't receive messages from processes |