Commit Graph

3340 Commits

Author SHA1 Message Date
Quincey Koziol
233ef182ac [svn-r4645] Purpose:
Bug Fix
Description:
    Replace an 'if' statement taken out in commit earlier today which was
    necessary for routing around endian conversions when zero elements were
    converted.
Platforms tested:
    IRIX64 6.5 (modi4)
2001-11-27 13:02:00 -05:00
Quincey Koziol
226ae23b7b [svn-r4644] Purpose:
Code cleanup
Description:
    Fix small warning on SGI compilers
Platforms tested:
    IRIX64 6.5 (modi4)
2001-11-27 13:00:39 -05:00
Quincey Koziol
d456c2bb82 [svn-r4643] Purpose:
Code cleanup
Description:
    Windows is generating hundreds of warnings from some of the practices in
    the library.  Mostly, they are because size_t is 32-bit and hsize_t is
    64-bit on Windows and we were carelessly casting the larger values down to
    the smaller ones without checking for overflow.

    Also, some other small code cleanups,etc.

Solution:
    Re-worked some algorithms to eliminate the casts and also added more
    overflow checking for assignments and function parameters which needed
    casts.

    Kent did most of the work, I just went over his changes and fit them into
    the the library code a bit better.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-27 11:29:13 -05:00
Quincey Koziol
05264c8878 [svn-r4642] Purpose:
Code cleanup
Description:
    Added macro to check for overflows when assigning a value to a variable
    which requires a cast down in size or precision.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-27 11:18:43 -05:00
Quincey Koziol
35a04d41ff [svn-r4635] Purpose:
Code cleanup (sorta)
Description:
    H5_SIZEOF_HSIZE_T was missing from among the definitions we provide for
    the variables we declare.
Solution:
    Added it.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-21 15:08:58 -05:00
Quincey Koziol
db8fa602a6 [svn-r4634] Purpose:
Bug fix
Description:
    A couple more compile problems from the recent elimination of IDs from
    internal function calls.
Platforms tested:
    IRIX64 6.5 (modi4)
2001-11-21 12:01:10 -05:00
Quincey Koziol
2edb830946 [svn-r4633] Purpose:
Bug fix.
Description:
    Builds for parallel testing exposed some places that I forgot to get rid of
    using IDs in internal APIs.
Solution:
    Switch sections of code to use proper data structures instead of IDs.
Platforms tested:
    Parallel compiles from daily tests.
2001-11-21 10:09:47 -05:00
Quincey Koziol
cdffac61e5 [svn-r4632] Purpose:
Bug fix
Description:
    Fix deep copies of property lists with H5P_DEFAULT values.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-21 10:07:32 -05:00
Quincey Koziol
2a2d3b21aa [svn-r4631] Purpose:
Bug fix
Description:
    Fixed return type from FAIL to NULL.
Platforms tested:
    Daily tests on SGI machines.
2001-11-21 10:06:25 -05:00
Quincey Koziol
ff0f769b87 [svn-r4629] Purpose:
Bug fix for code cleanup... :-)
Description:
    Fix a few problems introduced in my previous code cleanup.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 17:29:15 -05:00
Quincey Koziol
6248a58046 [svn-r4628] Purpose:
Fix typo...
Description:
    Copy & paste error... :-)
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 16:08:58 -05:00
Quincey Koziol
cfcfc906b6 [svn-r4627] Purpose:
Code cleanup
Description:
    Got rid of IDs from internal API functions and also got rid of API calls
    from internal functions.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:18:23 -05:00
Quincey Koziol
dabfd39dc8 [svn-r4626] Purpose:
Code cleanup
Description:
    Moved parts of the H5P stuff into the new H5Ppkg.h header file from here.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:17:25 -05:00
Quincey Koziol
977504e69f [svn-r4625] Purpose:
Code cleanup
Description:
    Add new header file to separate the H5P functionality better.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:16:38 -05:00
Quincey Koziol
7a8a23b9ca [svn-r4624] Purpose:
Code cleanup & bug fixes
Description:
    Clean up memory leaks when shutting down H5P API.

    Remove all IDs from internal API calls, except for H5P_isa_class, which
    should be the only internal API call which accepts an ID besides the H5I*
    functions.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:15:49 -05:00
Quincey Koziol
394aac2768 [svn-r4623] Purpose:
Bug fix & code cleanup
Description:
    Be much more careful when closing all the IDs in an ID group, re-flush
    the ID cache after each ID closed, since the close callback for an ID could
    get back into the ID API code and create havoc.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:14:01 -05:00
Quincey Koziol
fa4e258236 [svn-r4622] Purpose:
Code cleanup
Description:
    Be more careful when starting up and shutting down APIs, only initialize
    variables which are actually shut down already.

    Get rid of IDs from internal function calls
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:11:49 -05:00
Quincey Koziol
300fcb978b [svn-r4621] Purpose:
Code cleanup
Description:
    Get rid of IDs from internal function calls.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:10:12 -05:00
Quincey Koziol
6ab0e9f092 [svn-r4620] Purpose:
Code cleanup
Description:
    Get rid of IDs from internal function calls and some small cleanups from
    the old-stype => generic property list conversion.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 14:07:22 -05:00
Quincey Koziol
2e53165b47 [svn-r4619] Purpose:
Code cleanup
Description:
    Clean up thread-safety macros and neaten up code.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 13:56:24 -05:00
Quincey Koziol
137d18ffe8 [svn-r4618] Purpose:
Code cleanup
Description:
    Clean up threading macros and remove vestiges of old-style property lists.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-20 13:55:33 -05:00
Quincey Koziol
164b8083f0 [svn-r4600] Purpose:
Bug fix.
Description:
    The internal B-tree code was dumping core with an assertion failure when
    flushing data to the file if too many objects were put into the same B-tree
    (forcing the root node to split, I think).
Solution:
    Fixed the B-tree copy routine to copy the correct number of raw keys.
Platforms tested:
    FreeBSD 4.4 (hawkwind), Solaris 2.6 (baldric)
2001-11-12 15:03:30 -05:00
HDF Admin
c5c9b991e7 [svn-r4598] Snapshot version 1.5 release 15 2001-11-10 04:25:40 -05:00
MuQun Yang
7957dc20af [svn-r4595]
Purpose:
     1. temporarily fixed mtime test when daylight saving changes on windows.
     2. move H5_inline defination for win32 to windows H5pubconf.h at H5private.h.
Description:
     1. the mtime test is not working when the daylight saving ends. Hard-coded back to the correct time. Need to find a universal solution later.
     2. Move H5_inline defination for win32 at H5private.h into windows specificed H5pubconf.h so that windows maintenance can be more easy to handle.
Solution:
     see above.
Platforms tested:
    windows 2000, confirmed at Linux Red Hat 6.2.
2001-11-08 08:35:13 -05:00
Quincey Koziol
bd74bf3ff0 [svn-r4590] Purpose:
Code cleanup
Description:
    Fix a bunch of warnings and also make the linux compilers happy with
    some casts.
Platforms tested:
    Linux 2.2 (eirene)
2001-11-03 22:21:41 -05:00
Quincey Koziol
0001a13617 [svn-r4589] Purpose:
Code cleanup
Description:
    Clean up various compiler warnings from generic property updates.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-03 17:27:54 -05:00
Quincey Koziol
1cd9eb7e0d [svn-r4586] Purpose:
Code speedups, etc.
Description:
    Bring in new algorithms and data structures for dealing with hyperslabs.

    This speeds up the hyperslab I/O for non-regular hyperslabs by a huge
    amount.

    Currently, the new API functions are ifdef'ed out, pending discussion
    and consensus approval.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-11-02 15:31:35 -05:00
Raymond Lu
5122df335c [svn-r4584]
Purpose:
    Switch from old property list to new generic property list.
Description:
    Mainly changed H5Pcreat, H5Pclose, H5Pcopy.
Platforms tested:
    IRIX64 6.5, FreeBSD, SunOS 5.7.
2001-11-02 14:46:36 -05:00
HDF Admin
356626bd34 [svn-r4578] Snapshot version 1.5 release 14 2001-10-27 04:44:59 -05:00
Raymond Lu
33189bd39b [svn-r4573]
Purpose:
    Switch mount property list to the new generic property list.
Platforms tested:
    IRIX64 6.5, SunOS 5.7, FreeBSD.
2001-10-25 14:52:10 -05:00
Raymond Lu
b3afaccfe5 [svn-r4572]
Purpose:
    Followup file access property list changes.
Platforms tested:
    IRIX64, SunOS 5.7, FreeBSD.
2001-10-25 14:29:37 -05:00
Raymond Lu
b6da4ea427 [svn-r4569]
Purpose:
    Generic Property List Change
Description:
    Changed file access list to the new generic list.
Platforms tested:
    IRIX64, SunOS5.7, FreeBSD
2001-10-24 13:02:27 -05:00
Quincey Koziol
aeaa30b4e1 [svn-r4563] Purpose:
Code cleanup
Description:
    Update tracing API information
Platforms tested:
    Linux 2.? (dangermouse)
2001-10-23 14:19:03 -05:00
Quincey Koziol
fc0bc212bb [svn-r4561] Purpose:
Bug fix
Description:
    H5S_select_elements is not actually putting the new point on the list of
    points selected when there are no points currently selected and the
    'append' operation is chosen.
Solution:
    Add new point to list correctly.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-10-20 14:25:58 -05:00
Quincey Koziol
8c076f6921 [svn-r4560] Purpose:
Bug fix.
Description:
    H5S_select_hyperslab fails to correctly define a hyperslab when the space
    to put the hyperslab into is currently a 'none' selection and the hyperslab
    operation is the 'or' operation.
Solution:
    Detect the situation and internally modify the hyperslab operation to be
    a 'set' operation, since that's the next affect desired.
Platforms tested:
    FreeBSD 4.4. (hawkwind)
2001-10-20 14:24:03 -05:00
Quincey Koziol
3b2053492a [svn-r4554] Purpose:
Bug Fix
Description:
    Section of code which defined file offset and length macros was removed
    a while ago and found during testing just now.
Solution:
    Replaced section of code to define macros.
Platforms tested:
    IRIX64 6.5 (modi4)
2001-10-17 15:25:03 -05:00
Quincey Koziol
cdbb523b94 [svn-r4548] Purpose:
Code cleanup.
Description:
    Fix a few compiler warnings from the file creation property list -> generic
    property list conversion.  Also change a hard-wired value (8) for the
    number of B-tree key values to a value that uses the enum's generated by
    the compiler.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-10-16 13:19:06 -05:00
Bill Wendling
dda41213de [svn-r4545]
Purpose:
	Bug Fix
Description:
	Function was returning NULL instead of FAIL
Solution:
	Returned FAIL instead.
Platforms tested:
	Linux
2001-10-15 14:41:08 -05:00
Raymond Lu
fe76b00dc6 [svn-r4543]
Purpose:
    Changed the file creation property list to the new generic property list.
Platform tested:
    IRIX64, SunOS5.7, FreeBSD
2001-10-15 14:36:48 -05:00
HDF Admin
3a92efb154 [svn-r4540] Snapshot version 1.5 release 13 2001-10-13 03:43:04 -05:00
HDF Admin
841fe928ac [svn-r4529] Snapshot version 1.5 release 12 2001-10-06 03:31:10 -05:00
HDF Rational
605f31386a [svn-r4525] Purpose:
Bug Fix
Description:
    Purify detected an uninitialized memory read in H5Pset_chunk and a memory
    leak in H5P_remove.
Solution:
    Patched both up.
Platforms tested:
    Solaris 2.7 (arabica)
2001-10-05 17:26:40 -05:00
Quincey Koziol
4b2c69c89f [svn-r4520] Purpose:
Bug fix
Description:
    Remove 'const' modifier in prototype for H5D_new, the dcpl_id parameter
    needs to be non-const.
Platforms tested:
    Eyeballed (reported on gondolin)
2001-10-04 09:38:54 -05:00
Quincey Koziol
f3a42517b9 [svn-r4518] Purpose:
Code cleanup
Description:
    Clean up some small compiler warnings.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-10-03 16:17:01 -05:00
Raymond Lu
e3a137f39e [svn-r4517]
Purpose:
    Changed to the new generic property list for dataset creation property
    list.
Platforms tested:
    Arabica, modi4 and Hawkwind
2001-10-03 12:57:56 -05:00
Quincey Koziol
d808a5b53a [svn-r4508] Purpose:
Document bug fix.
Description:
    When reading or writing to chunked datasets and the data needed datatype
    conversion, and the amount of data was more than one conversion buffer,
    data in the conversion buffer was getting corrupted.
Solution:
    Corrected error in advancing buffer pointer where it was being advanced
    by the number of elements instead of the number of bytes.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-10-02 11:57:56 -05:00
Quincey Koziol
b8b6227850 [svn-r4506] Purpose:
Bug fix/optimization.
Description:
    Single, contiguous (in memory) hyperslabs are able to be transferred in one
    I/O operation, but weren't being detected correctly by the code in
    H5S_all_read()/H5S_all_write() and were getting routed into slower I/O
    routines.  (Or, possibly failing in some circumstances)
Solution:
    Wrote code to correctly detect single contiguous hyperslabs in memory and
    adjust arrays and buffer pointers describing the memory information so that
    the entire hyperslab can be transferred in one operation.
Platforms Tested:
    FreeBSD 4.4 (hawkwind)
2001-10-01 10:42:33 -05:00
HDF Admin
1a8a5d8cfc [svn-r4501] Snapshot version 1.5 release 11 2001-09-30 03:33:28 -05:00
Quincey Koziol
938be57841 [svn-r4494] Purpose:
Bug fix.

Problem:
    When an entire dataset was selected (through whatever means, H5S_ALL, making
    an explicit "all" selection, etc.), the code was not allowing the optimized
    routine to read the entire dataset in at once when the current dimensions
    did not match the maximum dimensions and instead was defaulting to a [much]
    slower method to read in the dataset.

Solution:
    Took out check which was requiring current dimensions to be equal to the
    maximum dimensions.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-09-28 14:46:04 -05:00
Quincey Koziol
ebb5d3a90d [svn-r4489] Purpose:
Bug Fix
Description:
    When writing (or reading) the entire dataset to a chunked dataset, there
    was a boundary case where the code to generate the description of the
    piece of the dataset to read into the buffer for data conversion would
    attempt to read off the boundary of the dataset.  This was occuring because
    the code to detect the edge of the dataset was not propagating the change
    up through the remaining dimensions when an edge in a fast changing
    dimension was detected.
Solution:
    Propagate edge detection up through slower changing dimensions properly.
Platforms tested:
    Linux 2.2.18smp (eirene)
2001-09-28 14:00:43 -05:00