summaryrefslogtreecommitdiffstats
path: root/src/H5Einit.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-03-15 21:25:30 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-03-15 21:25:30 (GMT)
commitf6f202dc71e0837c2bb721cb8fc8c6dd6ddded3a (patch)
tree612841344942f5f35baef5964c9405be6b7e94aa /src/H5Einit.h
parent7f44286aa57f7b67c47608022c1a48dfd71c98ad (diff)
downloadhdf5-f6f202dc71e0837c2bb721cb8fc8c6dd6ddded3a.zip
hdf5-f6f202dc71e0837c2bb721cb8fc8c6dd6ddded3a.tar.gz
hdf5-f6f202dc71e0837c2bb721cb8fc8c6dd6ddded3a.tar.bz2
[svn-r23359] I added some macros and refactoring the code to prepare for Windows support.
Tested on koala.
Diffstat (limited to 'src/H5Einit.h')
-rw-r--r--src/H5Einit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5Einit.h b/src/H5Einit.h
index edd9bf5..9724748 100644
--- a/src/H5Einit.h
+++ b/src/H5Einit.h
@@ -483,6 +483,11 @@ if((H5E_NONE_MINOR_g = H5I_register(H5I_ERROR_MSG, msg, FALSE))<0)
HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message")
/* Plugin errors */
+assert(H5E_OPENERROR_g==(-1));
+if((msg = H5E_create_msg(cls, H5E_MINOR, "Can't open directory or file"))==NULL)
+ HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, "error message initialization failed")
+if((H5E_OPENERROR_g = H5I_register(H5I_ERROR_MSG, msg, FALSE))<0)
+ HGOTO_ERROR(H5E_ERROR, H5E_CANTREGISTER, FAIL, "can't register error message")
/* File accessibilty errors */
assert(H5E_FILEEXISTS_g==(-1));