summaryrefslogtreecommitdiffstats
path: root/src/H5FLprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-04-20 16:36:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-04-20 16:36:38 (GMT)
commitba8fbc02dbee6abeeb8eddd3a3e47aeb5c58ae1e (patch)
treebac8e162e0874ce0e891f52c082d584bbe0da45d /src/H5FLprivate.h
parent37f774f5a9a71ba023d021dd90b53527530cd8a9 (diff)
downloadhdf5-ba8fbc02dbee6abeeb8eddd3a3e47aeb5c58ae1e.zip
hdf5-ba8fbc02dbee6abeeb8eddd3a3e47aeb5c58ae1e.tar.gz
hdf5-ba8fbc02dbee6abeeb8eddd3a3e47aeb5c58ae1e.tar.bz2
[svn-r2165] Fixed last batch of problems when using free-lists on the SGI machines. They
should (hopefully) work on all platforms again now.
Diffstat (limited to 'src/H5FLprivate.h')
-rw-r--r--src/H5FLprivate.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/H5FLprivate.h b/src/H5FLprivate.h
index d5caa32..e64ba1e 100644
--- a/src/H5FLprivate.h
+++ b/src/H5FLprivate.h
@@ -34,7 +34,10 @@ typedef struct H5FL_node_t {
#ifdef H5FL_DEBUG
uintn inuse; /* Indicate when object is in use */
#endif /* H5FL_DEBUG */
- unsigned char block; /* Actual storage for the data */
+ union {
+ double unused1; /* Unused normally, just here for aligment */
+ haddr_t unused2; /* Unused normally, just here for aligment */
+ }align; /* Bogus union, just here to align following block */
} H5FL_node_t;
/* Data structure for free list of blocks */
@@ -73,7 +76,10 @@ typedef struct H5FL_head_t {
typedef struct H5FL_blk_list_t {
size_t size; /* Size of the page */
struct H5FL_blk_list_t *next; /* Pointer to next block in free list */
- unsigned char block; /* Actual storage for the data */
+ union {
+ double unused1; /* Unused normally, just here for aligment */
+ haddr_t unused2; /* Unused normally, just here for aligment */
+ }align; /* Bogus union, just here to align following block */
} H5FL_blk_list_t;
/* Data structure for priority queue node of block free lists */
@@ -118,7 +124,10 @@ typedef struct H5FL_blk_head_t {
typedef struct H5FL_arr_node_t {
struct H5FL_arr_node_t *next; /* Pointer to next block in free list */
size_t nelem; /* Number of elements in this array */
- unsigned char arr; /* Actual storage for the array data */
+ union {
+ double unused1; /* Unused normally, just here for aligment */
+ haddr_t unused2; /* Unused normally, just here for aligment */
+ }align; /* Bogus union, just here to align following block */
} H5FL_arr_node_t;
/* Data structure for free list of array blocks */