Commit Graph

829 Commits

Author SHA1 Message Date
Scott Wegner
0b5f34bfa6 [svn-r15160] Purpose: Separate Windows function macro definitions to win32defs.h
Description:
In library code, we try not to use system calls directly, but instead use the HD{function} macro instead.  This way, we can map special versions of the call on particular systems.  Previously, it was all done in H5private.h.  However, in an effort to clean up platform-specific definitions, we move all of the Windows macros into a separate file, win32defs.h.  This way, we can use the non-Posix versions that Visual Studio sends warnings about.

Some macros are set specifically in the platform-specific header files.  Then, any macros left unset will be set by the "default" implementation in H5private.h.

This checkin also cleans up various source files to use the HD* macros when possible.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagiso, linew, smirom)
2008-06-05 16:39:30 -05:00
Albert Cheng
018ba9a701 [svn-r15136] Purpose:
bug fixes.

Description:
Added code to create an empty hdf5 (named h5diff_empty.h5) in order to test
if h5diff compares correctly an empty hdf5 vs. a non-empty one.

Tested:
Tested in kagiso of h5diffgentest itself.
Verified by h5dump that h5diff_empty.h5 was indeed empty.
Then "h5diff h5diff_empty.h5 h5diff_basic1.h5" returned 0 (should have
returned non-zero).
2008-06-04 12:14:23 -05:00
Quincey Koziol
6e196a7b66 [svn-r15134] Description:
Brought revision 15133 back from trunk:

        Fixed bug in h5ls that prevented relative group listings (like
    "h5ls foo.h5/bar") from working correctly.

Tested on:
    Mac OS X/32 10.5.3 (amazon)
2008-06-03 19:25:29 -05:00
Scott Wegner
73fe712356 [svn-r15125] Purpose: Cleanup unneeded Windows source
Description:
Previously, we maintained some source files that are commonly generated dynamically on other systems.  Now, we also generate them on Windows as well.  We should remove them from the repository so old versions are not accidentally used.

Also, clean up the project files to organize generator programs.

Tested:
VS2005 on WinXP
VS2005 on WinXP x64
VS.NET on WinXP
2008-06-02 14:59:45 -05:00
Scott Wegner
8953ecfe9d [svn-r15120] Purpose: Ignore Windows POSIX-Depreciation warnings in Visual Studio 2005
Description:
On Windows, we receive many compiler warnings because Microsoft has implemented many "security-enhanced" versions of POSIX functions.  However, the old versions still exist, so the warnings can be ignored.  By setting a preprocessor definition, we can disable many of these warnings.  On a typical HDF5 build, this reduces the number of warnings from ~1500 to ~600

Tested:
VS2005 on WinXP
2008-06-02 11:14:56 -05:00
Scott Wegner
475ce84ae6 [svn-r14986] Purpose: Add Windows fixes for new Fortran code.
Description:
There were a number of small tweaks we needed to make to add the new fortran_1_8 code on Windows.  We create new project files, add new source to them, add the test to our test suite, and fix a few typos in the Windows-specific source code.

Tested:
VS2005 on WinXP
2008-05-12 16:31:45 -05:00
Elena Pourmal
4b2c3c5e07 [svn-r14949] Maintenance: brought serial h5perf tool from trunk; use
svn merge -r 14824:14945 http://svn.hdfgroup.uiuc.edu/hdf5/trunk/perform
             command to bring changes in.

Platforms tested: kagiso with Intel compilers, smirom with GNU compiler
2008-05-06 15:51:39 -05:00
Pedro Vicente Nunes
eb9ba954a5 [svn-r14948] Add a test for the floating point user defined printf format
Usage is 

-m T, --format=T

Where T - is a string containing the floating point format, e.g '%.3f'

The test consists of writing a number with 7 fractional digits (default precision display of %f is 6 digits) and have the 7 digits displayed with 

-m %.7f fpformat.h5

Tested: windows, linux, solaris

Note: the output file was generated in linux, it may be possible that platforms other than the ones tested have a different representation of the number
2008-05-06 15:08:11 -05:00
Elena Pourmal
41bf2001b1 [svn-r14943] Maintenance: Added files missed in the previous check-in.
Platforms tested: bin/chkmanifest on kagiso
2008-05-06 14:27:02 -05:00
Elena Pourmal
0bfb17bf00 [svn-r14942] Maintenance: Merged new Fortran APIs and tests from trunk into hdf5_1_8 branch
(used svn merge -r 14505:14941 http://svn.hdfgorup.uiuc.edu/hdf5/trunk/fortran 
              command).
             Updated MANIFEST
             Disabled -O3 optimization for gcc 4.3 (long due check-in)

Platforms tested: kagiso with PGI compilers, smirom with g95 and v16 option, linew
2008-05-06 14:23:32 -05:00
Quincey Koziol
e66cb6fec6 [svn-r14861] Description:
Bring revision 14860 back to 1.8 branch, change log for rev 14860 is:

        Omnibus raw data I/O revisions, with wide-ranging changes and
refactoring, in order to prepare for implementing "fast append" feature.

        These changes remove the majority of the code duplication for raw data
I/O which has crept in over the last ten years and introduces a more object-
oriented design for operating on different types of dataset storage.

Description:
        Omnibus raw data I/O revisions, with wide-ranging changes and
refactoring, in order to prepare for implementing "fast append" feature.

        These changes remove the majority of the code duplication for raw data
I/O which has crept in over the last ten years and introduces a more object-
oriented design for operating on different types of dataset storage.

        Chunked storage no longer has it's own I/O routines, it is now handled
as either contiguous (if chunk is not pulled into the cache) or compact (if the
chunk is cached in memory).

        No bug or feature changes, at least intentionally... :-)

Tested on:
    Mac OS X/32 10.5.2 (amazon) w/production
2008-04-24 10:39:32 -05:00
Scott Wegner
ac378bcfb1 [svn-r14837] Purpose: Remove ohdr_gentst from Windows projects
Description:
The ohdr_gentst project exists in order to re-create test input files that are distributed with the source.  These projects aren't built by default on most platforms, and the source isn't distributed in release builds.  To avoid confusion and bloat, we remove the Windows version of this project.

Tested:
None, only removed
2008-04-14 10:15:03 -05:00
Albert Cheng
c1c885892f [svn-r14679] Removed item c++/examples/testexamples.sh. 2008-02-25 23:47:43 -05:00
Scott Wegner
dd7dcb5b07 [svn-r14668] Purpose: Backport of added Windows HL examples from trunk
Description:
The Windows suite of examples for HL C was a very small subset of the examples that exist for other platforms.  Now we have all of the HL C examples-- integrated into the VS projects files, and batch test scripts.
2008-02-25 11:46:02 -05:00
Elena Pourmal
069b52529e [svn-r14585] Maintenance after 1.8.0 release: Created HISTORY-1_8.txt file and prepared RELEASE.txt
for future entries.
                                 Changed version number to 1.8.0-snap0
                                 Added HISTORY-1_8.txt to MANIFEST
2008-02-14 11:17:48 -05:00
Elena Pourmal
eb6bf807d2 [svn-r14565] Maintenance: Renamed history file before creating a final HDF5 1.8.0 release tar ball. 2008-02-12 20:39:54 -05:00
Scott Wegner
62529d9b1e [svn-r14432] Purpose: Update Windows documentation concerning VS6
Details:
We no longer support Visual Studio 6.0, so we note it in the documentation.  Also, updated the path references in VS.NET documentation
2008-01-16 09:19:10 -05:00
Scott Wegner
9bc322e0dc [svn-r14431] Purpose: Fix MANIFEST
Description:
Minor edit to MANIFEST, delete a few entries I missed last time.  This brings it up to date.

Tested:
chkmanifest on smirom
2008-01-16 09:10:39 -05:00
Scott Wegner
194cf2ce7d [svn-r14429] Purpose: Initial MANIFEST update
Description:
Update the MANIFEST for the files I've just addeed/removed.
2008-01-16 09:02:13 -05:00
Quincey Koziol
d6e767c21d [svn-r14402] Description:
Add work-around to allow reading files that were produced with a buggy
earlier version of the library, which could create objects with the wrong
object header message count.  There is now a configure flag
"--enable-strict-format-checks" which triggers a failure on reading a file
with this sort of corruption (when enabled) and allows the object to be read
(when disabled).  The default value for the "strict-format-checks" flag is
yes when the "debug" flag is enabled and no when the "debug" flag is disabled.

	Note that if strict format checks are disabled (allowing objects with
this particular kind of corruption to be read) and the file is opened with
write access, the library will re-write the object header for the corrupt
object with the correct # of object header messages.

	This closes bugzilla bug #1010.

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Mac OS X/32 10.4.10 (amazon) in debug mode
        Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-01-13 00:37:00 -05:00
Elena Pourmal
e982a364fe [svn-r14390] Maintenance for VMS system before the final release:
Updated utilities test scripts to make output more legible; fixed some typos.
	Added four new expected output files to avoid false negative reports
	for the h5dump tests (for ones that expect to have error report in them).
        Updated MANIFEST to reflect the changes.
Platforms tested: 
	VMS server (more testing is on the way)
2008-01-09 17:27:55 -05:00
Quincey Koziol
04d73e7a0c [svn-r14363] Description:
Refactor file space allocation routines into separate source module.

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        Mac OS X/32 10.4.10 (amazon) in debug mode
2008-01-03 13:24:01 -05:00
Raymond Lu
8377804436 [svn-r14354] Bug fix for #956 where the element coordinates went wrong for dataspace selection. Added a test
for it, too.  This round of checkin isn't well tarnished yet.  I'll come back to work on Jan. 8. I'll revise it then. 

Tested it on kagiso, smirom, linew.
2007-12-20 16:09:58 -05:00
Elena Pourmal
619e6d1cb1 [svn-r14344] Maintenance on VMS system: updated testscript for h5diff and removed obsolete command file
Platforms tested: VMS server
2007-12-13 17:30:40 -05:00
Elena Pourmal
7519e48016 [svn-r14343] Maintenance for VMS: added more tests to the command file for h5dump testing
modified the file to save output into h5dump_output.txt file
                     removed obsolete test script file check.com
                     update MANIFEST to refelect the change
2007-12-13 15:34:19 -05:00
Elena Pourmal
98fb2db938 [svn-r14340] Maintenance for VMS system:
Skip one of the tests in flush2.c since it looks like VMS system
		flsuhes the file anyway (like on Winodws with DLLs)

		Renamed files family*.h5 that are used in backward compatibility
		testing to have only one '.' in a file name, otherwise VMS system
		becomes confused and test fails.

		Cleaned up the only test (Fortran multi-file test) that is failing on 
		VMS (C counterpart passesa).

		Added new script to facilitate the build process on VMS
		Updated MANIFEST

PLatforms tested: VMS server, kagiso and linew (minor changes)
2007-12-13 13:17:02 -05:00
Elena Pourmal
6c2c56c0a6 [svn-r14337] Maintenance: Added new install.com file to the list of files.
Platforms tested: ran bin/chkmanifest script on kagiso
2007-12-11 12:08:44 -05:00
Pedro Vicente Nunes
1b645ffd91 [svn-r14299] new feature: add support for h5repack to handle several global filters
usage is to repeat the -f option

tested: windows, linux, solaris
2007-11-28 15:30:43 -05:00
Quincey Koziol
2f36ea99d4 [svn-r14284] Description:
Add H5Lvisit_by_name() API routine to library.

	Eliminated all (five!) other group traversal routines and changed them
all to use the new API routine.

	Cleaned up output of h5ls & h5stat:
		- Issue error when requesting recursive traversal of a file
			with the "group info" flag, but no group given
		- Print info about root group in all(?) appropriate situations
		- Don't print "verbose" information about root group until the
			root group is in the list of objects to display
	(mostly because h5ls & h5stat had a different twist on traversing the
groups in a file that the other utilities)

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Mac OS X/32 10.4.10 (amazon) in debug mode
        Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-11-24 11:49:36 -05:00
Albert Cheng
a0c93eb2ed [svn-r14275] Removed all stream-vfd source code, both library and test.
Updated MANIFEST of the removal too.

Tested:
Kagiso and smirom.
2007-11-20 12:22:15 -05:00
Albert Cheng
b4f4670c81 [svn-r14270] Description:
Removed the stream-vfd from the basic library code.
(The stream-vfd source files are not removed yet but the MANIFEST has been
updated to NOT release those stream-vfd source files.)

Platforms tested:
Kagiso and smirom.
Then test the release tar ball in kagiso.
2007-11-19 22:43:58 -05:00
Pedro Vicente Nunes
5c16c09f91 [svn-r14259] New feature: removed one test and file from the h5diff shell script that prints an error
message that has an absolute path (invalid option), thus not suitable for the multi platform test
2007-11-13 16:49:07 -05:00
Scott Wegner
9743541227 [svn-r14255] Purpose: Add h5tinit.c to default Windows build process
Description:
Previously, we provided a static h5tinit.c with our Windows distribution, and provided instructions to optionally generate it.  Now, we will incorporate it as part of the default build process, to emulate other platforms more closely.

Tested:
VS6
VS2005
2007-11-13 10:17:49 -05:00
Raymond Lu
360da7eb00 [svn-r14244] Took out test/extlink_file.h5 because it's no longer used by external.c. 2007-11-07 17:06:45 -05:00
Quincey Koziol
71d3a0006a [svn-r14239] Description:
Add new test file to manifest.

	Switch to using latest version of H5Gopen().

Tested on:
	FreeBSD/32 6.2 (duty)
2007-11-06 09:40:31 -05:00
Quincey Koziol
637fa77ea7 [svn-r14203] Description:
Break up H5D source file into H5D/H5Dint/H5Ddeprec

	Attempt fix for "szip noencoder" build failure.

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-11 17:24:35 -05:00
Quincey Koziol
e5413fa795 [svn-r14202] Description:
Move H5Pregister our of old "compat v1.6" section and add it to the
versioned symbols.

	Add simple regression test for H5Pregister1()

	Split H5P.c source file into H5P/H5Pint/H5Pdeprec files.

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-11 16:09:42 -05:00
Pedro Vicente Nunes
e387120f94 [svn-r14200] added tests for XML output of attribute iteration orders (same calls as DDL )
tested: linux
2007-10-11 13:47:55 -05:00
Pedro Vicente Nunes
3026ace6ae [svn-r14182]
Added support for displaying several iteration orders on dataset attributes, 4 new tests in test script (name ascending, name descending, creation_order ascending, creation_order descending)
New h5 file is made on the generator program

Tested: windows, linux
2007-10-04 11:21:30 -05:00
Pedro Vicente Nunes
d0bcb06e7a [svn-r14172]
1)	added 5 new tests for the group creation order
2)	modified the h5dump test script to automatically generated non existing (new) output files
3)	cleaning of unused DDL files
4)	new modified DDL files include tcomp-3.ddl ( new form of named datatype) and the binary output files

tested : linux
2007-10-02 11:45:46 -05:00
Pedro Vicente Nunes
48eb736b68 [svn-r14165]
new file for h5dump
2007-10-01 09:52:55 -05:00
Quincey Koziol
94153c6c3d [svn-r14148] Description:
Add H5Rget_obj_type() to the API versioning and switch internal
routines to use H5Rget_obj_type2()

	Misc. other code cleanups, etc.

Tested on:
        FreeBSD/32 6.2 (duty)
        FreeBSD/64 6.2 (liberty)
        Linux/32 2.6 (kagiso)
        Linux/64 2.6 (smirom)
        AIX/32 5.3 (copper)
        Solaris/32 2.10 (linew)
        Mac OS X/32 10.4.10 (amazon)
2007-09-13 20:52:38 -05:00
Scott Wegner
43bb1ba8e5 [svn-r14138] 2007-09-10 14:14:08 -05:00
Quincey Koziol
cdd4606430 [svn-r14097] Description:
First real use of API versioning code, H5E routines switched to use
new API versioning scheme.

Tested on:
	Mac OS X/32 10.4.10 (amazon)
	FreeBSD/32 6.2 (duty)
	FreeBSD/64 6.2 (liberty)
	Linux/32 2.6 (kagiso)
	Linux/64 2.6 (smirom)
	Solaris/32 5.10 (linew)
2007-08-21 16:08:27 -05:00
Scott Wegner
2ab6b11aaf [svn-r14093] Purpose: Convert Windows projects to VS2005 format and support 64-bit Fortran
Description:
This checkin is another Windows project cleanup, and also extends our Windows support for 64-bit Fortran.  Project files are now in VS2005 format, rather than VS.NET.  A couple projects have been renamed to be more descriptive (*cstub rather than *_lib), and project settings make better use of build macros.  This will make them much easier to update in the future.

Tested:
VS2005 on WinXP 32-bit
VS2005 on WinXP x64
2007-08-16 13:28:20 -05:00
Scott Wegner
e039e5125c [svn-r14066] Purpose: Streamline Windows typegen projects
Description:
Previously the process of generating h5tinit.c, as well as the Fortran type files, was very manual on Windows.  For Fortran, the process included opening 4 different solutions, and running 4 different commands from the prompt.  I've made things very much more automated, and now only requires only building one project for either C or C/Fortran.  Running the commands to generate the file is done automatically.

Tested: VS.NET
2007-08-10 10:19:56 -05:00
Pedro Vicente Nunes
ce03465487 [svn-r14040]
new files added for h5import str test
2007-08-07 11:21:40 -05:00
Scott Wegner
7f22651492 [svn-r14034] Purpose: Remove forced symbol "gethostname@8" from Windows projects
Description:
Previously, we needed to force symbol definition "gethostname@8" for compatibility with old versions of Visual Studio.  It appears that Visual Studio no longer requires this, so we remove it.  This makes the build process on 64-bit much smoother.

Also minor updates to main documentation, command-line documentation, and removed codewarrior and INTEL docs.

Tested:
VS.NET
VS2005
chkmanifest
2007-08-02 15:06:31 -05:00
Vailin Choi
d65d8084ff [svn-r14023] Purpose:
reorganization.

Description:
move the h5stat tool into its own directory.

Platform tested:
kagiso.
2007-07-27 12:36:36 -05:00
Quincey Koziol
712c226038 [svn-r14010] Description:
Fix problem with dataspace messages where the version of the format
for a dataspace message could depend on the "use the latest format" flag from
the file after it was initially created.

	Also, move debuging routine into separate file.
	
Tested on:
        FreeBSD/32 6.2 (duty)
        FreeBSD/64 6.2 (liberty)
        Linux/32 2.6 (kagiso)
        Mac OS X/32 10.4.10 (amazon)
        Solaris/32 2.10 (linew)
2007-07-24 16:43:59 -05:00