diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-18 16:32:03 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-18 16:32:03 (GMT) |
commit | 79a96d6a1e2ec8fad2e98ee7fe03474b7be169b6 (patch) | |
tree | e1e9618308bb15e6bcb7ee0239c379c1516660c9 /src | |
parent | 4105dfedb98236c9e2029ff14b0694161aabfb05 (diff) | |
download | hdf5-79a96d6a1e2ec8fad2e98ee7fe03474b7be169b6.zip hdf5-79a96d6a1e2ec8fad2e98ee7fe03474b7be169b6.tar.gz hdf5-79a96d6a1e2ec8fad2e98ee7fe03474b7be169b6.tar.bz2 |
[svn-r7380] Purpose:
New error
Description:
Added H5E_CANTCLOSEOBJ error
Platforms tested:
FreeBSD 4.8 (sleipnir)
too minor to need h5committest
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 | 1 | ||||
-rw-r--r-- | src/H5err.txt | 1 |
5 files changed, 10 insertions, 0 deletions
diff --git a/src/H5Edefin.h b/src/H5Edefin.h index 4ec08af..6b2f0bb 100644 --- a/src/H5Edefin.h +++ b/src/H5Edefin.h @@ -151,6 +151,7 @@ hid_t H5E_NOTCACHED_g = FAIL; /* Metadata not currently cached */ /* Group related errors */ hid_t H5E_CANTOPENOBJ_g = FAIL; /* Can't open object */ +hid_t H5E_CANTCLOSEOBJ_g = FAIL; /* Can't close object */ hid_t H5E_COMPLEN_g = FAIL; /* Name component is too long */ hid_t H5E_CWG_g = FAIL; /* Problem with current working group */ hid_t H5E_LINK_g = FAIL; /* Link count failure */ diff --git a/src/H5Einit.h b/src/H5Einit.h index 2120ea1..a4b929a 100644 --- a/src/H5Einit.h +++ b/src/H5Einit.h @@ -553,6 +553,11 @@ if((msg = H5E_create_msg(cls, H5E_MINOR, "Can't open object"))==NULL) HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed") if((H5E_CANTOPENOBJ_g = H5I_register(H5I_ERROR_MSG, msg))<0) HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message") +assert(H5E_CANTCLOSEOBJ_g==(-1)); +if((msg = H5E_create_msg(cls, H5E_MINOR, "Can't close object"))==NULL) + HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed") +if((H5E_CANTCLOSEOBJ_g = H5I_register(H5I_ERROR_MSG, msg))<0) + HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message") assert(H5E_COMPLEN_g==(-1)); if((msg = H5E_create_msg(cls, H5E_MINOR, "Name component is too long"))==NULL) HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed") diff --git a/src/H5Epubgen.h b/src/H5Epubgen.h index 7b7ad6b..f01ce3d 100644 --- a/src/H5Epubgen.h +++ b/src/H5Epubgen.h @@ -254,11 +254,13 @@ H5_DLLVAR hid_t H5E_NOTCACHED_g; /* Metadata not currently cached */ /* Group related errors */ #define H5E_CANTOPENOBJ (H5OPEN H5E_CANTOPENOBJ_g) +#define H5E_CANTCLOSEOBJ (H5OPEN H5E_CANTCLOSEOBJ_g) #define H5E_COMPLEN (H5OPEN H5E_COMPLEN_g) #define H5E_CWG (H5OPEN H5E_CWG_g) #define H5E_LINK (H5OPEN H5E_LINK_g) #define H5E_SLINK (H5OPEN H5E_SLINK_g) H5_DLLVAR hid_t H5E_CANTOPENOBJ_g; /* Can't open object */ +H5_DLLVAR hid_t H5E_CANTCLOSEOBJ_g; /* Can't close object */ H5_DLLVAR hid_t H5E_COMPLEN_g; /* Name component is too long */ H5_DLLVAR hid_t H5E_CWG_g; /* Problem with current working group */ H5_DLLVAR hid_t H5E_LINK_g; /* Link count failure */ diff --git a/src/H5Eterm.h b/src/H5Eterm.h index 78749e1..3f77a1f 100644 --- a/src/H5Eterm.h +++ b/src/H5Eterm.h @@ -153,6 +153,7 @@ H5E_NOTCACHED_g= /* Group related errors */ H5E_CANTOPENOBJ_g= +H5E_CANTCLOSEOBJ_g= H5E_COMPLEN_g= H5E_CWG_g= H5E_LINK_g= diff --git a/src/H5err.txt b/src/H5err.txt index 58ca59f..d36a5fa 100644 --- a/src/H5err.txt +++ b/src/H5err.txt @@ -164,6 +164,7 @@ MINOR, OHDR, H5E_CANTDELETE, Can't delete message # Group related errors MINOR, GROUP, H5E_CANTOPENOBJ, Can't open object +MINOR, GROUP, H5E_CANTCLOSEOBJ, Can't close object MINOR, GROUP, H5E_COMPLEN, Name component is too long MINOR, GROUP, H5E_CWG, Problem with current working group MINOR, GROUP, H5E_LINK, Link count failure |