summaryrefslogtreecommitdiffstats
path: root/src/H5FDstream.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-08-12 13:33:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-08-12 13:33:42 (GMT)
commit5112232ddf96f7b8b7dca86ce91dc05f3470c682 (patch)
tree239a5e8982540789ec643ec2292a324e296409c8 /src/H5FDstream.c
parent694e9bb380925e38a0711b803bf7dd86f219a07f (diff)
downloadhdf5-5112232ddf96f7b8b7dca86ce91dc05f3470c682.zip
hdf5-5112232ddf96f7b8b7dca86ce91dc05f3470c682.tar.gz
hdf5-5112232ddf96f7b8b7dca86ce91dc05f3470c682.tar.bz2
[svn-r5871] Purpose:
Code cleanup Description: Combined H5P_isa_class and H5I_object functionality into a new internal H5P API function: H5P_object_verify, which checks that a property list is the appropriate class and then returns the property list object associated with the property list ID. This reduces the source code by about 200 LOC and trims the library binary some more. Platforms tested: FreeBSD 4.6 (sleipnir)
Diffstat (limited to 'src/H5FDstream.c')
-rw-r--r--src/H5FDstream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FDstream.c b/src/H5FDstream.c
index 31f278d..2883d13 100644
--- a/src/H5FDstream.c
+++ b/src/H5FDstream.c
@@ -272,7 +272,7 @@ herr_t H5Pset_fapl_stream (hid_t fapl_id, H5FD_stream_fapl_t *fapl)
FUNC_ENTER_API(H5Pset_fapl_stream, FAIL);
H5TRACE2 ("e", "ix", fapl_id, fapl);
- if(TRUE!=H5P_isa_class(fapl_id,H5P_FILE_ACCESS) || NULL == (plist = H5I_object(fapl_id)))
+ if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR (H5E_PLIST, H5E_BADTYPE, FAIL, "not a fapl");
if (fapl) {
@@ -317,7 +317,7 @@ herr_t H5Pget_fapl_stream(hid_t fapl_id, H5FD_stream_fapl_t *fapl /* out */)
FUNC_ENTER_API(H5Pget_fapl_stream, FAIL);
H5TRACE2("e","ix",fapl_id,fapl);
- if(TRUE!=H5P_isa_class(fapl_id,H5P_FILE_ACCESS) || NULL == (plist = H5I_object(fapl_id)))
+ if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR (H5E_PLIST, H5E_BADTYPE, FAIL, "not a fapl");
if (H5FD_STREAM != H5P_get_driver (plist))
HGOTO_ERROR (H5E_PLIST, H5E_BADVALUE, FAIL, "incorrect VFL driver");
@@ -593,7 +593,7 @@ H5FD_stream_open (const char *filename,
fapl = NULL;
if (H5P_DEFAULT != fapl_id) {
- if(TRUE!=H5P_isa_class(fapl_id,H5P_FILE_ACCESS) || NULL == (plist = H5I_object(fapl_id)))
+ if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access property list");
fapl = H5P_get_driver_info (plist);
}