diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-12-13 03:19:43 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-12-13 03:19:43 (GMT) |
commit | d694a6897c3304decbe520692207df11bbdfe39e (patch) | |
tree | 9eda87dc1f79fa1122a91cf3d15ae913b7b0da08 /src/H5Adense.c | |
parent | bcc000dd8a37ab792ba2fc3b9b45ff83c94edfa1 (diff) | |
download | hdf5-d694a6897c3304decbe520692207df11bbdfe39e.zip hdf5-d694a6897c3304decbe520692207df11bbdfe39e.tar.gz hdf5-d694a6897c3304decbe520692207df11bbdfe39e.tar.bz2 |
[svn-r13058] Description:
Clean up some shared message operations and other minor tweaks, in the
process of trying to solve the messy way that shared object header messages
are implemented in general (not James' work - which is fine :-)
Tested on:
Mac OS X/32 10.4.8 (amazon)
FreeBSD/32 4.11 (sleipnir)
AIX/32 5.? (copper)
Diffstat (limited to 'src/H5Adense.c')
-rw-r--r-- | src/H5Adense.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Adense.c b/src/H5Adense.c index e2a3d76..3258019 100644 --- a/src/H5Adense.c +++ b/src/H5Adense.c @@ -66,8 +66,8 @@ #define H5A_CORDER_BT2_MERGE_PERC 40 #define H5A_CORDER_BT2_SPLIT_PERC 100 -/* Size of stack buffer for serialized messages */ -#define H5A_MESG_BUF_SIZE 128 +/* Size of stack buffer for serialized attributes */ +#define H5A_ATTR_BUF_SIZE 128 /******************/ @@ -620,7 +620,7 @@ H5A_dense_insert(H5F_t *f, hid_t dxpl_id, const H5O_t *oh, unsigned mesg_flags, H5HF_t *shared_fheap = NULL; /* Fractal heap handle for shared header messages */ uint8_t id[H5A_DENSE_FHEAP_ID_LEN]; /* Heap ID of attribute to insert */ H5O_shared_t sh_mesg; /* Shared object header message */ - uint8_t attr_buf[H5A_MESG_BUF_SIZE]; /* Buffer for serializing message */ + uint8_t attr_buf[H5A_ATTR_BUF_SIZE]; /* Buffer for serializing message */ void *attr_ptr = NULL; /* Pointer to serialized message */ htri_t attr_sharable; /* Flag indicating attributes are sharable */ herr_t ret_value = SUCCEED; /* Return value */ @@ -812,7 +812,7 @@ H5A_dense_write(H5F_t *f, hid_t dxpl_id, const H5O_t *oh, const H5A_t *attr) H5HF_t *shared_fheap = NULL; /* Fractal heap handle for shared header messages */ H5HF_t *fheap = NULL; /* Fractal heap handle */ size_t attr_size; /* Size of serialized attribute in the heap */ - uint8_t attr_buf[H5A_MESG_BUF_SIZE]; /* Buffer for serializing attribute */ + uint8_t attr_buf[H5A_ATTR_BUF_SIZE]; /* Buffer for serializing attribute */ void *attr_ptr = NULL; /* Pointer to serialized attribute */ htri_t attr_sharable; /* Flag indicating attributes are sharable */ herr_t ret_value = SUCCEED; /* Return value */ |