diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2002-09-20 20:36:09 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2002-09-20 20:36:09 (GMT) |
commit | e5b28ef37b6cb97211e37f0900a97b14c97daf57 (patch) | |
tree | 123dce5773a6041fd75d9572a553a044219b01a3 /src/H5Ppublic.h | |
parent | 2aca3b77d63aa78d16262e23d929f2c13570a2d5 (diff) | |
download | hdf5-e5b28ef37b6cb97211e37f0900a97b14c97daf57.zip hdf5-e5b28ef37b6cb97211e37f0900a97b14c97daf57.tar.gz hdf5-e5b28ef37b6cb97211e37f0900a97b14c97daf57.tar.bz2 |
[svn-r5931]
Purpose:
__DLL__ is a keyword in some platforms and __DLL__ is also defined as a macro for windows DLL applications.
That causes problems.
Description:
Solution:
Use H5_DLL*** to replace __DLL***__ at all header files.
Change the macro defination at H5api_adpt.h.
Platforms tested:
linux2.2.18smp, irix64, solaris 2.7 and windows 2000
Diffstat (limited to 'src/H5Ppublic.h')
-rw-r--r-- | src/H5Ppublic.h | 194 |
1 files changed, 97 insertions, 97 deletions
diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h index 9692ae4..f09356d 100644 --- a/src/H5Ppublic.h +++ b/src/H5Ppublic.h @@ -85,12 +85,12 @@ extern "C" { #define H5P_DATASET_XFER_HASH_SIZE 17 #define H5P_MOUNT (H5open(), H5P_CLS_MOUNT_g) #define H5P_MOUNT_HASH_SIZE 17 -__DLLVAR__ hid_t H5P_CLS_NO_CLASS_g; -__DLLVAR__ hid_t H5P_CLS_FILE_CREATE_g; -__DLLVAR__ hid_t H5P_CLS_FILE_ACCESS_g; -__DLLVAR__ hid_t H5P_CLS_DATASET_CREATE_g; -__DLLVAR__ hid_t H5P_CLS_DATASET_XFER_g; -__DLLVAR__ hid_t H5P_CLS_MOUNT_g; +H5_DLLVAR hid_t H5P_CLS_NO_CLASS_g; +H5_DLLVAR hid_t H5P_CLS_FILE_CREATE_g; +H5_DLLVAR hid_t H5P_CLS_FILE_ACCESS_g; +H5_DLLVAR hid_t H5P_CLS_DATASET_CREATE_g; +H5_DLLVAR hid_t H5P_CLS_DATASET_XFER_g; +H5_DLLVAR hid_t H5P_CLS_MOUNT_g; /* * The library created default property lists @@ -101,169 +101,169 @@ __DLLVAR__ hid_t H5P_CLS_MOUNT_g; #define H5P_DATASET_CREATE_DEFAULT (H5open(), H5P_LST_DATASET_CREATE_g) #define H5P_DATASET_XFER_DEFAULT (H5open(), H5P_LST_DATASET_XFER_g) #define H5P_MOUNT_DEFAULT (H5open(), H5P_LST_MOUNT_g) -__DLLVAR__ hid_t H5P_LST_NO_CLASS_g; -__DLLVAR__ hid_t H5P_LST_FILE_CREATE_g; -__DLLVAR__ hid_t H5P_LST_FILE_ACCESS_g; -__DLLVAR__ hid_t H5P_LST_DATASET_CREATE_g; -__DLLVAR__ hid_t H5P_LST_DATASET_XFER_g; -__DLLVAR__ hid_t H5P_LST_MOUNT_g; +H5_DLLVAR hid_t H5P_LST_NO_CLASS_g; +H5_DLLVAR hid_t H5P_LST_FILE_CREATE_g; +H5_DLLVAR hid_t H5P_LST_FILE_ACCESS_g; +H5_DLLVAR hid_t H5P_LST_DATASET_CREATE_g; +H5_DLLVAR hid_t H5P_LST_DATASET_XFER_g; +H5_DLLVAR hid_t H5P_LST_MOUNT_g; /* Public functions */ -__DLL__ hid_t H5Pcreate_class(hid_t parent, const char *name, unsigned hashsize, +H5_DLL hid_t H5Pcreate_class(hid_t parent, const char *name, unsigned hashsize, H5P_cls_create_func_t cls_create, void *create_data, H5P_cls_copy_func_t cls_copy, void *copy_data, H5P_cls_close_func_t cls_close, void *close_data); -__DLL__ char *H5Pget_class_name(hid_t pclass_id); -__DLL__ hid_t H5Pcreate(hid_t cls_id); -__DLL__ herr_t H5Pregister(hid_t cls_id, const char *name, size_t size, +H5_DLL char *H5Pget_class_name(hid_t pclass_id); +H5_DLL hid_t H5Pcreate(hid_t cls_id); +H5_DLL herr_t H5Pregister(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_del, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close); -__DLL__ herr_t H5Pinsert(hid_t plist_id, const char *name, size_t size, +H5_DLL herr_t H5Pinsert(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy, H5P_prp_close_func_t prp_close); -__DLL__ herr_t H5Pset(hid_t plist_id, const char *name, void *value); -__DLL__ htri_t H5Pexist(hid_t plist_id, const char *name); -__DLL__ herr_t H5Pget_size(hid_t id, const char *name, size_t *size); -__DLL__ herr_t H5Pget_nprops(hid_t id, size_t *nprops); -__DLL__ hid_t H5Pget_class(hid_t plist_id); -__DLL__ hid_t H5Pget_class_parent(hid_t pclass_id); -__DLL__ herr_t H5Pget(hid_t plist_id, const char *name, void * value); -__DLL__ htri_t H5Pequal(hid_t id1, hid_t id2); -__DLL__ htri_t H5Pisa_class(hid_t plist_id, hid_t pclass_id); -__DLL__ int H5Piterate(hid_t id, int *idx, H5P_iterate_t iter_func, +H5_DLL herr_t H5Pset(hid_t plist_id, const char *name, void *value); +H5_DLL htri_t H5Pexist(hid_t plist_id, const char *name); +H5_DLL herr_t H5Pget_size(hid_t id, const char *name, size_t *size); +H5_DLL herr_t H5Pget_nprops(hid_t id, size_t *nprops); +H5_DLL hid_t H5Pget_class(hid_t plist_id); +H5_DLL hid_t H5Pget_class_parent(hid_t pclass_id); +H5_DLL herr_t H5Pget(hid_t plist_id, const char *name, void * value); +H5_DLL htri_t H5Pequal(hid_t id1, hid_t id2); +H5_DLL htri_t H5Pisa_class(hid_t plist_id, hid_t pclass_id); +H5_DLL int H5Piterate(hid_t id, int *idx, H5P_iterate_t iter_func, void *iter_data); -__DLL__ herr_t H5Pcopy_prop(hid_t dst_id, hid_t src_id, const char *name); -__DLL__ herr_t H5Premove(hid_t plist_id, const char *name); -__DLL__ herr_t H5Punregister(hid_t pclass_id, const char *name); -__DLL__ herr_t H5Pclose_class(hid_t plist_id); -__DLL__ herr_t H5Pclose(hid_t plist_id); -__DLL__ hid_t H5Pcopy(hid_t plist_id); -__DLL__ herr_t H5Pget_version(hid_t plist_id, int *boot/*out*/, +H5_DLL herr_t H5Pcopy_prop(hid_t dst_id, hid_t src_id, const char *name); +H5_DLL herr_t H5Premove(hid_t plist_id, const char *name); +H5_DLL herr_t H5Punregister(hid_t pclass_id, const char *name); +H5_DLL herr_t H5Pclose_class(hid_t plist_id); +H5_DLL herr_t H5Pclose(hid_t plist_id); +H5_DLL hid_t H5Pcopy(hid_t plist_id); +H5_DLL herr_t H5Pget_version(hid_t plist_id, int *boot/*out*/, int *freelist/*out*/, int *stab/*out*/, int *shhdr/*out*/); -__DLL__ herr_t H5Pset_userblock(hid_t plist_id, hsize_t size); -__DLL__ herr_t H5Pget_userblock(hid_t plist_id, hsize_t *size); -__DLL__ herr_t H5Pset_alignment(hid_t fapl_id, hsize_t threshold, +H5_DLL herr_t H5Pset_userblock(hid_t plist_id, hsize_t size); +H5_DLL herr_t H5Pget_userblock(hid_t plist_id, hsize_t *size); +H5_DLL herr_t H5Pset_alignment(hid_t fapl_id, hsize_t threshold, hsize_t alignment); -__DLL__ herr_t H5Pget_alignment(hid_t fapl_id, hsize_t *threshold/*out*/, +H5_DLL herr_t H5Pget_alignment(hid_t fapl_id, hsize_t *threshold/*out*/, hsize_t *alignment/*out*/); -__DLL__ herr_t H5Pset_sizes(hid_t plist_id, size_t sizeof_addr, +H5_DLL herr_t H5Pset_sizes(hid_t plist_id, size_t sizeof_addr, size_t sizeof_size); -__DLL__ herr_t H5Pget_sizes(hid_t plist_id, size_t *sizeof_addr/*out*/, +H5_DLL herr_t H5Pget_sizes(hid_t plist_id, size_t *sizeof_addr/*out*/, size_t *sizeof_size/*out*/); #ifdef H5_WANT_H5_V1_4_COMPAT -__DLL__ herr_t H5Pset_sym_k(hid_t plist_id, int ik, int lk); -__DLL__ herr_t H5Pget_sym_k(hid_t plist_id, int *ik/*out*/, int *lk/*out*/); +H5_DLL herr_t H5Pset_sym_k(hid_t plist_id, int ik, int lk); +H5_DLL herr_t H5Pget_sym_k(hid_t plist_id, int *ik/*out*/, int *lk/*out*/); #else /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_sym_k(hid_t plist_id, int ik, unsigned lk); -__DLL__ herr_t H5Pget_sym_k(hid_t plist_id, int *ik/*out*/, unsigned *lk/*out*/); +H5_DLL herr_t H5Pset_sym_k(hid_t plist_id, int ik, unsigned lk); +H5_DLL herr_t H5Pget_sym_k(hid_t plist_id, int *ik/*out*/, unsigned *lk/*out*/); #endif /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_istore_k(hid_t plist_id, int ik); -__DLL__ herr_t H5Pget_istore_k(hid_t plist_id, int *ik/*out*/); -__DLL__ herr_t H5Pset_layout(hid_t plist_id, H5D_layout_t layout); -__DLL__ H5D_layout_t H5Pget_layout(hid_t plist_id); -__DLL__ herr_t H5Pset_chunk(hid_t plist_id, int ndims, const hsize_t dim[]); -__DLL__ int H5Pget_chunk(hid_t plist_id, int max_ndims, hsize_t dim[]/*out*/); -__DLL__ herr_t H5Pset_external(hid_t plist_id, const char *name, off_t offset, +H5_DLL herr_t H5Pset_istore_k(hid_t plist_id, int ik); +H5_DLL herr_t H5Pget_istore_k(hid_t plist_id, int *ik/*out*/); +H5_DLL herr_t H5Pset_layout(hid_t plist_id, H5D_layout_t layout); +H5_DLL H5D_layout_t H5Pget_layout(hid_t plist_id); +H5_DLL herr_t H5Pset_chunk(hid_t plist_id, int ndims, const hsize_t dim[]); +H5_DLL int H5Pget_chunk(hid_t plist_id, int max_ndims, hsize_t dim[]/*out*/); +H5_DLL herr_t H5Pset_external(hid_t plist_id, const char *name, off_t offset, hsize_t size); -__DLL__ int H5Pget_external_count(hid_t plist_id); -__DLL__ herr_t H5Pget_external(hid_t plist_id, int idx, size_t name_size, +H5_DLL int H5Pget_external_count(hid_t plist_id); +H5_DLL herr_t H5Pget_external(hid_t plist_id, int idx, size_t name_size, char *name/*out*/, off_t *offset/*out*/, hsize_t *size/*out*/); -__DLL__ herr_t H5Pset_driver(hid_t plist_id, hid_t driver_id, +H5_DLL herr_t H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info); -__DLL__ hid_t H5Pget_driver(hid_t plist_id); -__DLL__ void *H5Pget_driver_info(hid_t plist_id); +H5_DLL hid_t H5Pget_driver(hid_t plist_id); +H5_DLL void *H5Pget_driver_info(hid_t plist_id); #ifdef H5_WANT_H5_V1_4_COMPAT -__DLL__ herr_t H5Pset_buffer(hid_t plist_id, hsize_t size, void *tconv, +H5_DLL herr_t H5Pset_buffer(hid_t plist_id, hsize_t size, void *tconv, void *bkg); -__DLL__ hsize_t H5Pget_buffer(hid_t plist_id, void **tconv/*out*/, +H5_DLL hsize_t H5Pget_buffer(hid_t plist_id, void **tconv/*out*/, void **bkg/*out*/); #else /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_buffer(hid_t plist_id, size_t size, void *tconv, +H5_DLL herr_t H5Pset_buffer(hid_t plist_id, size_t size, void *tconv, void *bkg); -__DLL__ size_t H5Pget_buffer(hid_t plist_id, void **tconv/*out*/, +H5_DLL size_t H5Pget_buffer(hid_t plist_id, void **tconv/*out*/, void **bkg/*out*/); #endif /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_preserve(hid_t plist_id, hbool_t status); -__DLL__ int H5Pget_preserve(hid_t plist_id); -__DLL__ herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, +H5_DLL herr_t H5Pset_preserve(hid_t plist_id, hbool_t status); +H5_DLL int H5Pget_preserve(hid_t plist_id); +H5_DLL herr_t H5Pset_filter(hid_t plist_id, H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int c_values[]); -__DLL__ int H5Pget_nfilters(hid_t plist_id); -__DLL__ H5Z_filter_t H5Pget_filter(hid_t plist_id, int filter, +H5_DLL int H5Pget_nfilters(hid_t plist_id); +H5_DLL H5Z_filter_t H5Pget_filter(hid_t plist_id, int filter, unsigned int *flags/*out*/, size_t *cd_nelmts/*out*/, unsigned cd_values[]/*out*/, size_t namelen, char name[]); -__DLL__ herr_t H5Pset_deflate(hid_t plist_id, unsigned aggression); +H5_DLL herr_t H5Pset_deflate(hid_t plist_id, unsigned aggression); #ifdef H5_WANT_H5_V1_4_COMPAT -__DLL__ herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, int rdcc_nelmts, +H5_DLL herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, int rdcc_nelmts, size_t rdcc_nbytes, double rdcc_w0); -__DLL__ herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts/*out*/, +H5_DLL herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts/*out*/, int *rdcc_nelmts/*out*/, size_t *rdcc_nbytes/*out*/, double *rdcc_w0); #else /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nelmts, +H5_DLL herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, size_t rdcc_nelmts, size_t rdcc_nbytes, double rdcc_w0); -__DLL__ herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts/*out*/, +H5_DLL herr_t H5Pget_cache(hid_t plist_id, int *mdc_nelmts/*out*/, size_t *rdcc_nelmts/*out*/, size_t *rdcc_nbytes/*out*/, double *rdcc_w0); #endif /* H5_WANT_H5_V1_4_COMPAT */ #ifdef H5_WANT_H5_V1_4_COMPAT -__DLL__ herr_t H5Pset_hyper_cache(hid_t plist_id, unsigned cache, +H5_DLL herr_t H5Pset_hyper_cache(hid_t plist_id, unsigned cache, unsigned limit); -__DLL__ herr_t H5Pget_hyper_cache(hid_t plist_id, unsigned *cache, +H5_DLL herr_t H5Pget_hyper_cache(hid_t plist_id, unsigned *cache, unsigned *limit); #endif /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_btree_ratios(hid_t plist_id, double left, double middle, +H5_DLL herr_t H5Pset_btree_ratios(hid_t plist_id, double left, double middle, double right); -__DLL__ herr_t H5Pget_btree_ratios(hid_t plist_id, double *left/*out*/, +H5_DLL herr_t H5Pget_btree_ratios(hid_t plist_id, double *left/*out*/, double *middle/*out*/, double *right/*out*/); -__DLL__ herr_t H5Pset_fill_value(hid_t plist_id, hid_t type_id, +H5_DLL herr_t H5Pset_fill_value(hid_t plist_id, hid_t type_id, const void *value); -__DLL__ herr_t H5Pget_fill_value(hid_t plist_id, hid_t type_id, +H5_DLL herr_t H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/); -__DLL__ herr_t H5Pfill_value_defined(hid_t plist, H5D_fill_value_t *status); -__DLL__ herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t +H5_DLL herr_t H5Pfill_value_defined(hid_t plist, H5D_fill_value_t *status); +H5_DLL herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t alloc_time); -__DLL__ herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t +H5_DLL herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t *alloc_time/*out*/); -__DLL__ herr_t H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time); -__DLL__ herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t +H5_DLL herr_t H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time); +H5_DLL herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t *fill_time/*out*/); -__DLL__ herr_t H5Pset_gc_references(hid_t fapl_id, unsigned gc_ref); -__DLL__ herr_t H5Pget_gc_references(hid_t fapl_id, unsigned *gc_ref/*out*/); -__DLL__ herr_t H5Pset_fclose_degree(hid_t fapl_id, H5F_close_degree_t degree); -__DLL__ herr_t H5Pget_fclose_degree(hid_t fapl_id, H5F_close_degree_t *degree); -__DLL__ herr_t H5Pset_vlen_mem_manager(hid_t plist_id, +H5_DLL herr_t H5Pset_gc_references(hid_t fapl_id, unsigned gc_ref); +H5_DLL herr_t H5Pget_gc_references(hid_t fapl_id, unsigned *gc_ref/*out*/); +H5_DLL herr_t H5Pset_fclose_degree(hid_t fapl_id, H5F_close_degree_t degree); +H5_DLL herr_t H5Pget_fclose_degree(hid_t fapl_id, H5F_close_degree_t *degree); +H5_DLL herr_t H5Pset_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t alloc_func, void *alloc_info, H5MM_free_t free_func, void *free_info); -__DLL__ herr_t H5Pget_vlen_mem_manager(hid_t plist_id, +H5_DLL herr_t H5Pget_vlen_mem_manager(hid_t plist_id, H5MM_allocate_t *alloc_func, void **alloc_info, H5MM_free_t *free_func, void **free_info); -__DLL__ herr_t H5Pset_meta_block_size(hid_t fapl_id, hsize_t size); -__DLL__ herr_t H5Pget_meta_block_size(hid_t fapl_id, hsize_t *size/*out*/); +H5_DLL herr_t H5Pset_meta_block_size(hid_t fapl_id, hsize_t size); +H5_DLL herr_t H5Pget_meta_block_size(hid_t fapl_id, hsize_t *size/*out*/); #ifdef H5_WANT_H5_V1_4_COMPAT -__DLL__ herr_t H5Pset_sieve_buf_size(hid_t fapl_id, hsize_t size); -__DLL__ herr_t H5Pget_sieve_buf_size(hid_t fapl_id, hsize_t *size/*out*/); +H5_DLL herr_t H5Pset_sieve_buf_size(hid_t fapl_id, hsize_t size); +H5_DLL herr_t H5Pget_sieve_buf_size(hid_t fapl_id, hsize_t *size/*out*/); #else /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_sieve_buf_size(hid_t fapl_id, size_t size); -__DLL__ herr_t H5Pget_sieve_buf_size(hid_t fapl_id, size_t *size/*out*/); +H5_DLL herr_t H5Pset_sieve_buf_size(hid_t fapl_id, size_t size); +H5_DLL herr_t H5Pget_sieve_buf_size(hid_t fapl_id, size_t *size/*out*/); #endif /* H5_WANT_H5_V1_4_COMPAT */ -__DLL__ herr_t H5Pset_hyper_vector_size(hid_t fapl_id, size_t size); -__DLL__ herr_t H5Pget_hyper_vector_size(hid_t fapl_id, size_t *size/*out*/); -__DLL__ herr_t H5Pset_small_data_block_size(hid_t fapl_id, hsize_t size); -__DLL__ herr_t H5Pget_small_data_block_size(hid_t fapl_id, hsize_t *size/*out*/); +H5_DLL herr_t H5Pset_hyper_vector_size(hid_t fapl_id, size_t size); +H5_DLL herr_t H5Pget_hyper_vector_size(hid_t fapl_id, size_t *size/*out*/); +H5_DLL herr_t H5Pset_small_data_block_size(hid_t fapl_id, hsize_t size); +H5_DLL herr_t H5Pget_small_data_block_size(hid_t fapl_id, hsize_t *size/*out*/); #ifdef __cplusplus } |