summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-03-11 22:01:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-03-11 22:01:42 (GMT)
commit810cda019d901ccabda3b3c91f324ba965f97fef (patch)
treef709155ecaa1828dff26bb04c474fc9c80c88715 /src
parent1f41dfca050d557d66341372529214a8ca690c89 (diff)
downloadhdf5-810cda019d901ccabda3b3c91f324ba965f97fef.zip
hdf5-810cda019d901ccabda3b3c91f324ba965f97fef.tar.gz
hdf5-810cda019d901ccabda3b3c91f324ba965f97fef.tar.bz2
[svn-r12079] Purpose:
Update code Description: Add a new error value, for later use. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor for full committest
Diffstat (limited to 'src')
-rw-r--r--src/H5Edefin.h1
-rw-r--r--src/H5Einit.h5
-rw-r--r--src/H5Epubgen.h2
-rw-r--r--src/H5Eterm.h3
-rw-r--r--src/H5err.txt1
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