Commit Graph

970 Commits

Author SHA1 Message Date
Patrick Lu
f7cd022ac4 [svn-r1033] added some calls to get the time elapsed on WIN NT 1999-01-25 12:40:54 -05:00
Robb Matzke
a2b8da49db [svn-r1032] Changes since 19990118
----------------------

./tools/h5tools.c
	Strings are not converted to null-padding before being
	printed; they are printed with whatever byte values appear in
	the file.

./tools/h5ls.c
	Now able to display attribute data type and data.

	Added a `-f' or `--full' switch which causes the full name of
	each object to be displayed instead of just the base name.

	Added a `-r' or `--recursive' switch that recursively prints
	the contents of groups, avoiding cycles.

	More bulletproofing for non-printable characters in things
	like object names, attribute names, and comment strings. We
	don't want listing a file to send termal escape sequences
	because it's sometimes possible to execute commands that way.

	Since h5ls doesn't usually use quotes around object names we
	must sometimes escape space characters.

	External files are listed in a table to make the output less
	confusing.

./tools/h5tools.c
./tools/h5tools.h
	Changed h5dump() to h5dump_dset() and added h5dump_mem(). Also
	make h5dump_fixtype() public.

./test/dtypes.c
	Wrote some data to an attribute to test h5ls attribute
	printing.

./src/H5ACprivate.h
./src/H5Apublic.h
./src/H5Dprivate.h
./src/H5Dpublic.h
./src/H5Epublic.h
./src/H5Fprivate.h
./src/H5Fpublic.h
./src/H5Gprivate.h
./src/H5HLprivate.h
./src/H5Oprivate.h
./src/H5Ppublic.h
./src/H5RApublic.h
./src/H5Rpublic.h
./src/H5Spublic.h
./src/H5Tpkg.h
./src/H5Tpublic.h
./src/H5Vprivate.h
./src/H5Zpublic.h
./src/H5private.h
./src/H5public.h
	Reindented function prototypes after `HDF5API' was added. Also
	rewrapped long lines.

./src/H5Flow.c
	Added an `#ifdef WIN32' around an unused variable.

./src/H5api_adpt.h
	Removed extra carriage returns inserted by "broken" operating
	system.

./src/H5Dprivate.h
./src/H5Oprivate.h
./src/H5Vprivate.h
./src/H5private.h
	Removed extraneous inclusion of H5api_adpt.h since it's
	included in H5public.h which is included by everything.

./src/Makefile.in
	Added H5api_adpt.h to the list of public header files to fix
	broken `make install'.
1999-01-21 13:33:39 -05:00
Patrick Lu
bb776bacbf [svn-r1031] added necessary info to export info to the dll 1999-01-21 11:49:37 -05:00
Patrick Lu
67657f93ff [svn-r1030] added necessary info to export functions to dll 1999-01-21 11:18:23 -05:00
Patrick Lu
747bb3f9fd [svn-r1029] added the necessary information to make a dll 1999-01-21 11:15:32 -05:00
Patrick Lu
6778cd8ce5 [svn-r1028] new include file that is needed on NT to export functions and gloabls in a dll 1999-01-21 11:11:12 -05:00
Quincey Koziol
ba57f7a460 [svn-r1027] Added CVS Revision and ID tags so we can track the snapshots more effectively. 1999-01-20 13:04:56 -05:00
Robb Matzke
ff79c02fc4 [svn-r1026] Changes since 19990118
----------------------

./tools/h5tools.c
	Strings are not converted to null-padding before being
	printed; they are printed with whatever byte values appear in
	the file.
1999-01-20 09:58:12 -05:00
Patrick Lu
e807698e9f [svn-r1025] added new project files for the alpha versions and the dll version 1999-01-19 12:31:34 -05:00
Paul Harten
7b9ce8a96c [svn-r1024] Purpose:
Bug fix

Problem:
    When -with-hdf4 option is selected during configure,
    no machine type found for HDF4 header file hdfi.h.

Solution:
    Modify hdf5/config/linux file:
    -D__i386 to be added to CPPFLAGS.

Platform tested:
    linux(penfold)
1999-01-19 10:00:30 -05:00
Robb Matzke
a2db22ab74 [svn-r1023] Changes since 19990105
----------------------

./INSTALL
./doc/html/Compression.html
./doc/html/Filters.html
	Disassociated GNU from zlib.  Did not change the introduction
	which incorrectly states that compression in hdf5 is available
	only if GNU gzip is available (should read zlib).

	Changed a typo in INSTALL to match what is documented in
	various other places: that zlib 1.1.2 (not 1.0.2) or better is
	required for compression.

	Added a reference to the main zlib web page in various places.

./src/H5Fistore.c
	Fixed a typo in a comment.

./src/H5Flow.c
	Removed carriage returns from the end of lines.

./test/dsets.c
	The deflate compression tests are still run but `-SKIP-' is
	printed instead of `PASSED' if the zlib library was not
	detected at configuration time. The tests check that the
	compression layer (H5Z) is correctly bypassed.
1999-01-18 12:54:16 -05:00
Patrick Lu
d10cb54a94 [svn-r1022] changed the macro for FILE to be FILENAME since it conflicted with a macro
in a windows header.
1999-01-12 15:55:21 -05:00
Paul Harten
2362b4e0f0 [svn-r1021] Purpose:
Bug fix

Problem:
    Segmentation fault when attempting to free NULL or uninitialized pointers.
    Problem noticed on Linux and HPUX10.20 platforms.

Solution:
    Initialialize the pointer to NULL.  Execute the "free" statement
    upon the condition that the pointer is not equal to NULL (i.e. after the
    allocation has taken place.)

Platform tested:
    Linux, HPUX10.20, Solaris2.5
1999-01-12 10:48:18 -05:00
Patrick Lu
6c30f0ae16 [svn-r1020] I messed the last one up again. sorry this should be the last time. 1999-01-11 15:58:36 -05:00
Patrick Lu
846de763b3 [svn-r1019] the last version I checked in was not ocmpletely correct. 1999-01-11 14:46:38 -05:00
Patrick Lu
58295f0c15 [svn-r1018] need to put a fix for a bug in the Microsoft compiler. 1999-01-11 14:09:17 -05:00
Patrick Lu
adc514bf96 [svn-r1017] added new projects into the all project for a few new test programs.
also updated the config file in there
1999-01-11 12:28:54 -05:00
Robb Matzke
ed9abc7612 [svn-r1016] *** empty log message *** 1999-01-07 12:14:55 -05:00
Albert Cheng
47f3d57c00 [svn-r1015] Got rid of some warning messages.
Tested in O2K.
1999-01-07 11:39:27 -05:00
Albert Cheng
54604e8fc5 [svn-r1014] Switched the order of the assert and HRETURN_ERROR statements
in the FUNC_ENTER_INIT to eliminate the unreachable statement
compiler warning.  Tested in O2K.
1999-01-07 09:44:41 -05:00
Robb Matzke
4a6110d41b [svn-r1013] *** empty log message *** 1999-01-07 06:45:55 -05:00
Robb Matzke
db48cdc44e [svn-r1012] Changes since 19981217
----------------------

./tools/h5ls.c
        Displays enumeration type information.

./tools/h5tools.c
        Displays enumerated data using symbol names.
1999-01-07 06:42:27 -05:00
Robb Matzke
4f7e218959 [svn-r1011] Changes since 19981217
----------------------
./test/dtypes.c
./test/enum.c           [NEW]
        Added support for enumeration data types.

./test/fillval.c
./test/istore.c
        Fixed memory leaks during error handling.
1999-01-07 06:42:04 -05:00
Robb Matzke
504aa95bd9 [svn-r1010] Changes since 19981217
----------------------

./src/H5.c
./src/H5private.h
        Renamed `library_initialize_g' to `H5_libinit_g' to make it
        conform to our naming scheme.

./src/H5I.c
        Fixed a bug in H5I_dec_ref() that caused the return value to
        always be zero instead of the new reference count.

./src/H5.c
./src/H5Odtype.c
./src/H5T.c
./src/H5Tconv.c
./src/H5Tpkg.h
./src/H5Tprivate.h
./src/H5Tpublic.h
        Added support for enumeration data types.

./src/H5RA.c
        Renamed H5T_insert() to H5T_struct_insert() and added
        H5T_enum_insert().

./src/H5RA.c
./src/H5Shyper.c
        Added casts to size_t for the third argument of memcpy() to
        shut up a warning message from insure++.

./src/H5T.c
        Changed "can't" to "unable to" in some error messages to be
        more consistent.

./src/H5detect.c
        If fork() or waitpid() are unavailable then we assume no
        alignment constraints. Hopefully this is the case only on NT
        and Intel CPU's don't have alignment constraints.

./src/H5public.h
        Include <limits.h> because the H5T_NATIVE_CHAR macro needs the
        definition for CHAR_MIN.
1999-01-07 06:41:25 -05:00
Robb Matzke
04bec43fa2 [svn-r1009] *** empty log message *** 1999-01-07 06:37:42 -05:00
Robb Matzke
2578cee601 [svn-r1008] Changes since 19981217
----------------------

./MANIFEST
        Removed some ddl files from tools/testfiles that are no longer
        part of CVS.  Added new enum.c test.

./configure             [REGENERATED]
./configure.in
        Changed printf long long format detection to favor `L' over
        `ll'.
1999-01-07 06:37:16 -05:00
Quincey Koziol
0825a0bcd5 [svn-r1007] Updated with missing files. 1999-01-06 16:58:34 -05:00
Quincey Koziol
847043cf52 [svn-r1006] Updated output against the current version of the HDF4 dumper in CVS. 1999-01-06 16:27:48 -05:00
Ruey-Hsia Li
f4ebcffc65 [svn-r1005] Reflected the changes in ddl to the example. 1999-01-06 15:57:54 -05:00
Paul Harten
2aefbf7603 [svn-r1004] Purpose:
Conform closer to other test print-out.

Solution:
    Added "All h5dump tests passed." statement to output
    of testh5dump.sh when appropriate.  Similarly, added
    "All h5toh4 tests passed." statement to output of
    testh5toh4 when appropriate.

    Also, added the testing of converting H5 files with
    loop pathways into H4 files with recursive references.

Platforms tested:
    Solaris2.5, Digital Unix 4.0
1999-01-05 14:40:32 -05:00
Quincey Koziol
b381963715 [svn-r1003] Fixed a couple of typos 1999-01-04 19:09:05 -05:00
Paul Harten
01eb265261 [svn-r1000] Purpose:
Conform closer to other test print-out.

Problem:
    Multiple "PASSED" statements for single test results when test involves
    conversion of multiple files.  Should be single "PASSED" statement for
    test results.

Solution:
    "*FAILED*" statement given if conversion fails for any file.  Differences
    given between expected results and actual results for each file that fails.
    "PASSED" statement given when conversion is successful for all files.

Platform tested:
    Solaris2.5
1998-12-30 16:15:03 -05:00
Frank Baker
ac66b7eae0 [svn-r994] Added h5toh4. 1998-12-28 10:15:16 -05:00
Paul Harten
4eab315de2 [svn-r989] Purpose:
Bug fix

Solution:
    Have warning messages go to stderr instead of stdout.

Platform tested:
    Solaris2.5
1998-12-22 13:37:47 -05:00
Paul Harten
a88aa59718 [svn-r988] Purpose:
New feature, Documentation

Solution:
    Changed h5toh4 testing output to more closely resemble other HDF5
    testing output.
    Also added documentation to describe the puposes of the
    conversion test files.

Platform tested:
    Solaris2.5
1998-12-22 13:36:19 -05:00
Ruey-Hsia Li
be41a8feed [svn-r986] Defined <data> and <string> in ddl.html.
Updated the current status of dumper.
1998-12-21 17:54:16 -05:00
Frank Baker
82fb21b613 [svn-r985] Checking in changes from "HDF5 Release 1.0" CVS branch that have not yet
been checked into "HDF5 Development" branch.

General
=======
	Various "copy edit" types of repairs.
	Revisions to document cross-linking.
	Added structural links tying all docs together (banners
	   at top and bottom of documents, similar to Reference Manual
	   banners of the Beta release).
	Set background color to white in all documents.

NCSAfooterlogo.gif
hdf2.jpg
	New image files to make the documents more self-contained
	(i.e., to prevent loading images from NCSA and HDF home servers).

index.html
	Redesigned to isolate links external to the installation
	in a single location.


Intro to HDF5
=============
H5.intro.html
	Fixed banner linking Intro to other docs.
	Set all URLs to be relative within the distribution; nothing
	   points back to the HDF server.
	Updates to "Limits of the Current Release" and "Changes in
	   the Current Release."


HDF5 User's Guide
=================
	Changed several User Guide section titles such that all
	   sections that are primarily about a particular interface
	   are now titled in the format "The xxxxx Interface (H5x)".

H5.user.html
	Commented out links to developer docs since they are marked
	   in MANIFEST as not being for distribution in the release.
	Removed 2nd and 3rd indices from page.
	Changed "freeform" lists of sections (TOCs) to aligned tables.

Datatypes.html
	Removed the sentence "I'm deferring definition until later
	   since they're probably not as important as the other data
	   types." from Section 3.3, "Properties of Date and Time
	   Atomic Types."
	Added info regarding 'char' versus 'string' datatypes.  Added
	   as Section 3.7, "Character and String Datatype Issues."

References.html
	Commented out substantial material (at end of document) from
	   References planning document that is not appropriate for
 	   the User Guide but that is worth keeping around.

Groups.html
	Final edits from elimination of "current working group."


HDF5 Reference Manual
=====================
	Removed "Draft" from the <title>__</title> lines.

RM_H5Front.html
	Removed 2nd and 3rd indices from page.
	Changed "freeform" lists of sections (TOCs) to aligned tables.

RM_H5F.html
RM_H5P.html
	Add file mounting information.
1998-12-21 17:52:56 -05:00
Ruey-Hsia Li
4952ed4a36 [svn-r984] Added ./tools/testfiles/tloop-1.ddl.
Removed ./tools/testfiles/tattr-4.ddl
        ./tools/testfiles/tcomp-4.ddl
        ./tools/testfiles/tdset-3.ddl
        ./tools/testfiles/tdset-4.ddl
        ./tools/testfiles/tgroup-3.ddl.
1998-12-21 17:49:13 -05:00
Ruey-Hsia Li
ee9cac2af9 [svn-r983] Added tests in testh5dump.sh.
Features of this version of dumper

  *  loop detection

  *  data type
     **  atomic type
         -> H5T_INTEGER (H5T_STD_XXXXX)
         -> H5T_FLOAT (H5T_IEEE_XXXXX)
         -> H5T_STRING (H5T_C_S1, H5T_FORTRAN_S1)
     **  committed/transient/unamed compound type

  *  data space
     **  scalar space
     **  simple space

  *  dataset
     dumper can display dataset's
     **  attribute
     **  type
     **  space
     **  data

  *  group
     dumper can display group attributes and group members which include
     **  named/unamed data type
     **  group
     **  dataset
     **  softlink

  *  attribute
     dumper can display attribute's
     **  type
     **  space
     **  data

  *  hard link

  *  soft link

  *  format of data
     ** fit on 80 columns
     ** end of line after each row
        (more work will be done on data.)
1998-12-21 17:45:01 -05:00
Ruey-Hsia Li
38309fb3f6 [svn-r982] Added test for loop detection.
Updated expected output for dumper automatic tests.
Removed redundant tests.
1998-12-21 17:34:42 -05:00
Robb Matzke
1d8e6cf581 [svn-r979] Snapshot 1998-12-21 05:10:36 -05:00
Paul Harten
caeb6c614f [svn-r978] Purpose: Bug fixes
Problems:
    There were three separate bugs in the h5toh4 converter worked on.
    They were:

    1) When a loop was detected, the H4 file was missing references
    to paths which were available in the H5 file.

    2) When an H4 SDS or Vdata was created from a H5 dataset, the H4
    object was referenced in the root group, instead of the correct
    Vgroup.

    3) The FIRST path taken to an object for the h5toh4 conversion
    could not involve a SOFTLINK.

Solutions:
    The bug fixes were:

    1) All of the associated references to available paths which
    occur in the H5 file, now appear in the H4 file.

    2) After an H4 SDS or Vdata is created from a H5 dataset, the H4
    object is tag/ref'ed in the appropriate Vgroup.

    3) The FIRST path taken to an H5 object for the H5toh4 conversion
    may involve a HARDLINK, a SOFTLINK, or neither.  The same is
    true of any additional paths to the same object.

Platform tested:
    Solaris2.5
1998-12-20 23:05:28 -05:00
Paul Harten
7d9d6add9d [svn-r977] Purpose:
New feature

Solution:
    Added some new new tests to show that paths involving HARDLINKS
    and paths involving SOFTLINKS convert existing objects from H5 to
    H4 the same way that paths involving no links does.

Platform tested:
    Solaris2.5
1998-12-20 22:50:15 -05:00
Robb Matzke
03532b98d4 [svn-r976] Snapshot 1998-12-19 04:38:16 -05:00
Ruey-Hsia Li
bf0208d474 [svn-r975] Put back Paul's updates. 1998-12-18 10:02:13 -05:00
Robb Matzke
4797dc9771 [svn-r974] Snapshot 1998-12-18 04:27:28 -05:00
Ruey-Hsia Li
c91120b4b8 [svn-r973] Added tests for scalar data space, string data type, loop detection and
compound data type.
1998-12-17 16:53:07 -05:00
Robb Matzke
09aaf83332 [svn-r971] Changes since 19981214
----------------------

./INSTALL
	Added warning that enabling debugging code can adversely
	affect performance even when the debugging isn't turned on at
	run-time. Performance testing shows that under certain
	circumstances (like data type conversions of compound types)
	the H5_timer functions, although only a few lines each,
	contribute a fairly large percent to the execution time.

./src/H5T.c
./src/H5Tpkg.h
./src/H5Tpublic.h
	Improved the H5Tunregister() function to make unregistering
	more flexible.  It takes the same arguments as H5Tregister()
	but also accepts wild cards.  All conversion functions that
	match the H5Tunregister() search criteria are removed from the
	global type conversion table.

	The H5Tregister_hard() and H5Tregister_soft() were combined
	into a single function called H5Tregister() which is the
	counterpart to H5Tunregister(). A new `persistence' argument
	was added to differentiate between the two types of conversion
	functions.

	The application is allowed to register a hard conversion
	function for the no-op conversion path although the library
	isn't obligated to call it (it usually does). This is mostly
	for completeness, but the application might use it to help
	determine if the raw data pipeline was able to use the
	optimized path for the case when no type conversion is
	necessary. The library doesn't allow this path to be
	unregistered although the application can redefine it as often
	as it likes.

	Fixed the type conversion tables in preparation for MT-safety
	and to fix previosly-known design bugs wrt. unregistering
	conversion functions or changing the C function associated
	with a conversion path. The MT-safety stuff is documented in a
	separate white paper.

	Increased the conversion function debugging name from 9
	characters to 31 characters so the output can be more
	descriptive.

	Moved conversion path statistics from the H5T_cdata_t member
	into the conversion path itself.  This makes H5T_cdata_t
	contain only application-visible data structures.

./src/H5A.c
./src/H5D.c
./src/H5Ofill.c
./src/H5P.c
./src/H5T.c
	Improved the way type conversion functions are called so the
	caller doesn't have to check for data type debugging and
	increment type conversion timers and statistics.

	Changed check for no-op conversion since it is now
	application-definable and there may even be more than one
	definition at a time in a multi-threaded application (one
	thread might be using the no-op conversion path when some
	other thread changes its definition -- the first thread still
	sees the original defintion until it's done with the
	operation).

./doc/html/Datatypes.html
	Updated the user guide to reflect the changes to data type
	conversion registration functions.

./bin/trace
./src/H5.c
	Added tracing support for the new H5T_pers_t data type.

./test/dtypes.c
	Added printf to display alignment value if non-aligned data
	types are being tested.

./test/h5test.c
	Modified the H5Tunregister() calls to use the new
	arguments. All 94 of those calls can be replaced by a single
	call to the new H5Tunregister() function.

./src/H5.c
	Added HAVE_GETTIMEOFDAY around an auto variable and
	initialized the elapsed time to zero when gettimeofday() is
	not available.

./src/H5F.c
./src/H5Fprivate.h
./src/H5P.c
	Added an H5*_init() functions which do the same thing as
	H5*_init_interface() but can be called from other packages and
	don't do anything if the interface is already initialized.
	This fixes a couple memory leaks in applications that
	repeatedly close and open the library with H5close().

./src/H5Tconv.c
	Optimized some data alignment code in the hardware conversion
	functions.

	Hardware conversions accumulate statistics about source and
	destination data alignment and print that information when the
	conversion function is unregistered (usually when the
	application exits) if data type debugging is compiled into the
	library and enabled at run-time.

	The conversion caching was cleaned up for the compound data
	type conversion function. It now caches conversion paths in a
	manner that will be MT-safe and is much simpler than the old
	method. Also cleaned up some array index maps.

./src/H5detect.c
	Fixd mispelling of alingemnt.

./src/H5private.h
	Changed `TRUE' to `1' in assignment to interface_initialize_g
	in FUNC_ENTER macro definition.

./tools/testh5dump.sh
	Completely rewritten to make it shorter, better documented,
	and conforming to most of the other test outputs.

	The comparison of the actual output with the expected output
	is insensitive to differences in white space.  The test now
	passes for the first time on Linux where the output width
	wasn't as expected but the output was otherwise correct.

./tools/testfiles/tall-1.ddl
./tools/testfiles/tall-2.ddl
./tools/testfiles/tall-3.ddl
./tools/testfiles/tattr-1.ddl
./tools/testfiles/tattr-2.ddl
./tools/testfiles/tattr-3.ddl
./tools/testfiles/tattr-4.ddl
./tools/testfiles/tcomp-1.ddl
./tools/testfiles/tcomp-2.ddl
./tools/testfiles/tcomp-3.ddl
./tools/testfiles/tcomp-4.ddl
./tools/testfiles/tdset-1.ddl
./tools/testfiles/tdset-2.ddl
./tools/testfiles/tdset-3.ddl
./tools/testfiles/tdset-4.ddl
./tools/testfiles/tgroup-1.ddl
./tools/testfiles/tgroup-2.ddl
./tools/testfiles/tgroup-3.ddl
./tools/testfiles/tlink-1.ddl
./tools/testfiles/tlink-2.ddl
./tools/testfiles/tlink-3.ddl
./tools/testfiles/tlink-4.ddl
./tools/testfiles/tlink-5.ddl
./tools/testfiles/tslink-1.ddl
./tools/testfiles/tslink-2.ddl
	Changed `../h5dump' to just `h5dump'.

./config/alpha-dec-osf4.0
	Added more warning and optimization switches to the native
	compiler.
1998-12-17 14:35:20 -05:00
Robb Matzke
c26c6a4b25 [svn-r969] Snapshot 1998-12-15 04:30:20 -05:00
Robb Matzke
28e684b0af [svn-r968] Changes since 19981207
----------------------

./MANIFEST
	Added tcompound2.{dmp,h5} and tdset2.{dmp,h5} used by the
	h5toh4 testing.

./configure.in
./configure		[REGENERATED]
./src/H5config.h.in	[REGENERATED]
	Added check for <sys/timeb.h> for Win32.

	Determines sizeof(char) just so we have a complete list of
	type sizes defined as preprocessor symbols.

./src/H5detect.c
./src/H5T.c
./src/H5Tpkg.h
	Detects alignment constraints. In order for this to work the
	operating system must not correct unaligned data (for
	instance, on the DEC Alpha one might need to say `uac p
	sigbus' before running H5detect).

./src/H5private.h
	Includes <signal.h> because it's needed by H5detect.c to
	detect alignment constraints.

./src/H5Tconv.c
	Added extra checks to all hardware conversion functions so
	they align data when necessary before the conversion.  This
	slows down the conversions somewhat but they're still much
	faster than the software conversions.

./test/dtypes.c
	By setting a constant at the top of the source you can test
	conversions where the data is aligned on various byte
	boundaries.

	By setting a constant at the top of the source you can
	simulate architectures that have alignment constraints on
	architectures that don't.

	Changed typo SIZEOF_LDOUBLE to SIZEOF_LONG_DOUBLE in a few
	places.
1998-12-14 11:19:21 -05:00