summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2005-05-02 18:58:28 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2005-05-02 18:58:28 (GMT)
commitcc44e6af631d3a178872f7478a0e0f891e18a4a9 (patch)
tree131923662d4f5bffe5841dcbd7c7f06fa122353c /src/H5AC.c
parent6b5d74f777b8955b5f6f5a96667557812630eba0 (diff)
downloadhdf5-cc44e6af631d3a178872f7478a0e0f891e18a4a9.zip
hdf5-cc44e6af631d3a178872f7478a0e0f891e18a4a9.tar.gz
hdf5-cc44e6af631d3a178872f7478a0e0f891e18a4a9.tar.bz2
[svn-r10715] Purpose:
Remove C99 types from new metadata cache related API calls Description: Windows (and perhaps others) don't like int32_t and int64_t. While we have dealt with the issue internally, it is more of a problem in API calls. Solution: Convert int32_t to int and int64_t to long int in the H5AC_cache_config_t structure used by the new metadata cache related API calls. Added explicit type casts to convert between internal and external representations. Platforms tested: h5committested Misc. update:
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 5904b39..c68cd86 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -1288,7 +1288,7 @@ H5AC_get_cache_auto_resize_config(H5AC_t * cache_ptr,
config_ptr->min_clean_fraction = internal_config.min_clean_fraction;
config_ptr->max_size = internal_config.max_size;
config_ptr->min_size = internal_config.min_size;
- config_ptr->epoch_length = internal_config.epoch_length;
+ config_ptr->epoch_length = (long)(internal_config.epoch_length);
config_ptr->incr_mode = internal_config.incr_mode;
config_ptr->lower_hr_threshold = internal_config.lower_hr_threshold;
config_ptr->increment = internal_config.increment;
@@ -1299,7 +1299,8 @@ H5AC_get_cache_auto_resize_config(H5AC_t * cache_ptr,
config_ptr->decrement = internal_config.decrement;
config_ptr->apply_max_decrement = internal_config.apply_max_decrement;
config_ptr->max_decrement = internal_config.max_decrement;
- config_ptr->epochs_before_eviction = internal_config.epochs_before_eviction;
+ config_ptr->epochs_before_eviction =
+ (int)(internal_config.epochs_before_eviction);
config_ptr->apply_empty_reserve = internal_config.apply_empty_reserve;
config_ptr->empty_reserve = internal_config.empty_reserve;
@@ -1506,7 +1507,8 @@ H5AC_set_cache_auto_resize_config(H5AC_t * cache_ptr,
internal_config.min_clean_fraction = config_ptr->min_clean_fraction;
internal_config.max_size = config_ptr->max_size;
internal_config.min_size = config_ptr->min_size;
- internal_config.epoch_length = config_ptr->epoch_length;
+ internal_config.epoch_length =
+ (int64_t)(config_ptr->epoch_length);
internal_config.incr_mode = config_ptr->incr_mode;
internal_config.lower_hr_threshold = config_ptr->lower_hr_threshold;
@@ -1519,7 +1521,8 @@ H5AC_set_cache_auto_resize_config(H5AC_t * cache_ptr,
internal_config.decrement = config_ptr->decrement;
internal_config.apply_max_decrement = config_ptr->apply_max_decrement;
internal_config.max_decrement = config_ptr->max_decrement;
- internal_config.epochs_before_eviction = config_ptr->epochs_before_eviction;
+ internal_config.epochs_before_eviction =
+ (int32_t)(config_ptr->epochs_before_eviction);
internal_config.apply_empty_reserve = config_ptr->apply_empty_reserve;
internal_config.empty_reserve = config_ptr->empty_reserve;
@@ -1608,7 +1611,8 @@ H5AC_validate_config(H5AC_cache_config_t * config_ptr)
internal_config.min_clean_fraction = config_ptr->min_clean_fraction;
internal_config.max_size = config_ptr->max_size;
internal_config.min_size = config_ptr->min_size;
- internal_config.epoch_length = config_ptr->epoch_length;
+ internal_config.epoch_length =
+ (int64_t)(config_ptr->epoch_length);
internal_config.incr_mode = config_ptr->incr_mode;
internal_config.lower_hr_threshold = config_ptr->lower_hr_threshold;
@@ -1621,7 +1625,8 @@ H5AC_validate_config(H5AC_cache_config_t * config_ptr)
internal_config.decrement = config_ptr->decrement;
internal_config.apply_max_decrement = config_ptr->apply_max_decrement;
internal_config.max_decrement = config_ptr->max_decrement;
- internal_config.epochs_before_eviction = config_ptr->epochs_before_eviction;
+ internal_config.epochs_before_eviction =
+ (int32_t)(config_ptr->epochs_before_eviction);
internal_config.apply_empty_reserve = config_ptr->apply_empty_reserve;
internal_config.empty_reserve = config_ptr->empty_reserve;