diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-07-08 21:18:18 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-07-08 21:18:18 (GMT) |
commit | 5f554bcced24f97371c34c36bb83eea921e2a85b (patch) | |
tree | 2ce1160aad30f3732f0e9d5504e5ac1fe0768dca /src/H5TB.c | |
parent | 44d5c8823eb4370ff70bf7ed56c8eae7404d222c (diff) | |
download | hdf5-5f554bcced24f97371c34c36bb83eea921e2a85b.zip hdf5-5f554bcced24f97371c34c36bb83eea921e2a85b.tar.gz hdf5-5f554bcced24f97371c34c36bb83eea921e2a85b.tar.bz2 |
[svn-r473] Changes since 19980708
----------------------
./src/H5Fistore.c
./src/H5S.c
Fixed places where `herr_t' functions returned NULL for
failure: H5F_istore_get_addr() and printf(?!?) (probably
because a printf() was in the first column :-/ so I don't know
what function it really was that I fixed), and H5S_extent_copy().
./src/H5Fprivate.h
Added declarations for H5F_istore_get_addr() and
H5F_istore_allocate().
./src/H5S.c
./src/H5Sprivate.h
Split H5Sset_extent_simple() into H5S_set_extent_simple() and
replaced calls to the API function with calls to the internal
function.
Changed calls to H5Screate() to H5S_create() and H5Sclose() to
H5S_close().
./src/H5Shyper.c
./src/H5Spoint.c
Removed unused labels and variable.
./src/H5T.c
./src/H5Tconv.c
Changed calls to H5Tfind() to H5T_find().
./src/H5TB.c
Split function return type onto a separate line for five
functions and added API tracing calls.
Diffstat (limited to 'src/H5TB.c')
-rw-r--r-- | src/H5TB.c | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -168,13 +168,15 @@ herr_t H5TB_close(H5TB_t *tb) EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -hid_t H5TBget_buf(hsize_t size, hbool_t resize) +hid_t +H5TBget_buf (hsize_t size, hbool_t resize) { hid_t ret_value = FAIL; H5TB_t *curr=H5TB_list_head, /* pointer to current temp. buffer */ *new; /* pointer to a newly created temp. buffer */ FUNC_ENTER (H5TBget_buf, FAIL); + H5TRACE2("i","hb",size,resize); while(curr!=NULL) { if(!curr->inuse && size<curr->size) @@ -291,7 +293,8 @@ done: EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -void *H5TBbuf_ptr(hid_t tbid) +void * +H5TBbuf_ptr(hid_t tbid) { void *ret_value = NULL; H5TB_t *tbuf; /* Pointer to temporary buffer */ @@ -331,7 +334,8 @@ done: EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -herr_t H5TBresize_ptr(hid_t tbid, hsize_t size) +herr_t +H5TBresize_ptr (hid_t tbid, hsize_t size) { herr_t ret_value = FAIL; H5TB_t *tbuf, /* Pointer to temporary buffer */ @@ -339,6 +343,7 @@ herr_t H5TBresize_ptr(hid_t tbid, hsize_t size) void * old_ptr; /* Pointer to the previous buffer */ FUNC_ENTER (H5TBresize_ptr, FAIL); + H5TRACE2("e","ih",tbid,size); if (H5_TEMPBUF != H5I_group(tbid) || NULL == (tbuf = H5I_object(tbid))) { @@ -420,12 +425,14 @@ done: EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -herr_t H5TBgarbage_coll(void) +herr_t +H5TBgarbage_coll (void) { herr_t ret_value = FAIL; H5TB_t *curr,*next; /* Current temp. buffer node */ FUNC_ENTER (H5TBgarbage_coll, FAIL); + H5TRACE0("e",""); /* Step through the list, remove each unused node, repair the list and free the node */ curr=H5TB_list_head; @@ -479,12 +486,14 @@ done: EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -herr_t H5TBrelease_buf(hid_t tbid) +herr_t +H5TBrelease_buf (hid_t tbid) { herr_t ret_value = FAIL; H5TB_t *tbuf; /* Pointer to temporary buffer */ FUNC_ENTER (H5TBresize_ptr, FAIL); + H5TRACE1("e","i",tbid); if (H5_TEMPBUF != H5I_group(tbid) || NULL == (tbuf = H5I_object(tbid))) { |