Commit Graph

334 Commits

Author SHA1 Message Date
Albert Cheng
d69ff2516a [svn-r2419] Setup PUB_PROGS so that all tools but h5dumptst will be installed.
h5dumptst generates the test suits files.  It is not a user tool.
2000-06-27 14:02:20 -05:00
Albert Cheng
3c69d8be86 [svn-r2417] Include sys/stat.h in case it is not included in some platforms
like Cray T90.  Tested on linux.
2000-06-27 12:57:00 -05:00
Robb Matzke
96f9f1859b [svn-r2412] Fixed a variety of problems with the new H5ToolsFopen() function.
1. The `driver' table is initialized only once, making it faster and
     leaking less memory.
  2. The returned driver name is set to the empty string on failure.
  3. Added an argument so the function cannot overwrite the end of the
     drivername return value.
  4. Avoids core dump when assigning driver name to return value if the
     file could not be opened by any driver.
  5. Changed name of function to h5dump_fopen() to follow the naming
     scheme for this source file.
  6. Reindented according to hdf5 code standard.
  7. Added `const' qualifiers to read-only formals.
  8. Removed duplicate forward declaration.

Reindented some parts of these source files that had very odd indentation
(some lines had no indentation while others had 3x what they should).

Fixed calls to H5ToolsFopen() function.
2000-06-23 12:52:21 -05:00
Patrick Lu
6e7c3212d3 [svn-r2359] added the comments back to the part of the code that is setting up the file
drivers array.
2000-06-07 12:39:57 -05:00
Patrick Lu
4d16bcfecb [svn-r2341] took the code out of h5ls to open files using different drivers and created a function in the tools
library for it(H5ToolsFopen-takes a filename and a char ptr if you want the name of the driver)

added the function to h5tools.c, a header to h5tools.h and changed h5ls.c and h5dump.c to use the new
functions
2000-06-06 13:07:20 -05:00
Patrick Lu
0264342a3e [svn-r2308] added a funtion to create a bitfields test file. just used the code from the dataset
test file
2000-05-31 11:22:38 -05:00
Patrick Lu
cee9fa8a0e [svn-r2307] test file for the bitfields test. i used the bitfield parts of the dataset test file 2000-05-31 11:21:36 -05:00
Patrick Lu
8750cf4c3a [svn-r2306] ddl for the bitfields test file 2000-05-31 11:20:56 -05:00
Patrick Lu
7f5c264ce4 [svn-r2305] took out the line that said the bitfields are not supported in the dumper.
now it will dump bitfields using the the tools lib like h5ls does.
2000-05-31 11:08:10 -05:00
Patrick Lu
2d7cee1e9f [svn-r2304] *** empty log message *** 2000-05-30 11:54:44 -05:00
Patrick Lu
a0e559aee5 [svn-r2294] fixed the output of the options list so that the xml options text is aligned 2000-05-26 13:58:27 -05:00
Patrick Lu
e27ec06855 [svn-r2291] update the ddl to match the output the dumper is generating now for the
compound types.  (the indentation for the curly brace at the end of the
compound type is aligned with the top brace)
2000-05-25 12:13:20 -05:00
Patrick Lu
69ca8832e6 [svn-r2290] fixed the indenting error related to compound types. 2000-05-25 12:08:45 -05:00
Patrick Lu
f782d80d00 [svn-r2280] more complicated test file for nested compounds. copied from Elena's test file 2000-05-19 10:52:59 -05:00
Patrick Lu
2b4672286c [svn-r2279] copied Elena's code for a more complicated testfile for the nested compound types 2000-05-19 10:52:10 -05:00
Patrick Lu
853923360d [svn-r2278] changed the nested compound test. copied Elena's code from her test file for nested comp types.
more complicated test case
2000-05-19 10:50:46 -05:00
Robb Matzke
bc520e88b4 [svn-r2262] * 2000-05-18
** src/H5Tconv.c
** src/H5Tpkg.h
** src/H5Tpublic.h
	The H5T_conv_struct_opt() function had a design flaw -- it
	didn't keep information about the stride to use to step
	through the temporary/background-value buffer and thus nested
	invocations would clobber each other's temp buffers.  This was
	fixed by splitting the `stride' argument into `buf_stride' and
	`bkg_stride' arguments for all the conversion functions. THIS
	IS AN API CHANGE, but users will get a compiler warning when
	they pass their conversion function pointer to H5Tregister().

** src/H5T.c
** src/H5Tprivate.h
	Added a bkg_stride argument to the H5T_convert() definition in
	order to fix a bug related to the optimized compound datatype
	conversion function.

** src/H5T.c
** src/H5A.c
** src/H5D.c
** src/H5Ofill.c
** src/H5P.c
	Added bkg_stride=0 argument to the H5T_convert() calls.

** test/dtypes.c
	Added a test for the H5T_conv_struct_opt() bug fixed above.

** src/H5FL.c
	The H5FL_term() function should return non-zero even when it
	couldn't free all the free lists do to their being used by
	some other package.  When that other package terminates it
	will return non-zero, causing H5FL_term() to be called
	again. This fixes some of the `infinite loop closing library'
	messages.

** tools/pdb2hdf
	Uses print_version() instead of doing that itself.

** src/H5Ppublic.h
	Renamed H5Pget_gc_reference() declaration to make it match the
	definition.

** src/H5FDlog.c
	Added API tracing macros.

	Removed `const' qualifier from a `char*' member of a struct
	which was allocated on the heap.

** src/H5TB.c
	Added curly braces to a couple deeply-nested `if' statements
	to make them clearer and to shut up the increadibly stupid and
	just plain incorrect gcc warning about ambiguous `else'.

** test/titerate.c
	Removed incomplete initialization in favor of memset() for one
	auto variable to stop compiler warnings.

** tools/Depencencies
	Regenerated to remove references to h5dumputil.c
2000-05-18 11:40:20 -05:00
Patrick Lu
1f6bb057e0 [svn-r2256] same changes i did for the release version. (fixed bug in dangermouse... added
an extra conditional)
2000-05-16 11:57:46 -05:00
Albert Cheng
0662396e13 [svn-r2243] h5dump.c: Removed some Carriage-return's
h5tools.c h5tools.h:
    Modified print_version() to use const char * argument instead.
2000-05-11 17:18:44 -05:00
Albert Cheng
e02e441734 [svn-r2242] Removed h5dumputil.c. Its functions have been migrated to h5tools.c. 2000-05-11 17:15:12 -05:00
Patrick Lu
6f5d6505a1 [svn-r2232] removed the conditional compile statements that we were going to use
for the merged tools lib since these files do not require the tools lib
2000-05-09 13:14:33 -05:00
Patrick Lu
23f2575276 [svn-r2229] added semicolons after the opaque info 2000-05-09 12:01:24 -05:00
Patrick Lu
f474a09365 [svn-r2228] added a semicolon after the opaque info is printed 2000-05-09 12:00:38 -05:00
Patrick Lu
dca5c02b31 [svn-r2218] forgot the header to the ddl. just tells what hte command to generate the file was 2000-05-05 11:27:40 -05:00
Patrick Lu
019f267759 [svn-r2216] the ddl file for the topaque.h5 file 2000-05-04 12:09:36 -05:00
Patrick Lu
6473bd2a11 [svn-r2215] the new opaque file. has a 2d array. the first array is from 0-99 and the
is from 99-0.
2000-05-04 12:07:20 -05:00
Patrick Lu
295fbf3b82 [svn-r2214] added support for the opaque type.
prints out the data section in hexidecimal format.
in the h5dumptst.c i added a function to create an opaque test file.
2000-05-04 12:05:09 -05:00
Patrick Lu
ae5c998516 [svn-r2211] took the development branch code and moved it into the release. had to add some
conditional compile statements in the code to compile for the release.
defined a VERSION12 and VERSION13 macro.  all changes were surrounded by these statements
2000-05-03 10:48:20 -05:00
Quincey Koziol
75574e92e1 [svn-r2189] Fixed some compiler warnings 2000-04-22 15:45:29 -05:00
Robb Matzke
7a52d6ce9b [svn-r2180] ./src/tools/h5tools.c
Added hyphen to version printf format.

	./src/tools/h5ls.c
		Calls print_version() instead of doing it by hand.
2000-04-21 14:28:09 -05:00
Patrick Lu
8a006fd0ca [svn-r2167] i removed unneeded code from the tool lib.
from h5tools.h just got rid of a prototype for copy_atmoic_char which was never used

in the h5tools.c i removed the copy_atomic_char, all the display_*_data, where the * is numeric, string
or compound, the print_data, h5dump_attr. also removed a block of codfe that was surrounded by #if 0
2000-04-20 11:53:57 -05:00
Quincey Koziol
7438609ee2 [svn-r2162] Various small fixes to address SGI compiler warnings. 2000-04-19 18:11:06 -05:00
Patrick Lu
395326672c [svn-r2156] changed a comment that is no longer relevant and moved some code around in the dump_simple_prefix
funtion.  all i did was take some code that was common to both the if and then conditions out.
2000-04-19 13:14:36 -05:00
Patrick Lu
173260ac41 [svn-r2155] fixed the error in the h5ls output. it is now printing like it did before the tools lib merge.
prints the index numbers.  moved the lines that were doing indenting into the conditionals.
2000-04-19 13:08:11 -05:00
Raymond Lu
f087c55d10 [svn-r2139] Change the global static variable 'status' to 'd_status' in this file. Same name appears as an external variable in SRB library, causing conflict. 2000-04-13 10:19:12 -05:00
Robb Matzke
d9b36b8a7f [svn-r2089] ** tools/h5ls.c
Prints the subrelease name also.

** tools/h5tools.c
	Fixed indentation problems in the first half of the file.

	Changed conditional compilation style from `/*...*/' to use
	#if 0/#endif in the first half of this file.

	Removed some extra parentheses to make expressions more readable.
2000-04-07 10:27:48 -05:00
Patrick Lu
64abaedc8b [svn-r2054] update the files since i hanged the hdf 5 versions of them.
the h5toh4 tests were not passing.
2000-03-23 12:13:34 -05:00
Patrick Lu
1ee399e491 [svn-r2052] the new ddls for the new versions of the testfiles just created(tall.h5, tcompounnd.h5, tnestedcomp.h5)
the data is not as simple as before. rows are not repeated and rows are not just 1 number repeated
2000-03-23 10:38:14 -05:00
Patrick Lu
1bb9912f80 [svn-r2051] update the test files so that their data is a little more vaired.
the elements in the rows are different values and rows are not repeated.
2000-03-23 10:31:21 -05:00
Patrick Lu
a997660b18 [svn-r2050] changed the data for the tall.h5, tcompound.h5 and tnestedcomp.h5 test files.
the data is not as simple as it was before. all elements in a row are different
values now and rows are no longer repeated.
2000-03-23 10:27:34 -05:00
Patrick Lu
35b8c2baf0 [svn-r2046] added a test for the tnestedcomp.h5 test. 2000-03-21 12:59:28 -05:00
Patrick Lu
50500e3672 [svn-r2045] fixed a type that had the endian to be little. I created the file on my NT machine but
the testfile on baldirc.
2000-03-21 12:58:18 -05:00
Patrick Lu
f8fc02abce [svn-r2043] testfile for the nested compound types 2000-03-21 12:48:08 -05:00
Patrick Lu
861af95729 [svn-r2042] ddl for the testfile tnestedcomp.h5 2000-03-21 12:47:40 -05:00
Patrick Lu
5536ff167e [svn-r2041] added a new test file creation function. test_nsetcomp. creates a file
that has nested compound types in it.
2000-03-21 12:44:01 -05:00
Albert Cheng
615522147b [svn-r2020] Fine tuned the declaration of dump_header_format to be "const" consistent. 2000-03-09 19:41:10 -05:00
Patrick Lu
c9e88b0516 [svn-r2017] added a new data structure for the dump header format for customized output 2000-03-09 14:34:39 -05:00
Patrick Lu
8ff4e26ee7 [svn-r2016] fixed the problem with the -xml option that prevented it from working
unless it was the last argument in the run time options.
just added another && condition.
2000-03-09 14:16:19 -05:00
Patrick Lu
01d728817b [svn-r2015] changed the dataspacedescrition begin and end for the xml struct 2000-03-09 13:42:53 -05:00
Patrick Lu
3bec438149 [svn-r2014] fixed a typo 2000-03-09 13:38:09 -05:00