summaryrefslogtreecommitdiffstats
path: root/src/H5Ostab.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-12-04 02:29:06 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-12-04 02:29:06 (GMT)
commitfcd8d9b878071ea0e1d834e1e2a192cfec90586f (patch)
tree8ddb35ce78c1046839bc38e58c728397e2c5a781 /src/H5Ostab.c
parent4dd379f637a411eb1ae564dc9f993b556d9a65e3 (diff)
downloadhdf5-fcd8d9b878071ea0e1d834e1e2a192cfec90586f.zip
hdf5-fcd8d9b878071ea0e1d834e1e2a192cfec90586f.tar.gz
hdf5-fcd8d9b878071ea0e1d834e1e2a192cfec90586f.tar.bz2
[svn-r11759] Purpose:
New feature Description: Add in a combination of Peter's & my code to support copying variable-length data from one file to another, although currently only supported with contiguous data storage. Platforms tested: FreeBSD 4.11 (sleipnir) h5committest
Diffstat (limited to 'src/H5Ostab.c')
-rw-r--r--src/H5Ostab.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Ostab.c b/src/H5Ostab.c
index f6df318..7361428 100644
--- a/src/H5Ostab.c
+++ b/src/H5Ostab.c
@@ -45,8 +45,8 @@ static herr_t H5O_stab_delete(H5F_t *f, hid_t dxpl_id, const void *_mesg, hbool_
static herr_t H5O_stab_debug(H5F_t *f, hid_t dxpl_id, const void *_mesg,
FILE * stream, int indent, int fwidth);
-/* This message derives from H5O */
-const H5O_class_t H5O_STAB[1] = {{
+/* This message derives from H5O message class */
+const H5O_msg_class_t H5O_MSG_STAB[1] = {{
H5O_STAB_ID, /*message id number */
"stab", /*message name for debugging */
sizeof(H5O_stab_t), /*native message size */
@@ -171,21 +171,21 @@ H5O_stab_encode(H5F_t *f, uint8_t *p, const void *_mesg)
*-------------------------------------------------------------------------
*/
void *
-H5O_stab_fast(const H5G_cache_t *cache, const H5O_class_t *type, void *_mesg)
+H5O_stab_fast(const H5G_cache_t *cache, const H5O_msg_class_t *type, void *_mesg)
{
H5O_stab_t *ret_value; /* Return value */
- FUNC_ENTER_NOAPI_NOINIT(H5O_stab_fast);
+ FUNC_ENTER_NOAPI_NOINIT(H5O_stab_fast)
/* check args */
assert(cache);
assert(type);
- if (H5O_STAB == type) {
+ if (H5O_MSG_STAB == type) {
if (_mesg) {
ret_value = (H5O_stab_t *) _mesg;
} else if (NULL==(ret_value = H5FL_MALLOC(H5O_stab_t))) {
- HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
+ HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
}
ret_value->btree_addr = cache->stab.btree_addr;
ret_value->heap_addr = cache->stab.heap_addr;
@@ -194,7 +194,7 @@ H5O_stab_fast(const H5G_cache_t *cache, const H5O_class_t *type, void *_mesg)
ret_value=NULL;
done:
- FUNC_LEAVE_NOAPI(ret_value);
+ FUNC_LEAVE_NOAPI(ret_value)
}