diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-31 20:33:19 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-31 20:33:19 (GMT) |
commit | 5279ef2f48eeccfd5d282670859d80d3fd782573 (patch) | |
tree | c3a01a0f98451ea453f15ff206f00cae44d01d3a /src/H5S.c | |
parent | 5aacf74f24c5c63ee25558b6c8be08009d7e245e (diff) | |
download | hdf5-5279ef2f48eeccfd5d282670859d80d3fd782573.zip hdf5-5279ef2f48eeccfd5d282670859d80d3fd782573.tar.gz hdf5-5279ef2f48eeccfd5d282670859d80d3fd782573.tar.bz2 |
[svn-r13825] Description:
Incremental step forward in fixing problems with fill values that have
a variable-length daattype. This set of changes fixes problems with the copying
the property list values.
tested Tn:
Mac OS X/32 10.4.9 (amazon)
Diffstat (limited to 'src/H5S.c')
-rw-r--r-- | src/H5S.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -38,7 +38,6 @@ #define H5S_ENCODE_VERSION 0 /* Local static function prototypes */ -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); @@ -300,13 +299,13 @@ H5S_term_interface(void) EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -static H5S_t * +H5S_t * H5S_create(H5S_class_t type) { H5S_t *new_ds = NULL; /* New dataspace created */ H5S_t *ret_value; /* Return value */ - FUNC_ENTER_NOAPI_NOINIT(H5S_create) + FUNC_ENTER_NOAPI(H5S_create, NULL) /* Create a new data space */ if(NULL == (new_ds = H5FL_MALLOC(H5S_t))) @@ -333,7 +332,7 @@ H5S_create(H5S_class_t type) } /* end switch */ /* Start with "all" selection */ - if(H5S_select_all(new_ds, 0) < 0) + if(H5S_select_all(new_ds, FALSE) < 0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSET, NULL, "unable to set all selection") /* Reset common selection info pointer */ @@ -1159,7 +1158,7 @@ H5S_read(const H5O_loc_t *loc, hid_t dxpl_id) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, NULL, "unable to load dataspace info from dataset header") /* Default to entire dataspace being selected */ - if(H5S_select_all(ds, 0) < 0) + if(H5S_select_all(ds, FALSE) < 0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSET, NULL, "unable to set all selection") /* Set the value for successful return */ @@ -1895,7 +1894,7 @@ H5S_decode(const unsigned char *buf) H5FL_FREE(H5S_extent_t, extent); /* Initialize to "all" selection. Deserialization relies on valid existing selection. */ - if(H5S_select_all(ds, 0) < 0) + if(H5S_select_all(ds, FALSE) < 0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSET, NULL, "unable to set all selection") /* Decode the select part of dataspace. I believe this part always exists. */ |