summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r2956] Purpose:Bill Wendling2000-11-161-4/+2
| | | | | | | Backing out fix Description: The fix I inserted didn't work on all platforms. I'm backing it out.
* [svn-r2950] Purpose:Bill Wendling2000-11-161-4/+5
| | | | | | | | | | | | Bug fix Description: The output of floating point dumps wasn't necessarily standard. The h5ls utility does it in a better way. Solution: Changed the output parameters from %g to %1.*g and added the appropriate FLT_DIG/DBL_DIG parameter for the `*' in the above. Platforms tested: Linux
* [svn-r2922] Purpose:Quincey Koziol2000-11-151-2/+6
| | | | | | | | | | | | | | Bug fix Description: [Most] SGIs failed on dumping VL data during the daily tests they seem to be initializing variables differently, exposing a bug in dumping datasets with scalar dataspaces. Also, clean up code to get rid of compiler warnings. Solution: Initilialize variable correctly. Platforms tested: SGI IRIX 6.5 (paz)
* [svn-r2908] Purpose:Quincey Koziol2000-11-141-60/+49
| | | | | | | | | | | | | | | Bug fix. Description: VL datatype dumping was not working correctly on most machines because the "native" version of the variable-length type wasn't being generated for the printing process. Re-enabled VL dumping test Solution: Generate "native" version of the VL datatype to read in for printing, also some code cleanup in the VL dumping algorithm. Platforms tested: FreeBSD 4.1.1 (hawkwind) & Solaris 2.6 (baldric)
* [svn-r2896] Purpose:Bill Wendling2000-11-141-23/+13
| | | | Formatting
* [svn-r2895] Purpose:Bill Wendling2000-11-141-8/+13
| | | | | | | | Small purify warning fixes Description: Removes some purify warning fixes and memory leakage. Platforms tested: Solaris
* [svn-r2878] Purpose:Bill Wendling2000-11-131-84/+95
| | | | | | | | | | Feature Description: Variable length data dumping for simple (i.e., either SCALAR or 1-Dim array variable length datatypes) should work. Added to the tests... Platforms tested: Linux
* [svn-r2875] Purpose:Quincey Koziol2000-11-131-3/+3
| | | | | | | | Code cleanup Description: Eliminated some warnings on O2K platform. Platforms tested: SGI O2K (modi4)
* [svn-r2866] Purpose:Quincey Koziol2000-11-111-2/+3
| | | | | | | | Code cleanup Description: Found more "Have_foo" usage and converted them to "H5_HAVE_foo" Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2845] Purpose:Quincey Koziol2000-11-091-83/+120
| | | | | | | | New Feature Description: Added dumping array datatypes to h5dump and the tool library. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2842] Purpose:Bill Wendling2000-11-091-154/+119
| | | | | | | | | | Recoding of VL dumping. Description: I'm using hyperslabs to select the variable length data. I don't have any tests which I've checked in just yet. I'll create those later. Platforms tested: Linux
* [svn-r2790] Purpose:Albert Cheng2000-11-021-4/+57
| | | | | | | | | | | | | | | | new feature Description: h5tools.c: Created h5tools_init() and h5tools_close() for the initialization of the h5tools library and closing of it. With this, the rawdatastream and other internal structures can be initialized properly. h5tools.h: added prototypes for h5tools_init and h5tools_close. h5dump.c: h5ls.c: Added the calls for h5tools_init() and h5tools_close(). Platforms tested: IRIX64 -64 parallel and Linux
* [svn-r2771] Purpose:Bill Wendling2000-10-311-381/+390
| | | | | | Reformatting Platforms tested: Linux
* [svn-r2767] ./hdf5/tools/h5tools.cRobb Matzke2000-10-311-17/+29
| | | | | | | | | | | | * 2000-10-31 Robb Matzke <matzke@llnl.gov> (h5dump_sprint) The whitespace added for indentation after the line-feed kludge is performed only if a line-feed was actually inserted. This fixes funny-looking h5ls output that had ` %s' sequences appearing in nested compound datatypes. Also added a prominent warning in the code to indicate that when a line-feed is inserted into the string that column number calculations will be incorrect and object indices will be missing.
* [svn-r2737] Purpose:Bill Wendling2000-10-251-70/+327
| | | | | | | | | | | | Feature Description: Allow dumping of variable length records. This is a first-time stab at this. It doesn't break any tests on my Linux box and it does output the variable length data, but it might look ugly (it doesn't handle new-lines as of yet)...I'm open to suggestions on what should be done next, what new features to add/remove... Platforms tested: Linux
* [svn-r2634] Purpose:Bill Wendling2000-10-051-22/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug fix Description: In the h5dump_fixtype function, when users created a COMPOUND datatype, the alignment would be off somewhat. Solution: The alignment was being set after insertion. I changed this code: for (i = 0, offset = 0; i < nmembs; i++) { H5Tinsert_array(m_type, name[i], offset, ndims[i], dims + i * 4, NULL, memb[i]); for (j = 0, nelmts = 1; j < ndims[i]; j++) nelmts *= dims[i * 4 + j]; offset = ALIGN(offset, H5Tget_size(memb[i])) + nelmts * H5Tget_size(memb[i]); } to: for (i = 0, offset = 0; i < nmembs; i++) { if (offset) offset = ALIGN(offset, H5Tget_size(memb[i])); H5Tinsert_array(m_type, name[i], offset, ndims[i], dims + i * 4, NULL, memb[i]); for (j = 0, nelmts = 1; j < ndims[i]; j++) nelmts *= dims[i * 4 + j]; offset += nelmts * H5Tget_size(memb[i]); } The alignment is now calculated before the insertion. Platforms tested: Solaris, Linux
* [svn-r2626] Purpose:Albert Cheng2000-09-301-1/+5
| | | | | | | | | | | | | | | | | | | | New Feature Description: Add -o option to h5dumper. It displays the raw data of datasets to a separate output file. Add a feature to h5tools library that it uses the FILE *rawdatastream as the stream for the display of datasets raw data. Solution: Define an "extern FILE *rawdatastream" in h5tools.h and declare it in h5tools.c. This way, it would work even if an application does not explicitely declare it. Tried to initialized it to stdout as FILE *rawdatastream = stdout; but Linux gcc rejected it though all other platforms+compilers accepted it fine. For now, put in a kludge to set it right before it is used. Need a safer way to initialize it. Platforms tested: arabica, eirene, modi4 -64.
* [svn-r2563] Purpose:Thomas Radke2000-09-151-0/+10
| | | | | | | | | | | | | | | | | Added the Stream Virtual File Driver to the list of drivers used for trying to open a file via h5dump_fopen(). Description: The Stream VFD was added at bottom of the driver list for h5dump_fopen(). If no driver succeeded to open a file given by its filename the Stream VFD would try to do so by parsing the filename as an 'hostname:port' argument, open a socket to that address and read read the file. This feature can be used to h5ls/h5dump streamed files. Platforms: All platforms (also between heterogenous).
* [svn-r2467] Changed type so that compiler warnings about implicit conversion ↵Bill Wendling2000-08-041-11/+3
| | | | | | were removed.
* [svn-r2460] Fixed some comparisons between signed and unsigned values. Made ↵Bill Wendling2000-08-041-2/+2
| | | | | | | some of the functions prototypes so that the compiler wouldn't complain about them.
* [svn-r2412] Fixed a variety of problems with the new H5ToolsFopen() function.Robb Matzke2000-06-231-173/+186
| | | | | | | | | | | | | | | | | | | | 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.
* [svn-r2359] added the comments back to the part of the code that is setting ↵Patrick Lu2000-06-071-0/+5
| | | | | | up the file drivers array.
* [svn-r2341] took the code out of h5ls to open files using different drivers ↵Patrick Lu2000-06-061-5/+53
| | | | | | | | | 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
* [svn-r2290] fixed the indenting error related to compound types.Patrick Lu2000-05-251-3/+5
|
* [svn-r2256] same changes i did for the release version. (fixed bug in ↵Patrick Lu2000-05-161-1/+1
| | | | | | dangermouse... added an extra conditional)
* [svn-r2243] h5dump.c: Removed some Carriage-return'sAlbert Cheng2000-05-111-1/+1
| | | | | h5tools.c h5tools.h: Modified print_version() to use const char * argument instead.
* [svn-r2180] ./src/tools/h5tools.cRobb Matzke2000-04-211-8/+5
| | | | | | | Added hyphen to version printf format. ./src/tools/h5ls.c Calls print_version() instead of doing it by hand.
* [svn-r2167] i removed unneeded code from the tool lib.Patrick Lu2000-04-201-866/+3
| | | | | | | 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
* [svn-r2162] Various small fixes to address SGI compiler warnings.Quincey Koziol2000-04-191-0/+6
|
* [svn-r2156] changed a comment that is no longer relevant and moved some code ↵Patrick Lu2000-04-191-33/+18
| | | | | | 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.
* [svn-r2155] fixed the error in the h5ls output. it is now printing like it ↵Patrick Lu2000-04-191-3/+22
| | | | | | did before the tools lib merge. prints the index numbers. moved the lines that were doing indenting into the conditionals.
* [svn-r2089] ** tools/h5ls.cRobb Matzke2000-04-071-94/+98
| | | | | | | | | | | | 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.
* [svn-r1985] fixed the bug with the memory alignment errorPatrick Lu2000-02-221-17/+46
|
* [svn-r1974] Added const to the h5dump_region third argument to quite a compilerAlbert Cheng2000-02-181-1/+1
| | | | complain and it is more correct this way too.
* [svn-r1973] fixed the dataset regions problem with the dumper.Patrick Lu2000-02-171-7/+13
| | | | | | now the dump structure contains 2 extra members that tell how to format the data for the dataset regions(blocks and pts). had to give h5ls values for these
* [svn-r1969] fixed a bug with the objrefs. added a format string to the dump ↵Patrick Lu2000-02-171-4/+12
| | | | | | struct to display the format for the obj refs.
* [svn-r1966] Patrick Lu2000-02-161-4/+2
| | | | removed some commented code.
* [svn-r1956] in h5tools.h I added a fwe new members to the struct for the ↵Patrick Lu2000-02-151-88/+137
| | | | | | | | | formatting. in h5dump.c just initialized the values for the formatting struct. in h5tools.c made some changes in the printing area to get the dump output to look closer to what we wanted. the strings are currently not printing correctly. also removed the program type variable from here.
* [svn-r1933] took the functions out of the h5findshd.c and put them into this ↵Patrick Lu2000-01-061-4/+483
| | | | file
* [svn-r1870] h5dump.c:Albert Cheng1999-12-101-0/+9
| | | | | | | | Added -V option for displaying version information. h5tools.c: Added print_version routine to display version information. h5tools.h: Added print_version prototype.
* [svn-r1852] fixed a bug that i introduced with the last change to this file.Patrick Lu1999-12-031-5/+16
|
* [svn-r1851] updated the output for the dumper so that it prints out compound ↵Patrick Lu1999-12-031-69/+87
| | | | | | | | | | types with out the square braces. also the formatting for the compound types in the dataset part section has been corrected. still need to update the expected outputs so there will be some errors until I get that all checked in...
* [svn-r1839] added support for displaying nested compound data.Patrick Lu1999-11-181-1/+5
|
* [svn-r1837] Cleaned up a few warnings from the SGI compiler.Quincey Koziol1999-11-171-10/+7
|
* [svn-r1805] more changes. I found some duplicate functions in the library ↵Patrick Lu1999-11-021-165/+0
| | | | | | | | | | | and the dumper. so i moved the dumper stuff out to the libary. Had to change some functions in h5findshd so they would stop using globals that shouldn't be defined in the lib. I will remove the globals next. also the h5findshd.c has an extra member to the struct for that objects in the table so i added that into the appropriate place. the dumper is working ok now but the h5toh4 is still broken.
* [svn-r1800] moved the code from the dumper that iterates thru the files and ↵Patrick Lu1999-10-291-0/+164
| | | | | | | | stores the info into the tables into the tools lib. h5findshd-had some of the same functions so i removed them for now
* [svn-r1744] i removed an extra function that wasn't being usedPatrick Lu1999-10-131-173/+1
|
* [svn-r1732] Changes since 19991007Robb Matzke1999-10-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | ---------------------- ./src/H5FDcore.c Includes private headers instead of public in order to use the `UNUSED' macro. ./src/H5FDpublic.h Includes H5public.h just in case. ./src/H5P.c Removed two unused variables in H5P_copy() ./src/H5FDgass.h Fixed a C++ comment after a `#endif' ./src/Makefile.in The H5FDgass.h file is public and must be installed in order for applications to be able to use HDF5. ./tools/h5tools.c Removed an unused variable.
* [svn-r1697] Changes since 19990915Robb Matzke1999-09-301-76/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---------------------- ./src/H5public.h We undefine a bunch of things that could get redefined in the config file because some customers have applications that include headers from multiple packages, all of which might be using autoconf. Include <stdint.h> for the C9x types. ./test/h5test.h More flushing of stdout for when testing is redirected down a pipe. ./tools/h5ls.c Added a `-S' or `--simple' switch which causes the output to be simplified somewhat for easier parsing by other scripts. For instance, characters are escaped using a very simple mechanism instead of C's more complicated backslash notation, data doesn't have `{}' or `[]' characters interspersed for compound and array types, and data is printed with exactly one element per line. This switch is now used by an HDF5-to-HTML CGI script being developed for the DMF people. ./tools/h5tools.c ./tools/h5tools.h The repeat threshold which controls how strings are printed when a character repeats a bunch of times is now settable at runtime instead of compile time. The default is to show all characters, like "abceeeeeeeeeeeeeeeeeeeeeeeeeeeeeefgh" But if you set it to something like 5 then any sequence of 5 or more characters is replaced by something shorter, like: "abc" 'e'x30 "fgh" or Added an `str_locale' property which describes how to escape special characters in strings. The default is C-like escapes but an alternative is ESCAPE_HTML which replaces all non-alphanumeric characters with a 3-character HTML escape of the form `%XX' Fixed a bug where empty strings didn't even have the quote characters printed. Now empty strings show up as `""' instead of absolutely nothing. Added a `per_line' property which controls the maximum number of elements which will appear per line of output. The default is infinity but in practice the right margin causes line breaks. By setting the `per_line' value to one and the right margin to a very large value one can achieve output with exactly one element per line.
* [svn-r1667] same fixes from the release branch were done here.Patrick Lu1999-09-271-3/+3
| | | | just casts with the parameters for the isdigit and isprint functions