diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-15 14:54:05 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-15 14:54:05 (GMT) |
commit | 81cde8e325d01f68a02837429fec7ffb961e3d5a (patch) | |
tree | e3355629c3bde3e6b02623c37a9fb6ee6123f13e /src/H5Osdspace.c | |
parent | 44b651ac6cc7d20abfb88cfeb833578d0224bb04 (diff) | |
download | hdf5-81cde8e325d01f68a02837429fec7ffb961e3d5a.zip hdf5-81cde8e325d01f68a02837429fec7ffb961e3d5a.tar.gz hdf5-81cde8e325d01f68a02837429fec7ffb961e3d5a.tar.bz2 |
[svn-r4360] 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).
(Merged from the same changes to development branch)
Solution:
Changed the uintn & intn's to unsigned and int's respectively.
Platforms tested:
FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'src/H5Osdspace.c')
-rw-r--r-- | src/H5Osdspace.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5Osdspace.c b/src/H5Osdspace.c index 8cb81f2..04a087f 100644 --- a/src/H5Osdspace.c +++ b/src/H5Osdspace.c @@ -32,7 +32,7 @@ static size_t H5O_sdspace_size(H5F_t *f, const void *_mesg); static herr_t H5O_sdspace_reset(void *_mesg); static herr_t H5O_sdspace_free (void *_mesg); static herr_t H5O_sdspace_debug(H5F_t *f, const void *_mesg, - FILE * stream, intn indent, intn fwidth); + FILE * stream, int indent, int fwidth); /* This message derives from H5O */ const H5O_class_t H5O_SDSPACE[1] = {{ @@ -53,7 +53,7 @@ const H5O_class_t H5O_SDSPACE[1] = {{ #define H5O_SDSPACE_VERSION 1 /* Is the interface initialized? */ -static intn interface_initialize_g = 0; +static int interface_initialize_g = 0; #define INTERFACE_INIT NULL /* Declare external the free list for H5S_simple_t's */ @@ -93,8 +93,8 @@ H5O_sdspace_decode(H5F_t *f, const uint8_t *p, H5O_shared_t UNUSED *sh) { H5S_simple_t *sdim = NULL;/* New simple dimensionality structure */ void *ret_value = NULL; - uintn u; /* local counting variable */ - uintn flags, version; + unsigned u; /* local counting variable */ + unsigned flags, version; FUNC_ENTER(H5O_sdspace_decode, NULL); @@ -183,8 +183,8 @@ static herr_t H5O_sdspace_encode(H5F_t *f, uint8_t *p, const void *mesg) { const H5S_simple_t *sdim = (const H5S_simple_t *) mesg; - uintn u; /* Local counting variable */ - uintn flags = 0; + unsigned u; /* Local counting variable */ + unsigned flags = 0; FUNC_ENTER(H5O_sdspace_encode, FAIL); @@ -400,8 +400,8 @@ H5O_sdspace_free (void *mesg) H5F_t *f; IN: pointer to the HDF5 file struct const void *mesg; IN: Pointer to the source simple dimensionality struct FILE *stream; IN: Pointer to the stream for output data - intn indent; IN: Amount to indent information by - intn fwidth; IN: Field width (?) + int indent; IN: Amount to indent information by + int fwidth; IN: Field width (?) RETURNS Non-negative on success/Negative on failure DESCRIPTION @@ -410,10 +410,10 @@ H5O_sdspace_free (void *mesg) --------------------------------------------------------------------------*/ static herr_t H5O_sdspace_debug(H5F_t UNUSED *f, const void *mesg, - FILE * stream, intn indent, intn fwidth) + FILE * stream, int indent, int fwidth) { const H5S_simple_t *sdim = (const H5S_simple_t *) mesg; - uintn u; /* local counting variable */ + unsigned u; /* local counting variable */ FUNC_ENTER(H5O_sdspace_debug, FAIL); |