summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative_token.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5VLnative_token.c')
-rw-r--r--src/H5VLnative_token.c34
1 files changed, 11 insertions, 23 deletions
diff --git a/src/H5VLnative_token.c b/src/H5VLnative_token.c
index 2b5429e..f077ca4 100644
--- a/src/H5VLnative_token.c
+++ b/src/H5VLnative_token.c
@@ -26,33 +26,26 @@
/* Local Macros */
/****************/
-
/******************/
/* Local Typedefs */
/******************/
-
/********************/
/* Local Prototypes */
/********************/
-
/*********************/
/* Package Variables */
/*********************/
-
/*****************************/
/* Library Private Variables */
/*****************************/
-
/*******************/
/* Local Variables */
/*******************/
-
-
/*---------------------------------------------------------------------------
* Function: H5VL__native_token_cmp
*
@@ -65,8 +58,8 @@
*---------------------------------------------------------------------------
*/
herr_t
-H5VL__native_token_cmp(void H5_ATTR_UNUSED *obj,
- const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value)
+H5VL__native_token_cmp(void H5_ATTR_UNUSED *obj, const H5O_token_t *token1, const H5O_token_t *token2,
+ int *cmp_value)
{
herr_t ret_value = SUCCEED;
@@ -81,7 +74,6 @@ H5VL__native_token_cmp(void H5_ATTR_UNUSED *obj,
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5VL__native_token_cmp() */
-
/*---------------------------------------------------------------------------
* Function: H5VL__native_token_to_str
*
@@ -93,12 +85,11 @@ H5VL__native_token_cmp(void H5_ATTR_UNUSED *obj,
*---------------------------------------------------------------------------
*/
herr_t
-H5VL__native_token_to_str(void *obj, H5I_type_t obj_type, const H5O_token_t *token,
- char **token_str)
+H5VL__native_token_to_str(void *obj, H5I_type_t obj_type, const H5O_token_t *token, char **token_str)
{
haddr_t addr;
- size_t addr_ndigits;
- herr_t ret_value = SUCCEED;
+ size_t addr_ndigits;
+ herr_t ret_value = SUCCEED;
FUNC_ENTER_PACKAGE
@@ -106,15 +97,15 @@ H5VL__native_token_to_str(void *obj, H5I_type_t obj_type, const H5O_token_t *tok
HDassert(obj);
HDassert(token);
- if(H5VL_native_token_to_addr(obj, obj_type, *token, &addr) < 0)
+ if (H5VL_native_token_to_addr(obj, obj_type, *token, &addr) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTDECODE, FAIL, "can't convert object token to address")
- if(addr == 0)
+ if (addr == 0)
addr_ndigits = 1;
else
addr_ndigits = (size_t)(HDfloor(HDlog10((double)addr)) + 1);
- if(NULL == (*token_str = H5MM_malloc(addr_ndigits + 1)))
+ if (NULL == (*token_str = H5MM_malloc(addr_ndigits + 1)))
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTALLOC, FAIL, "can't allocate buffer for token string")
HDsnprintf(*token_str, addr_ndigits + 1, H5_PRINTF_HADDR_FMT, addr);
@@ -123,7 +114,6 @@ done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5VL__native_token_to_str() */
-
/*---------------------------------------------------------------------------
* Function: H5VL__native_str_to_token
*
@@ -135,11 +125,10 @@ done:
*---------------------------------------------------------------------------
*/
herr_t
-H5VL__native_str_to_token(void *obj, H5I_type_t obj_type,
- const char *token_str, H5O_token_t *token)
+H5VL__native_str_to_token(void *obj, H5I_type_t obj_type, const char *token_str, H5O_token_t *token)
{
haddr_t addr;
- herr_t ret_value = SUCCEED;
+ herr_t ret_value = SUCCEED;
FUNC_ENTER_PACKAGE
@@ -148,10 +137,9 @@ H5VL__native_str_to_token(void *obj, H5I_type_t obj_type,
HDsscanf(token_str, H5_PRINTF_HADDR_FMT, &addr);
- if(H5VL_native_addr_to_token(obj, obj_type, addr, token) < 0)
+ if (H5VL_native_addr_to_token(obj, obj_type, addr, token) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTDECODE, FAIL, "can't convert address to object token")
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5VL__native_str_to_token() */
-