Commit Graph

76 Commits

Author SHA1 Message Date
Bill Wendling
87bf7b5bf1 [svn-r4135]
Purpose:
    Bug Fix
Description:
    We long ago changed the compiler flags to pick out dependencies to
    -MM instead of -M so that only #include "filename.h" type headers
    will be put into the .depend file.
Solution:
    Changed this flag.
Platforms tested:
    Linux
2001-07-06 14:26:03 -05:00
Binh-Minh Ribler
22131bb2dd [svn-r3945]
Purpose:
    Changed due to bug fixed
Description:
    The dsets.cpp/test_compression test was disabled because it
    failed on eirene - some variable changed to a very large value.
Solution:
    The problem was fixed by Bill.  So I removed the #if defined (__linux__)
    to enable the test_compression again.
Platforms tested:
    eirene (linux)
2001-05-26 01:39:22 -05:00
Bill Wendling
c514abd496 [svn-r3934] Purpose:
Code Update
Description:
    Ported change from the 1.5 branch to the 1.4 branch where all HDF5
    include files are in quotes instead of angle brackets:

        #include "hdf5_file.h"

    instead of

        #include <hdf5_file.h>

Platforms tested:
    Linux
2001-05-15 16:28:04 -05:00
Bill Wendling
71173ca954 [svn-r3931] Purpose:
Fix
Description:
    Fixed to use the top-level bin/ directory instead of having the files
    copied here...
Platforms tested:
    Linux
2001-05-15 13:04:34 -05:00
Bill Wendling
6d76ebb8d9 [svn-r3805] Purpose:
Bug Fix
Description:
    If we need to specify a -R flag for dynamic libraries (like, in the
    case when we specify --with-hdf4), then this flag needs to be added
    to the linking line so that it will show up in the generated library
    and other programs linking to that library will be able to find the
    relevant libraries.
Solution:
    Added the DYNAMIC_DIRS macro to the link line.
Platforms tested:
    Arabica
2001-04-12 14:42:26 -05:00
Binh-Minh Ribler
81f61d5cb5 [svn-r3726]
Purpose:
    Problem suppressing
Description:
    The dsets.cpp/compression (write) test failed on eirene for
    1.4 branch.  I suspected that the problem had something to do with
    the word size (32 vs. 64), but I'm not sure.  Elena and Quincey
    agreed that we take the test out for now since we don't have
    a fix for it at this time.
Solution:
    Used #if defined (__linux__) to temporarily disable the
    test_compression test for this platform.
Platforms tested:
    arabica (solaris 2.7)
    eirene (linux 6.2)
2001-03-27 21:37:28 -05:00
Binh-Minh Ribler
8399082916 [svn-r3722] Purpose: Code cleanup and adding more test
Description:
    dsets.cpp:
        - Added routine's headers to be consistent with the C tests
        - Added the following tests (they are not in the C version
        test because they are C++ specific):
            + Test copying a user-defined type using DataType::copy
            + Test copying a user-defined type using DataType::operator=
            + Test copying a user-defined int type using DataType::operator=
            + Test copying an integer predefined type using a constructor
            + Test copying an integer predefined type using DataType::operator=

    th5s.cpp and tfile.cpp:
        - Changed routine's headers to be consistent with the C tests
        - Cleanup old couts and statements used during debugging

Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-26 22:00:16 -05:00
Binh-Minh Ribler
2d79c4652d [svn-r3720] Purpose: Bug fixes and code clean up - 1.4 branch
Description and Solution:

        - Predefined type objects become outdated when the application calls
        H5close and then H5open to use the library again.

        Solution:
            + Reimplemented PredType using enum type to obtain up-to-date
                values for predefined types, i.e. H5T_xxx_yyy's, when they
                are used.
            + Added to PredType its own version of getId() to return the
                appropriate predefined type id according to the enum value.
            + Made IdComponent::getId() a virtual function

        - Since Albert already fixed the "multiply defined RcsId" problem,
        removed the now become unnessary "#undef RCSID" from H5Include.h

        - Added a check for func_name != NULL in one of the Exception
        constructors because seg. fault. might occur in some situations.

        - It is more convenient to make a copy of a datatype, dataspace,
        or property list by using assignment operator

        Solution:
            + Added assignment operator to DataType, DataSpace, and
                PropList so that they will invoke H5Tcopy, H5Scopy,
                and H5Pcopy, respectively, instead of just simply
                copying the data members as for other classes.  So,
                now a type, space, or property list can be copied by
                either :
                        mytype = original_type, or
                        mytype.copy(original_type)
                Note that copy constructors are still just copying the
                data members.
            + Added an assignment operator to DataType that takes a
                predefined type.
            + Made IdComponent::operator= a virtual function

Platforms tested:
        arabica (sparc-sun-solaris 2.7)
2001-03-26 21:46:53 -05:00
Binh-Minh Ribler
b9a636874a [svn-r3719] Purpose:
Improve C++ API test output appearance - 1.4 branch
Description:
    The C++ API tests are not easy to be spotted because their output
    look similar to part of the C tests.
Solution:
    Added "C++ API:" in front of the C++ test titles.
Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-26 21:38:39 -05:00
cvs2svn
e201d20b00 [svn-r3682] This commit was manufactured by cvs2svn to create branch 'hdf5_1_4'. 2001-03-21 18:00:52 -05:00
Bill Wendling
cb7823388b [svn-r3645] Purpose:
Bug Fix
Description:
    The test programs weren't compiling correctly. They weren't added to
    the TEST_OBJ macro, so make didn't know about them.
Solution:
    Added them to the TeST_OBJ macro as in the C tests.
Platforms tested:
    Linux
2001-03-15 14:17:47 -05:00
Bill Wendling
29d2bf06bf [svn-r3631] Purpose:
Update
Description:
    Added the th5s test.
Platforms tested:
    Linux
2001-03-14 13:33:11 -05:00
Bill Wendling
6e160fa1e5 [svn-r3629] Purpose:
Feature Add
Description:
    Added "real" testing to the C++ library.
Platforms tested:
    Linux
2001-03-14 13:10:55 -05:00
Binh-Minh Ribler
e341ea6504 [svn-r3622]
Purpose:
    Adding tests to the C++ API 1.4 branch
Description:
    The C++ API in 1.4 branch has no formal testing yet.
Solution:
    Added tests for file, dataset, and dataspace interfaces.  I'm still
    working on other tests.
Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-13 23:42:20 -05:00
cvs2svn
1c47477b05 [svn-r3621] This commit was manufactured by cvs2svn to create branch 'hdf5_1_4'. 2001-03-13 23:42:20 -05:00
Binh-Minh Ribler
c5adbd01ac [svn-r3620]
Purpose: Updating as in 1.5 branch

Description:
	The C++ API source code was modified in 1.5 branch, mainly to
	improve usability in exception handlings.  Updated 1.4 C++
	source code to match.

Platform:
	arabica (sparc-sun-solaris 2.7)
2001-03-13 23:34:39 -05:00
Bill Wendling
517662fdce [svn-r3539] Purpose:
Bug Fix
Description:
    The RUNSERIAL and RUNPARALLEL macros aren't needed (and aren't set)
    for the C++ stuff and were causing errors when people tried to test
    the code.
Solution:
    Removed them
Platforms tested:
    Linux
2001-03-02 13:17:59 -05:00
Bill Wendling
5246af2c9d [svn-r3538] Purpose:
Bug Fix.
Description:
    When the user would do a ``make check'' without doing a ``make all''
    first, the tests in the examples directory wouldn't build correctly.
Solution:
    Added the tests to the TEST_PROGS macro instead of the PROGS macro.
Platforms tested:
    Linux
2001-03-02 13:16:29 -05:00
Bill Wendling
a2496b4a6f [svn-r3533] Purpose:
Bug FIx
Description:
    We weren't installing the C++ header files.
Solution:
    Added all of the *.h files to the PUB_HDR macro in the Makefile so
    that they'd be installed.
Platforms tested:
    Linux
2001-03-01 15:48:47 -05:00
Binh-Minh Ribler
b1ac03cdb5 [svn-r3337]
Purpose:
    Small bug fix
Description:
    A stub function has returned type hsize_t but returns -1.
Solution:
    Changed returned value from -1 to 0
Platforms tested:
    Solaris (arabica)
2001-01-31 11:04:24 -05:00
Bill Wendling
f82c9383c6 [svn-r3293] Purpose:
Fixup
Description:
    We were specifying a config file for the C++ stuff and it didn't need
    one. This would cause problems with compiling the C++ stuff since it
    wouldn't get the correct H5config.h file.
Solution:
    Removed support for it.
Platforms tested:
    Eirene
2001-01-16 13:40:26 -05:00
Binh-Minh Ribler
d24bacb8a4 [svn-r3199]
Purpose: bug fix

Description:
	I found a couple of places where virtual destructors were missing
	and could cause small memory leaks.  Also, some destructors were
	not virtual when they should be.

Solution:
	- added virtual destructors, which also free dynamically allocated
	  memory
	- added virtual to several destructors
	- also, fixed several typos

Platforms tested:
	Solaris 2.7 (arabica)
2000-12-23 08:17:32 -05:00
Bill Wendling
95d5ff5a11 [svn-r3146] Purpose:
Bug Fix?
Description:
	Possible that some makes don't like a trailing \ at the end of a
	comment.
Solution:
	Removed it
Platforms tested:
	Linux
2000-12-15 18:25:35 -05:00
Binh-Minh Ribler
1aec17231d [svn-r3122] Purpose:
Fix and improve

Description:
        - Put functions that are common to H5File and Group into a
          prototype class, CommonFG.  I didn't do that before because
          of the fear of the consequences of multiple inheritance, since
          H5File and Group already inherit from different super classes.
          I recently read a C++ book and learned to use MI more safely.
          This change reduced some more of code redundancy.
        - Added missing const to some function parameters

Platforms tested:
        Solaris/CC 5.0 (arabica)
2000-12-13 08:06:57 -05:00
Binh-Minh Ribler
9cbeb3c53f [svn-r3121] Purpose:
Fix and improve

Description:
	- Put functions that are common to H5File and Group into a
	  prototype class, CommonFG.  I didn't do that before because
	  of the fear of the consequences of multiple inheritance, since
	  H5File and Group already inherit from different super classes.
	  I recently read a C++ book and learned to use MI more safely.
	  This change reduced some more of code redundancy.
	- Added missing const to some function parameters
	- Added missing return statements for some functions.

Platforms tested:
	Solaris/CC 5.0 (arabica)
2000-12-12 21:15:31 -05:00
Bill Wendling
8343f2a687 [svn-r3115] Purpose:
Doh!
Description:
	When adding the examples directory to the testing, forgot to
	remove it from the other scripts in the makefile since it would
	then be run twice.
Solution:
	Removed it (saved the old code)
Platforms tested:
	Hey! Trust me :)
2000-12-12 14:24:04 -05:00
Binh-Minh Ribler
84fadb9f74 [svn-r3114] Purpose: Fix
Description:
	Dec CC compiler doesn't support some new c++ features.
	Some typos caused compilation erros on Dec Alpha.

Solution:
        - Added macro BOOL_NOTDEFINED to define bool type on Dec
          Alpha (gondolin) since its compiler doesn't support bool.
	- Added macro NO_STATIC_CAST to prevent the use of the new
	  c++ feature static_cast since Dec CC compiler doesn't support.
	- Added const to parameters of some functions to match the
	  functions' declaration and definition.  Typos errors and
	  Dec CC complained.

Platform:
	Solaris (arabica).  Also tried to build on Dec Alpha but still
	not linked due to some missing compiler flags; its compilation
	went fine though.
2000-12-11 23:40:09 -05:00
Bill Wendling
054fa7d35e [svn-r3107] Purpose:
Adding Flag
Description:
	Testing to see if the C++ compiler can handle the ``static_cast''
	keyword.
2000-12-11 09:30:33 -05:00
Bill Wendling
dc08de60a6 [svn-r3100] Purpose:
Fix
Description:
	When not building in the same directory, we needed to tell the
	checker wherre to look for files.
Solution:
	Put $(srcdir) before things which needed it.
Platforms tested:
	Linux
2000-12-08 13:28:02 -05:00
Bill Wendling
4aab9c01df [svn-r3097] Purpose:
Add
Description:
	Adding a small amount of testing to the C++ library until "real"
	testing can be created. (We use the examples).
Platforms tested:
	Linux
2000-12-08 11:15:00 -05:00
Bill Wendling
7548217cb4 [svn-r3096] Purpose:
oops
Description:
	I somehow checked in some test Makefile.in that I was working on.
	Sorry.
2000-12-07 17:32:10 -05:00
Bill Wendling
0d855a875e [svn-r3095] Purpose:
Fix again
Description:
	Needed to change the .C to .cpp in this depend module.
2000-12-07 16:43:02 -05:00
Bill Wendling
82c9848b2d [svn-r3094] Purpose:
Fix
Description:
	Hopefully the last fix in the .C -> .cpp suffix change saga.
	Forgot to tell the commence/conclude files that the suffix has
	changed
2000-12-07 16:41:53 -05:00
Bill Wendling
b7daa5d7fd [svn-r3091] Purpose:
Fix
Description:
	Needed to change the extention to the file configure expects to
	be in the source directory when Binh-Minh changed the extensions
	for all the files.
Solution:
	Did just that.
2000-12-07 14:29:29 -05:00
Bill Wendling
f271832d0d [svn-r3090] Purpose:
Fix
Description:
	Windows couldn't handle the .C extension. The filenames had to be
	changed to *.cpp instead.
Solution:
	Changed in the Makefiles to accomodate said change.
Platforms tested:
	Eyeballed.
2000-12-06 22:43:42 -05:00
Binh-Minh Ribler
4e615c2188 [svn-r3089] Renamed create.C to create.cpp 2000-12-06 20:13:17 -05:00
Binh-Minh Ribler
8b32e8d742 [svn-r3088] Renamed writedata.C to writedata.cpp 2000-12-06 20:12:13 -05:00
Binh-Minh Ribler
c2885f09c4 [svn-r3087] Renamed readdata.C to readdata.cpp 2000-12-06 20:11:47 -05:00
Binh-Minh Ribler
e157b311b6 [svn-r3086] Renamed h5group.C to h5group.cpp 2000-12-06 20:11:23 -05:00
Binh-Minh Ribler
9758b5a14c [svn-r3085] Renamed extend_ds.C to extend_ds.cpp 2000-12-06 20:11:00 -05:00
Binh-Minh Ribler
146482863a [svn-r3084] Renamed compound.C to compound.cpp 2000-12-06 20:10:27 -05:00
Binh-Minh Ribler
6bf869bd73 [svn-r3083] Renamed chunks.C to chunks.cpp 2000-12-06 20:09:22 -05:00
Binh-Minh Ribler
b337b85b13 [svn-r3082] Purpose:
Renaming source files for portability
Description:
        Removed *.C files after adding the corresponding *.cpp files.
Platforms tested:
2000-12-06 19:50:09 -05:00
Binh-Minh Ribler
0ed058b1c0 [svn-r3081]
Purpose:
	Renaming source files for portability
Description:
	Removed *.C files after adding the corresponding *.cpp files.
Platforms tested:
2000-12-06 19:46:58 -05:00
Binh-Minh Ribler
f148ff3caf [svn-r3080]
Purpose:
	Support portability
Description:
	I forgot that source file extension .C will not work on Windows.
Solution:
	Changed all source file from *.C to *.cpp for portability.
Platforms tested:
	arabica (sparc-sun-solaris 2.7)
2000-12-06 19:04:08 -05:00
Binh-Minh Ribler
7df8cd5cfe [svn-r3079] Purpose: bug fix - by C API
Description:
	The prototype of two C API functions, H5Tget_offset and
	H5Sget_simple_extent_npoints was changed to fix bug #446,
	resulting in the need for updating the two corresponding
	C++ API functions.

Solution:
	- Changed the return type of AtomType::getOffset from size_t
	  to int, and the error return value from 0 to -1.
	- Changed the return type of DataSpace::getSimpleExtentNpoints
	  from hsize_t to hssize_t, and the error value from 0 to -1.

Platforms tested:
	arabica (sparc-sun-solaris 2.7)
2000-12-05 23:59:37 -05:00
Bill Wendling
b2992ce841 [svn-r3076] Purpose:
New Flag
Description:
	Added a test to see if the C++ compiler can handle the bool
	datatype. If not, then it defines the BOOL_NOTDEFINED macro.
2000-12-05 01:39:11 -05:00
Bill Wendling
e552b96ce3 [svn-r3074] Purpose:
Improvement
Description:
	Made the Makefiles better.
Solution:
	Added standard macros concerning where things are place. Like
	libraries and so forth.
Platforms tested:
	Linux
2000-12-04 15:25:14 -05:00
Bill Wendling
4a7a715c0d [svn-r3049] Purpose:
YABF
Description:
	Needed to add the source directory for the built HDF5 library.
Solution:
	Added -I../../src to the compile flags.
Platforms tested:
	Linux
2000-12-01 11:50:25 -05:00
Bill Wendling
570713c289 [svn-r3048] Purpose:
Refix
Description:
	The C++ stuff also needs the main HDF5 headers.
Solution:
	Added the flag to do just that.
Platforms tested:
	Linux
2000-12-01 10:57:04 -05:00