Commit Graph

8178 Commits

Author SHA1 Message Date
Binh-Minh Ribler
5ed48cf279 [svn-r11755] Purpose: Code improvement
Description:
    There was a workaround for predefined types, in the C++ library,
    implemented when the C++ library was handling the reference
    counting of the object ids on its own.  Currently, the C++ library
    is using the available APIs from the C library for that purpose,
    and there were bugs reported involving that part of the C++ library.
    So, I decided to remove the workaround completely.

    Also, improved the use of std members.

Platforms tested:
    Linux 2.4 (heping)
    SunOS 5.8 64-bit (sol)
    Linux 2.4 w/PGI (colonelk)
2005-12-03 07:21:25 -05:00
James Laird
25576025eb [svn-r11754] Purpose:
Feature

Description:
bin/reconfigure now allows users to define the paths to the autotools on their
system.  bin/reconfigure also runs the trace script when it is invoked.

Solution:
The autotools are specified using environment variables: AUTOCONF, AUTOMAKE,
ACLOCAL, AUTOHEADER, and LIBTOOL_DIR.  See bin/reconfigure for the defaults.
The version of each of the autotools is checked before they are run, so
users can't invoke the wrong version of any autotool.
The trace script is run on all the .c files in the src directory when
reconfigure is invoked.  Ideally, bin/reconfigure should be run when any new
function is added to the library, but if the tracing information is out of
date the library will still work.
The trace script has also been modified to ignore the multi and stdio file
drivers (per Quincey's suggestion).

Platforms tested:
mir, shanti
2005-12-02 13:46:20 -05:00
Fang Guo
151e0e1620 [svn-r11753] Purpose:
Description:

Solution:

Platforms tested:

Misc. update:
2005-12-02 10:52:42 -05:00
Fang Guo
0d008c805c [svn-r11752] Purpose: Maintenance on Windows
Files updates due to the difference of copyright information
Description:

Solution:

Platforms tested:

Misc. update:
2005-12-02 10:50:05 -05:00
James Laird
c46e4e51d9 [svn-r11751] Purpose:
Cleanup

Description:
Changed comments in C++ packet table code to refer to entries as
"packets" instead of "records."

Solution:
The APIs were changed to correspond to the C API, but the documentation
wasn't.  This is fixed.

Platforms tested:
mir, shanti, sleipnir

Misc. update:
This corresponds to documentation update earlier this week.
2005-12-01 11:18:24 -05:00
Fang Guo
b6d7ebf3bb [svn-r11748] Purpose:
Maintenance on Windows
Description:
Fix some typoes
Solution:

Platforms tested:

Misc. update:
2005-11-29 14:21:22 -05:00
Albert Cheng
000da5785e [svn-r11747] Purpose:
Cleanup and new feature.

Description:
Remove old code no longer used (LOCATE_GASS, LOCATE_FORTRAN, LOCATE_HDF4.
Added new option to locate szlib.

Platforms tested:
Tested in heping and shanti.
2005-11-23 15:33:48 -05:00
Raymond Lu
5125354f7e [svn-r11742] Purpose: Minor correction.
Description: H5Eset_auto_stack() and H5Eset_auto() used FUNC_ENTER_API.  It would clear the error
stack from the previous API call.  It's better to use FUNC_ENTER_API_NOCLEAR to avoid clearing
the stack.


Platforms tested: fuss - simple change.
2005-11-18 16:18:13 -05:00
James Laird
0f870b0f47 [svn-r11741] Purpose:
Bug fix

Description:
Fortran type generation was broken in two ways.  Fixed both.

Solution:
Firstly, there were a couple of path problems.  Fixed a typo and
specified the full path of a file.
Secondly, the dependencies weren't right when building with HDF5-specific
commands (make lib, make check-s, etc.).  Tweaked dependencies
to fix the problem.

Platforms tested:
mir, modi4, sleipnir
2005-11-18 15:31:53 -05:00
Pedro Vicente Nunes
0426d8d7e1 [svn-r11740] Purpose:
code check

Description:
changed the name of a few variables that were misleading in its name

Solution:

Platforms tested:
linux

Misc. update:
2005-11-18 15:09:28 -05:00
MuQun Yang
c7e562c755 [svn-r11739] Purpose:
slight code change for efficiency of iteration of chunk address
Description:
Quincey picked this up because of my inexperience of C. A pair of redundant malloc and free calls will be removed.

Solution:

Platforms tested:
heping(Linux 2.4)
too little to be tested.

Misc. update:
2005-11-18 11:01:53 -05:00
James Laird
4f8ca8e026 [svn-r11738] Purpose:
Configure feature

Description:
Added 'make trace' target.

Solution:
Added tracing to 1.7.  This was done automatically in 1.6, but left out
of 1.7 until now (oops!).
Tracing in 1.7 only happens manually, when the user types 'make trace.'
Tracing automatically requires more framework than it's worth.
I also fixed a couple of tracing bugs and ran trace.

Platforms tested:
mir, sleipnir, modi4

Misc. update:
2005-11-18 10:55:22 -05:00
James Laird
75ea10e5f5 [svn-r11737] Purpose:
Bug fix

Description:
Before this checkin, 'gmake check-s' would fail if there was a file in
the current directory named 'check-s'.
This is fixed under gmake (not sure how to fix for other makes).

Solution:
check, progs, install, etc. are what gmake calls "phony" targets,
which means that no file should be created.  These targets can be
specified by a line of the form
.PHONY: check progs install ...
Automake adds this line for targets it knows about, but HDF5 has a
lot of custom rules.  This checkin adds a .PHONY line for those rules.
I believe that only gmake recognizes the .PHONY line (at least, pmake
doesn't seem to), but a partial solution is better than none.
This error should occur very rarely anyway (the user has to manually
create files with names like 'build-check-s' or '_test').

Platforms tested:
mir, sleipnir, modi4
2005-11-17 13:49:28 -05:00
Albert Cheng
706885260d [svn-r11736] Purpose:
Cleanup.

Description:
Removed reference to H5_HAVE_VSNPRINTF and the corresponding abort
since we do not use the home-grown potentially memory wacking version
any more.

Platforms tested:
heping.

Misc. update:
2005-11-16 13:24:44 -05:00
Albert Cheng
7fbe30d5ab [svn-r11735] Purpose:
Cleanup.

Description:
Removed the home-made version of snprintf and vsnprintf since they
do not actually enforce the size parameter correctly and could corrupt
memory or as a security hole.
This block of code has been turned off since Aug 11, 2005 for all platforms
except Tflops.  No one has reported any problem since--sort of empirical
evidence that all platforms except Tflops support both functions.
Tflops has retired in September.  So, no need to keep this block of code.

Also, fixed the HDxxx macro to call the corresponding xxx function.

Platforms tested:
Tested in heping, both serial and parallel.
2005-11-16 13:09:38 -05:00
Quincey Koziol
671187fd2b [svn-r11733] Purpose:
Code cleanup

Description:
    Added some comments about the thread-specific memory for the error and
function stacks.

    Changed H5close() to not use the function stack (since it causes it to
be re-enabled after shutting it down)

    Changed thread-safe semaphore code to not use dynamicly allocated memory.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4
    Too minor to require h5committest
2005-11-15 20:01:37 -05:00
Quincey Koziol
e70783203a [svn-r11732] Purpose:
More tests

Description:
    Add more tests for proper behavior of groups with different group
creation property settings.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4
    Solaris 2.8
2005-11-15 19:52:42 -05:00
Quincey Koziol
da16ec38eb [svn-r11730] Purpose:
Bug fix

Description:
    Correct use of H5Gget_objinfo() which recent compact group checkins
exposed: we were attempting to follow dangling soft links.

Solution:
    Don't follow links for H5Gget_objinfo() when initializing object tables
for h5dump.

Platforms tested:
    Solaris 2.8 w/64-bit enabled
    Linux 2.4
    FreeBSD 4.11 (sleipnir)
2005-11-15 19:46:30 -05:00
MuQun Yang
f76495cdf5 [svn-r11728] Purpose:
To support collective chunk IO, obtain the chunk addresses globally from one process.

Description:
Implement a call-back function to iterate B-tree to do the job.
Check in this code for major check-ins later.
Solution:

Platforms tested:
heping(Linux)
Should not be used by any library functions now, so won't affect library and tool tests.
No need to test on 3 platforms.


Misc. update:
2005-11-15 16:57:27 -05:00
Fang Guo
e2f0e6a176 [svn-r11727] Purpose:
Maintenance on Windows
Description:
Comment out H5_HAVE_ATTRIBUTE on windows
Solution:

Platforms tested:

Misc. update:
2005-11-15 16:14:04 -05:00
James Laird
0efd9ceadf [svn-r11726] Purpose:
Bug fix

Description:
Fixed bug in hl/src Makefile that was deleting y.tab.c.
Running bin/reconfigure changed a few other files as well (somebody
probably updated Makefiles.am but forgot to bin/reconfigure).

Solution:
Automake in its wisdom adds the line "rm *.tab.c" to every distclean
in every directory.  I assume that it assumes that such files are
generated during the build.  Supplied an empty distclean-compile
target to remove this line from the Makefiles.in.

Platforms tested:
mir, sleipnir, shanti
2005-11-15 14:20:06 -05:00
Fang Guo
5b83c94b9e [svn-r11725] Purpose:
Maintenace on Windows
Description:
Add in conversion .vcproj to intel format  for objcopy.vcproj and objcopydll.vcproj

Solution:

Platforms tested:

Misc. update:
2005-11-15 12:53:16 -05:00
Fang Guo
1fc0fa056d [svn-r11724] Purpose:
Maintenance on Windows
Description:
Add in conversion .dsp to .vcproj for objcopy.dsp and objcopydll.dsp
Solution:

Platforms tested:

Misc. update:
2005-11-15 12:52:04 -05:00
Fang Guo
4ab2eeb984 [svn-r11723] Purpose:
Add in two test project files (objcopy.dsp and objcopydll.dsp)
Description:

Solution:

Platforms tested:

Misc. update:
2005-11-15 12:45:06 -05:00
Fang Guo
b4f75bc7ba [svn-r11722] Purpose:
Maintenance on Windows
Description:
Add macro H5_HLDLL before newly checked in function  hid_t H5LTtext_to_dtype(const char *text);
Solution:

Platforms tested:
Windows XP with VS 6.0
Misc. update:
2005-11-15 12:41:53 -05:00
Fang Guo
a8e74b46fc [svn-r11721] Purpose:
Maintenance on Windows
Description:
Add tests for objcopy and objcopydll into batch file
Solution:

Platforms tested:
Windows XP with VS 6.0
Misc. update:
2005-11-15 12:38:31 -05:00
Fang Guo
9895837b76 [svn-r11720] Purpose:
Maintenance on Windows
Description:
Add new test objcopydll.dsp
Solution:

Platforms tested:
Windows XP with VS 6.0
Misc. update:
2005-11-15 12:37:29 -05:00
Fang Guo
6c45185693 [svn-r11719] Purpose:
Maintenance on Windows
Description:
Add in new test objcopy.dsp
Solution:

Platforms tested:
Windows XP with VS 6.0
Misc. update:
2005-11-15 12:36:42 -05:00
Fang Guo
7764d1e544 [svn-r11718] Purpose:
Maintenance on Windows
Description:
Add newly checked in files by Quincey into hdf5dll.dsp
Solution:

Platforms tested:
Windows XP with VS 6.0
Misc. update:
2005-11-15 12:34:28 -05:00
Fang Guo
df6c7524d1 [svn-r11717] Purpose:
Maintenance on Windows
Description:
Add newly checked in files by Quincey into hdf5.dsp
Solution:

Platforms tested:
Windows XP with VS 6.0
Misc. update:
2005-11-15 12:33:26 -05:00
Fang Guo
c423a4086b [svn-r11716] Purpose:
Maintenance on windows
Description:
Add in objcopy.dsp and objcopydll.dsp
Solution:

Platforms tested:
Windows XP with VS 6.0
Misc. update:
2005-11-15 12:31:56 -05:00
Raymond Lu
2daa718b13 [svn-r11715] Purpose: Bug fix
Description:  The last checkin to add #ifdef H5_HAVE_UNISTD_H before #include<unistd.h>
didn't work because no hdf5 library header file have been included in that stage.

Solution: Changed it to #ifndef WIN32.

Platforms tested: sleipnir g++ where the complaint happened.
2005-11-15 10:08:18 -05:00
Quincey Koziol
a1708eb023 [svn-r11712] Purpose:
New feature

Description:
    Check in baseline for compact group revisions, which radically revises the
source code for managing groups and object headers.

WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!
WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!

    This initiates the "unstable" phase of the 1.7.x branch, leading up
to the 1.8.0 release.  Please test this code, but do _NOT_ keep files created
with it - the format will change again before the release and you will not
be able to read your old files!!!

WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!
WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!  WARNING!!!!


Solution:
    There's too many changes to really describe them all, but some of them
include:
    - Stop abusing the H5G_entry_t structure and split it into two separate
        structures for non-symbol table node use within the library: H5O_loc_t
        for object locations in a file and H5G_name_t to store the path to
        an opened object.  H5G_entry_t is now only used for storing symbol
        table entries on disk.

    - Retire H5G_namei() in favor of a more general mechanism for traversing
        group paths and issuing callbacks on objects located.  This gets us out
        of the business of hacking H5G_namei() for new features, generally.

    - Revised H5O* routines to take a H5O_loc_t instead of H5G_entry_t

    - Lots more...

Platforms tested:
    h5committested and maybe another dozen configurations.... :-)
2005-11-14 21:55:39 -05:00
Raymond Lu
bea1e576c5 [svn-r11711] Purpose: Bug fix for Windows
Description: Windows doesn't have unistd.h file.

Solution: Put #ifdef H5_HAVE_UNISTD_H for #include<unistd.h>.

Platforms tested: fuss - simple change.
2005-11-14 17:05:22 -05:00
Albert Cheng
485edae92b [svn-r11710] Purpose:
Bug fix.

Description:
Removed a debugging print command in the edit script.

Tested in Redstorm.
2005-11-13 21:06:52 -05:00
Fang Guo
029355ade3 [svn-r11709] Purpose:
Maintenance on Windows
Description:
Fix typos
Solution:

Platforms tested:

Misc. update:
2005-11-11 16:54:53 -05:00
Pedro Vicente Nunes
b96e820618 [svn-r11708] Purpose:
documentation improve

Description:
added a more complete description for each function in the comments
that matches the online documentation

Solution:

Platforms tested:
solaris

Misc. update:
2005-11-11 14:39:40 -05:00
Albert Cheng
f70640457b [svn-r11696] Purpose:
Improvement

Description:
The previous HTML files strategy was to expect the very first comment
block is the copyright notice. That did not work well as more and more
other comments appear now.

Solution:
Changed the strategy to look for the only the essential body of copyright
notice.  This no longer verifies this body of text is a comment block. But
the previous strategy is not really bullet-proof either.

Platforms tested:
tested in heping.
2005-11-09 17:23:58 -05:00
Albert Cheng
9c0f8180e7 [svn-r11695] Purpose:
Improvement

Description:
The previous HTML files strategy was to expect the very first comment
block is the copyright notice. That did not work well as more and more
other comments appear now.

Solution:
Changed the strategy to look for the only the essential body of copyright
notice.  This no longer verifies this body of text is a comment block. But
the previous strategy is not really bullet-proof either.

Platforms tested:
tested in heping.
2005-11-09 17:23:58 -05:00
Raymond Lu
73d95bbae9 [svn-r11694] Purpose: Bug fix
Description: lex.yy.c for H5LTtext_to_dtype() has been failing to compile
on 64-bit SunOS.  It has malloc() call but doesn't include stdlib.h.

Solution:  Include stdlib.h in H5LTanalyze.l.

Platforms tested: shanti - simple change.
2005-11-09 15:15:03 -05:00
Raymond Lu
e5e17162c0 [svn-r11693] Purpose: Added copyright
Description: Put copyright in the new files for H5LTtext_to_dtype().


Platforms tested: fuss - simple change.
2005-11-08 16:58:31 -05:00
Fang Guo
1baf9cf104 [svn-r11692] Purpose:
Maintenance on Windows.
Description:
Update solution file
Solution:

Platforms tested:

Misc. update:
2005-11-07 17:58:24 -05:00
Fang Guo
8429c835ef [svn-r11691] Purpose:
Maintenance on Windows
Description:
Adding the new function H5LTtext_to_dtype() for converting text description to data type

Solution:

Platforms tested:
Windows XP
Misc. update:
2005-11-07 17:48:48 -05:00
Fang Guo
3f48ca1265 [svn-r11690] Purpose:
Maintenance on Windows
Description:
Adding the new function H5LTtext_to_dtype() for converting text description to data type
Solution:

Platforms tested:
Windows XP
Misc. update:
2005-11-07 17:48:05 -05:00
Raymond Lu
370d940cd0 [svn-r11689] Purpose: Bug fix
Description: The g++ on sleipnir had troubles to compile the H5LTtext_to_dtype()
code.

Solution: Fixed problems at different places.

Platforms tested: h5committest and g++ on sleipnir.
2005-11-07 17:14:02 -05:00
Quincey Koziol
0891038562 [svn-r11686] Purpose:
New feature

Description:
    Add in baseline "object copy" code from Peter [in the form of a new API
routine: H5Gcopy()].  There's still some work to do (like handling variable-
length datatypes and possibly support for references) and it hasn't been tested
on mounted files yet, but the core functionality is there and working
correctly.

    I've also got a set of patches to update the 1.6 branch with tweaks to
keep the branches mostly in sync, but Elena will kill me if I import them
before the 1.6.5 release is out... :-)

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committested
2005-11-06 22:13:53 -05:00
Raymond Lu
23e994958b [svn-r11683]
Purpose: Minor bug fix

Description: Static function test_text_dtype() has static subroutines defined after itself.  The gcc compiler on sleipnir complained.

Solution: put test_text_dtype() after subroutine's definition.

Platforms tested: sleipnir with gcc 4.0 where the complaints happened.  Simple change.
2005-11-04 16:29:23 -05:00
James Laird
1c709d9057 [svn-r11681] Purpose:
Updated RELEASE.txt

Description:
Mentioned that h5c++ and h5fc now support linking against shared libraries.

Platforms tested:
documentation change only
2005-11-04 15:16:34 -05:00
Quincey Koziol
96c039690f [svn-r11680] Purpose:
Code cleanup

Description:
    Clean up H5Dcreate a little, to prepare for coding standards discussion
today.

Platforms tested:
    Just eyeballed, too trivial to require testing.
2005-11-04 08:58:32 -05:00
Albert Cheng
613faa7bc5 [svn-r11678] Purpose:
Bug fix, feature.

Description:
Fix a bug to recognize "#xyz..." is a comment in the init file.
Add more binary data file types.
Added prunepath command.

Platforms tested:
heping.
2005-11-03 13:46:34 -05:00