diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-28 16:18:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-28 16:18:42 (GMT) |
commit | 51f5bbc54fae647682f4d6723c5c956053e6195a (patch) | |
tree | 0401dd21d85ca75986d222012908ac379a35d15b /src/H5Spublic.h | |
parent | 923c2ecb780c709a210f74d679fc4cdde08fa0d3 (diff) | |
download | hdf5-51f5bbc54fae647682f4d6723c5c956053e6195a.zip hdf5-51f5bbc54fae647682f4d6723c5c956053e6195a.tar.gz hdf5-51f5bbc54fae647682f4d6723c5c956053e6195a.tar.bz2 |
[svn-r3008] Purpose:
Code cleanup
Description:
Several places in the code were using -2 as a default value for various
features. However, when a default value is returned from a function that
is supposed to return negative on failure, it was causing confusion and
extra work for users to check for the special value.
Solution:
Replaced hard-coded -2 values in the code with symbolic names, then changed
symbolic names to 0 instead of -2.
Platforms tested:
FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'src/H5Spublic.h')
-rw-r--r-- | src/H5Spublic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Spublic.h b/src/H5Spublic.h index f7aa805..2f2b740 100644 --- a/src/H5Spublic.h +++ b/src/H5Spublic.h @@ -21,7 +21,7 @@ #include <H5Ipublic.h> /* Define atomic datatypes */ -#define H5S_ALL (-2) +#define H5S_ALL 0 #define H5S_UNLIMITED ((hsize_t)(hssize_t)(-1)) /* Define user-level maximum number of dimensions */ |