summaryrefslogtreecommitdiffstats
path: root/src/H5Oint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Oint.c')
-rw-r--r--src/H5Oint.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/H5Oint.c b/src/H5Oint.c
index f24d0bb..ee79b0c 100644
--- a/src/H5Oint.c
+++ b/src/H5Oint.c
@@ -82,9 +82,6 @@ static herr_t H5O__reset_info2(H5O_info2_t *oinfo);
/* Package Variables */
/*********************/
-/* Package initialization variable */
-hbool_t H5_PKG_INIT_VAR = FALSE;
-
/* Header message ID to class mapping
*
* Remember to increment H5O_MSG_TYPES in H5Opkg.h when adding a new
@@ -178,21 +175,20 @@ static const H5O_obj_class_t *const H5O_obj_class_g[] = {
};
/*-------------------------------------------------------------------------
- * Function: H5O__init_package
- *
- * Purpose: Initialize information specific to H5O interface.
- *
- * Return: Non-negative on success/Negative on failure
+ * Function: H5O_init
*
- * Programmer: Quincey Koziol
- * Thursday, January 18, 2007
+ * Purpose: Initialize the interface from some other layer.
*
+ * Return: Success: non-negative
+ * Failure: negative
*-------------------------------------------------------------------------
*/
herr_t
-H5O__init_package(void)
+H5O_init(void)
{
- FUNC_ENTER_PACKAGE_NOERR
+ herr_t ret_value = SUCCEED; /* Return value */
+
+ FUNC_ENTER_NOAPI_NOERR
/* H5O interface sanity checks */
HDcompile_assert(H5O_MSG_TYPES == NELMTS(H5O_msg_class_g));
@@ -200,8 +196,8 @@ H5O__init_package(void)
HDcompile_assert(H5O_UNKNOWN_ID < H5O_MSG_TYPES);
- FUNC_LEAVE_NOAPI(SUCCEED)
-} /* end H5O__init_package() */
+ FUNC_LEAVE_NOAPI(ret_value)
+}
/*-------------------------------------------------------------------------
* Function: H5O__set_version
@@ -567,7 +563,7 @@ H5O_open(H5O_loc_t *loc)
{
herr_t ret_value = SUCCEED; /* Return value */
- FUNC_ENTER_NOAPI(FAIL)
+ FUNC_ENTER_NOAPI_NOERR
/* Check args */
HDassert(loc);
@@ -584,7 +580,6 @@ H5O_open(H5O_loc_t *loc)
else
H5F_INCR_NOPEN_OBJS(loc->file);
-done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5O_open() */