Commit Graph

55 Commits

Author SHA1 Message Date
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
Bill Wendling
f6f5fc0c45 [svn-r3047] Purpose:
Bug fix
Description:
	When building in a different directory, we weren't picking up the
	header files correctly. The -I flag wasn't pointing to the
	correct place.
Solution:
	Changed the -I flag to point to the C++ source directory.
Platforms tested:
	Linux
2000-12-01 10:46:54 -05:00
Bill Wendling
c834f719ef [svn-r3046] Purpose:
Reversal of Patch
Description:
	I thought that the solaris boxen could handle the -Wc,<flag> flag
	(or, rather, that libtool would do the correct thing with their
	compilers). However, this isn't the case, apparently.
Solution:
	Removed the ``-Wc,-LANG:std'' flag and put it in the CPPFLAGS
	macro instead. This should cause it to be passed to the compiler
	only...one hopes...
2000-12-01 10:44:18 -05:00
Bill Wendling
dd675708fd [svn-r3044] Purpose:
Argh!
Description:
	Again the compiler doesn't like the -dlopen self flag when
	compiling...
Platforms tested:
	Linux
2000-11-30 15:37:45 -05:00
Bill Wendling
0d62839e12 [svn-r3039] Purpose:
Oops.
Description:
	Forgot to make the libraries static since we're not certain that
	they can be shared...
2000-11-30 15:00:19 -05:00
Bill Wendling
b253cfbbec [svn-r3037] Purpose:
Bug-ish fix
Description:
	Spurious warnings would show up if libtool was trying to pass the
	-LANG:std flag to the compile line.

	Also, if the library is compiled with -all-static, then it would
	complain about not finding dlopen and friends.
Solution:
	Used the libtool -Wc,<flag> option to pass the -LANG:std flag to
	the compile line.

	Used ``-dlopen self'' when compiling.
Platforms tested:
	Linux
2000-11-30 14:52:42 -05:00
Bill Wendling
42f2e2e08d [svn-r2940] Purpose:
Bug
Description:
	Compiler needed both the -instances=global and the -LANG:std flag
	to function.

	libtools spits out a warning about not being able to find the
	ANG:std library directory, but that's okay...it passes it to the
	linker anyway.
Platforms tested:
	Solaris (Arabica)
2000-11-15 16:16:11 -05:00
Bill Wendling
a8533e99af [svn-r2939] Purpose:
Bug
Description:
	When copying the --enable-production stuff, I forgot to change
	the CFLAGS to CXXFLAGS...
Platforms tested:
	Solaris
2000-11-15 16:13:09 -05:00
Bill Wendling
3fe3fde6f4 [svn-r2937] Purpose:
Feature Update
Description:
	Added ability to compile code as production, development, or
	profile with the appropriate flags...
2000-11-15 15:01:16 -05:00
Bill Wendling
488adf6670 [svn-r2936] Purpose:
Bug
Description:
	Solaris needs the ``-instances=global'' flag to make templates
	open to everyone.
Solution:
	Added
Platforms tested:
	Sun (Arabica)
2000-11-15 15:00:27 -05:00
Bill Wendling
a3282af132 [svn-r2932] Purpose:
Changed to handle tracing in C++ files.
Description:
	Pointed to the correct ``trace'' program (the one in hdf5/bin/)
Platforms tested:
	Linux
2000-11-15 13:00:04 -05:00
Bill Wendling
3c2314dcbb [svn-r2931] Purpose:
Changed to handle tracing in C++ files.
Description:
	Added case statements around the tracing logic.
Platforms tested:
	Linux
2000-11-15 12:59:28 -05:00
Bill Wendling
7243a3b7c2 [svn-r2926] Purpose:
Needed Dependencies file
2000-11-15 12:43:06 -05:00
Bill Wendling
a49f1fc636 [svn-r2924] Purpose:
Bug fix
Description:
	distclean was removing .C files.
Solution:
	It was trying to remove the .f90 extension, of which there wasn't
	one.
Platforms tested:
	Linux
2000-11-15 12:18:00 -05:00
Bill Wendling
f099d83060 [svn-r2920] Purpose:
Buglet fix...
Description:
        When configuring, configure would complain about there not being
        a confdefs.h file.
Solution:
        Added a src/H5config.h file which configure can generate. This
        can be used for configure stuff later, but is empty now.
Platforms tested:
	Linux
2000-11-15 11:40:42 -05:00
Bill Wendling
426be778aa [svn-r2918] Purpose:
Bug fix
Description:
	It would be nice if I'd done this correctly the first time.
Solution:
	Doh! NEeded to use the ``using'' keyword...
Platforms tested:
	Linux
2000-11-15 11:26:14 -05:00
Bill Wendling
8d6ec211c1 [svn-r2917] Purpose:
Bug fix
Description:
	Namespace wasn't being detected properly.
Solution:
	Changed it to do it properly (not putting the main() function in
	the namespace);
Platforms tested:
	Linux
2000-11-15 11:23:21 -05:00
Bill Wendling
927e5beba7 [svn-r2916] Purpose:
include file
Description:
	Added header file to the PUB_HDR macro so that it'll be
	installed with the library.
2000-11-15 11:17:49 -05:00
Bill Wendling
80429f7f45 [svn-r2914] Purpose:
Bug fix
Description:
	libtool complained that the library name didn't have a ``lib''
	prefix. Also, the $(top_srcdir) macro points to the top of the
	c++/ directory, which was messing up the -I$(top_srcdir)/src
	stuff. It needed to be changed to the correct value.
Solution:
	Made it so
Platforms tested:
	Linux
2000-11-15 11:06:32 -05:00
Bill Wendling
8dcb33c00e [svn-r2913] Purpose:
Bug fix
Description:
	Configure wasn't picking up the LT_STATIC_EXEC stuff from the
	top-level configure.
Solution:
	Added LT_STATIC_EXEC logic
Platforms tested:
	Linux
2000-11-15 11:04:48 -05:00
Bill Wendling
9f1175ee2c [svn-r2907] Purpose:
Bug FIx
Description:
	The Source file was renamed. Changed it to that name.
2000-11-14 18:26:33 -05:00
Bill Wendling
e558d37f0f [svn-r2904] Purpose:
Adding some of the config stuff. Binh-Minh should go through the
	others (and these) to see if they are correct.
2000-11-14 18:16:41 -05:00