diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-14 22:09:56 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-14 22:09:56 (GMT) |
commit | e87fc517b8fc391cf18c268ce0b195eb7398a4a7 (patch) | |
tree | 494d1d87f71f87f320707989b7f12eec0f1d3805 /tools/h4toh5 | |
parent | eef2829d1655e42225b2400c6e3d123be26e08a8 (diff) | |
download | hdf5-e87fc517b8fc391cf18c268ce0b195eb7398a4a7.zip hdf5-e87fc517b8fc391cf18c268ce0b195eb7398a4a7.tar.gz hdf5-e87fc517b8fc391cf18c268ce0b195eb7398a4a7.tar.bz2 |
[svn-r4355] Purpose:
Code cleanup (sorta)
Description:
When the first versions of the HDF5 library were designed, I remembered
vividly the difficulties of porting code from a 32-bit platform to a 16-bit
platform and asked that people use intn & uintn instead of int & unsigned
int, respectively. However, in hindsight, this was overkill and
unnecessary since we weren't going to be porting the HDF5 library to
16-bit architectures.
Currently, the extra uintn & intn typedefs are causing problems for users
who'd like to include both the HDF5 and HDF4 header files in one source
module (like Kent's h4toh5 library).
Solution:
Changed the uintn & intn's to unsigned and int's respectively.
Platforms tested:
FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'tools/h4toh5')
-rw-r--r-- | tools/h4toh5/h4toh5sds.c | 2 | ||||
-rw-r--r-- | tools/h4toh5/h4toh5test.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/h4toh5/h4toh5sds.c b/tools/h4toh5/h4toh5sds.c index 9637763..3788c82 100644 --- a/tools/h4toh5/h4toh5sds.c +++ b/tools/h4toh5/h4toh5sds.c @@ -55,7 +55,7 @@ int Sds_h4_to_h5(int32 file_id,int32 sds_id,hid_t h5_group,hid_t h5_dimgroup,int int32* sds_stride; int32 count_sdsdata; int32 sds_ref; - intn sds_empty; + int sds_empty; int32 istat; int i; int32 num_sdsattrs; diff --git a/tools/h4toh5/h4toh5test.c b/tools/h4toh5/h4toh5test.c index f717e6e..4a985d6 100644 --- a/tools/h4toh5/h4toh5test.c +++ b/tools/h4toh5/h4toh5test.c @@ -798,7 +798,7 @@ int test_grtyp() { uint32 image_data321[Y_LENGTH][X_LENGTH]; int16 image_data16[Y_LENGTH][X_LENGTH][3]; int16 image_data161[Y_LENGTH][X_LENGTH]; - intn i, j; + int i, j; int32 CUB_SIZE; int istat; @@ -970,7 +970,7 @@ int test_ras8() { int32 start[2], edges[2],dims[2]; int8 image_data8[Y_LENGTH][X_LENGTH]; uint8 image_datau8[Y_LENGTH][X_LENGTH]; - intn i, j; + int i, j; int32 CUB_SIZE; CUB_SIZE = (X_LENGTH-1)*(Y_LENGTH-1); @@ -1071,7 +1071,7 @@ int test_ras24() { int32 start[2], edges[2],dims[2]; int8 image_data24[Y_LENGTH][X_LENGTH][3]; uint8 image_datau24[Y_LENGTH][X_LENGTH][3]; - intn i, j; + int i, j; int32 CUB_SIZE; @@ -1178,7 +1178,7 @@ int test_imageattr() { uint8 palette_data[NUM_COLORS * 3]; int32 num_comp,num_entries; - intn i, j; + int i, j; /* Open the file. */ file_id = Hopen(FILEGRPAL, DFACC_CREATE, 0); @@ -1442,7 +1442,7 @@ int test_vgnameclash() { int32 file_id, vgroupa_ref, vgroupa_id,vgroupb_ref,vgroupb_id; int32 vgroupc_id,vgroupc_ref; int32 dim_sizes[TYP_RANK]; - intn i, j; + int i, j; int32 sd_id,sds_id; int32 sds_ref; int32 array_data[X_LENGTH][Y_LENGTH]; @@ -1566,7 +1566,7 @@ int test_sdsnameclash() { int32 file_id, vgroupa_ref, vgroupa_id,vgroupb_ref,vgroupb_id; int32 dim_sizes[TYP_RANK]; int32 vgroupc_ref,vgroupc_id; - intn i, j,istat; + int i, j,istat; int32 sd_id,sds_id; int32 sds_ref; int32 array_data[X_LENGTH][Y_LENGTH]; @@ -2904,7 +2904,7 @@ int test_vgall() { int32 vgroupd_ref, vgroupd_id,vgroupe_ref,vgroupe_id; int32 vdata_id,values[4]={32, 16, 32, 8}; - intn i, j,k; + int i, j,k; uint8 *databuf, *pntr; int bufsize, recsize; |