summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r3066] Purpose:Quincey Koziol2000-12-021-5/+4
| | | | | | | | | | | | Bug Fix. Description: Attributes whose datatype was an object or dataset region reference weren't dumping correctly. Solution: Pass along attribute ID to the code which prints the attributes, so the reference types can be dereferenced and printed. Platforms tested: FreeBSD 4.2 (hawkwind) & IRIX64 6.5 (modi4)
* [svn-r3021] Purpose:Quincey Koziol2000-11-291-8/+11
| | | | | | | | Bug fix Description: Moving VL data reclamation to be more local to where the data is read in. Platforms tested: Linux 2.2.16-3smp (eirene)
* [svn-r3017] Purpose:Quincey Koziol2000-11-291-5/+10
| | | | | | | | | | Code cleanup/bug fix Description: Variable length datatypes were leaking memory when being dumped. Solution: Reclaim the VL data after each element has been dumped out. Platforms tested: FreeBSD 4.2 (hawkwind) & Solaris 2.6 (baldric)
* [svn-r3014] Purpose:Quincey Koziol2000-11-281-9/+16
| | | | | | | | | | | Bug fix. Description: Data dumping routines weren't correctly handling scalar dataspaces when dumping them. Under some circumstances, it would get into infinite loops. Solution: Small patches to avoid problems when the number of dimensions is zero. Platforms tested: FreeBSD 4.2 (hawkwind)
* [svn-r2987] Purpose:Quincey Koziol2000-11-211-638/+485
| | | | | | | | | Bug fixes and misc. code fixing. Description: Updated to reflect current DDL document. Also changed VL data to be able to be able also dump VL data of any other datatype. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2984] Purpose:Bill Wendling2000-11-211-2/+2
| | | | | | | | | | | | | | | | | | | | Bug fix Description: The code for determining what a string should print out if it was declared as H5T_STR_NULLTERM (C strings), H5T_STR_SPACEPAD (Fortran strings), or H5T_STR_NULLPAD (print null characters to the end of the line) was mucked. A user had a problem with it and suggested a change, but the change didn't seem to work properly. Also, if the string was H5T_STR_SPACEPAD, it could have stopped when encountering a NULL even if it hadn't gotten to the end of the string. Solution: Reworked the code to make it more understandable what's happening and to add in support for H5T_STR_SPACEPAD which may have been missing before. Platforms tested: Linux
* [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
|