summaryrefslogtreecommitdiffstats
path: root/src/H5Einit.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-09-04 21:06:48 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-09-04 21:06:48 (GMT)
commit922e8a4a8b84f4a04548ac2928e37d67c23c81cb (patch)
tree59f636a2755524a0d3e9a827df90d0699d5918ca /src/H5Einit.h
parent45b23cfce11d5267849f0a58216cab581012b8a7 (diff)
downloadhdf5-922e8a4a8b84f4a04548ac2928e37d67c23c81cb.zip
hdf5-922e8a4a8b84f4a04548ac2928e37d67c23c81cb.tar.gz
hdf5-922e8a4a8b84f4a04548ac2928e37d67c23c81cb.tar.bz2
[svn-r9208] Purpose: Bug fix
Description: A few items were left out when tried to restore the old Error API. There are also a few minor bug fixes. Platforms tested: arabica fuss h5committest.
Diffstat (limited to 'src/H5Einit.h')
-rw-r--r--src/H5Einit.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/H5Einit.h b/src/H5Einit.h
index 0e43071..962e1ff 100644
--- a/src/H5Einit.h
+++ b/src/H5Einit.h
@@ -22,7 +22,11 @@
/*********************/
/* Major error codes */
/*********************/
-
+assert(H5E_NONE_MAJOR_g==(-1));
+if((msg = H5E_create_msg(cls, H5E_MAJOR, "No Error"))==NULL)
+ HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed")
+if((H5E_NONE_MAJOR_g = H5I_register(H5I_ERROR_MSG, msg))<0)
+ HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message")
assert(H5E_DATASET_g==(-1));
if((msg = H5E_create_msg(cls, H5E_MAJOR, "Dataset"))==NULL)
HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed")
@@ -162,7 +166,12 @@ if((H5E_CACHE_g = H5I_register(H5I_ERROR_MSG, msg))<0)
/*********************/
/* Minor error codes */
/*********************/
-
+/* No error */
+assert(H5E_NONE_MINOR_g==(-1));
+if((msg = H5E_create_msg(cls, H5E_MINOR, "Read failed"))==NULL)
+ HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed")
+if((H5E_NONE_MINOR_g = H5I_register(H5I_ERROR_MSG, msg))<0)
+ HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message")
/* Generic low-level file I/O errors */
assert(H5E_SEEKERROR_g==(-1));