summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-08-02 14:03:40 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-08-02 14:03:40 (GMT)
commit3df2828991d984455054c4c89af78725549d5d0f (patch)
tree023b000f69879f6b8541f339ae50096fa7cfb278 /src/H5S.c
parente91a21cd3ba963ca6b97b3bfbc1b84c372b52dec (diff)
downloadhdf5-3df2828991d984455054c4c89af78725549d5d0f.zip
hdf5-3df2828991d984455054c4c89af78725549d5d0f.tar.gz
hdf5-3df2828991d984455054c4c89af78725549d5d0f.tar.bz2
[svn-r8981] Purpose:
Code cleanup Description: Various minor tweaks to clean code up and bring it into closer syncronization with the release branch. Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel h5committested IRIX64 6.5 (modi4)
Diffstat (limited to 'src/H5S.c')
-rw-r--r--src/H5S.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/H5S.c b/src/H5S.c
index c7816d8..70e8b55 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -40,6 +40,8 @@ static H5S_t * H5S_create(H5S_class_t type);
static herr_t H5S_set_extent_simple (H5S_t *space, unsigned rank,
const hsize_t *dims, const hsize_t *max);
static htri_t H5S_is_simple(const H5S_t *sdim);
+static herr_t H5S_encode(H5S_t *obj, unsigned char *buf, size_t *nalloc);
+static H5S_t *H5S_decode(const unsigned char *buf);
#ifdef H5S_DEBUG
/* Names of the selection names, for debugging */
@@ -1766,12 +1768,13 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Sencode(hid_t obj_id, unsigned char* buf, size_t* nalloc)
+H5Sencode(hid_t obj_id, void *buf, size_t *nalloc)
{
H5S_t *dspace;
herr_t ret_value=SUCCEED;
FUNC_ENTER_API (H5Sencode, FAIL);
+ H5TRACE3("e","ix*z",obj_id,buf,nalloc);
/* Check argument and retrieve object */
if (NULL==(dspace=H5I_object_verify(obj_id, H5I_DATASPACE)))
@@ -1884,12 +1887,13 @@ done:
*-------------------------------------------------------------------------
*/
hid_t
-H5Sdecode(unsigned char* buf)
+H5Sdecode(const void *buf)
{
H5S_t *ds;
hid_t ret_value;
FUNC_ENTER_API (H5Sdecode, FAIL);
+ H5TRACE1("i","x",buf);
if (buf==NULL)
HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "empty buffer")
@@ -1925,7 +1929,7 @@ done:
*-------------------------------------------------------------------------
*/
H5S_t*
-H5S_decode(unsigned char *buf)
+H5S_decode(const unsigned char *buf)
{
H5S_t *ds;
H5S_extent_t *extent;