summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
Commit message (Collapse)AuthorAgeFilesLines
* [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
* [svn-r1659] brought changes from the release branch over to the developementPatrick Lu1999-09-251-11/+13
| | | | removed some of the warnings.
* [svn-r1491] removed teh extra funtion that wasn't being used and now if thePatrick Lu1999-07-161-159/+7
| | | | indentation is greater than the number of columns it will generate an error
* [svn-r1484] ./tools/h5tools.c [1.2, 1.3]Robb Matzke1999-07-141-30/+32
| | | | | | | | | | Fixed a bug reported by Albert: the indices for data printed by h5ls were starting over at zero for each pass through the strip mining loop. Fixed indentation in one function. Replaced commented-out code by #if 0
* [svn-r1391] Patrick Lu1999-06-281-1/+3
| | | | added a break for the H5T_ENUM case in the switch in the dump_simple_dset
* [svn-r1390] Patrick Lu1999-06-281-0/+1
| | | | fixed a bug that was making references get printed twice
* [svn-r1382] Patrick Lu1999-06-251-2/+7
| | | | | | | | | oooops i forgot to include a case statement in two switch statements (1 in each file) that print the actual data of the enum datasets i had to change a line of h5dump_sprint. when it checks to see that is an enum val isn't an escape sequence i appended this result onto the end of the str
* [svn-r1376] Patrick Lu1999-06-241-2/+8
| | | | changed some of the output format for the dumper(show object ids now)
* [svn-r1361] Patrick Lu1999-06-171-2/+20
| | | | made the output for the dataset regions look like how Albert wanted it to
* [svn-r1360] Patrick Lu1999-06-171-7/+225
| | | | | dumps dataset regions now. uses robb's code to get all the info. modified display_numeric_data to display the info
* [svn-r1348] Patrick Lu1999-06-151-6/+13
| | | | | got the regions working in the dumper. all the hard stuff was already done. it doesn't work perfectly yet but it is getting better
* [svn-r1327] Got rid of the extra line of setting dim_n_size incorrectly.Albert Cheng1999-06-111-1/+0
| | | | Tested in O2K.
* [svn-r1325] fixed a bug that was due to settign the dim_n_size wrong for the ↵Patrick Lu1999-06-101-2/+6
| | | | | | dump_attr function for scalar data
* [svn-r1323] Patrick Lu1999-06-101-2/+1
| | | | removed a c++ style comment i put in by accident
* [svn-r1321] Patrick Lu1999-06-091-16/+29
| | | | | added some support for the object references. uses robb's h5dump_sprint to print out the info
* [svn-r1320] Patrick Lu1999-06-081-65/+85
| | | | just made the h5dump_attr function
* [svn-r1319] Patrick Lu1999-06-081-0/+2
| | | | fixed bug that was printing out the "unable to print data message"
* [svn-r1318] Patrick Lu1999-06-081-32/+76
| | | | | | separated the dumping of the attributes and datasets. works on nt but on unix(baldric) adds an extra line that says cannot print data. this is just a temporary checkin until i can figure out what is wrong
* [svn-r1317] Patrick Lu1999-06-081-29/+164
| | | | | rolled back my changes so Robb's last set are still there. merged my hcanges back in
* [svn-r1312] Patrick Lu1999-06-071-168/+34
| | | | fixed the dumb error with the concatenator macro
* [svn-r1311] Changes since 19990607Robb Matzke1999-06-071-2/+13
| | | | | | | | | | | | | | | | | | | | ---------------------- ./tools/h5ls.c ./tools/h5tools.c Added support for printing bitfields and opaque data. ./test/dsets.c Added bitfield and opaque datasets to the output file so h5ls has something interesting to print. ./test/trefer.c Resync'd ./src/H5Tconv.c Fixed bitfield conversion which resulted in possible garbage in high-order bits of destination when the destination type is larger than the source type. Thanks for spotting it, Quincey.
* [svn-r1310] Patrick Lu1999-06-071-7/+7
| | | | removed the '//' from display_string and put a macro for it in h5dump.h
* [svn-r1309] Changes since 19990607Robb Matzke1999-06-071-27/+161
| | | | | | | | | | | | | | | | | | | | | | | | ---------------------- ./tools/h5tools.c Finished code which prints references (object and dataset region). Patrick, if you tell me how h5dump should (or might want to) print references I can make some changes to support various formats... You can try it out with: cd test env HDF5_NOCLEANUP=yes ./testhdf5 ../tools/h5ls -dvr trefer1.h5 ../tools/h5ls -dvr trefer2.h5 (run h5ls with no arguments if you forgot what the switches do) ./test/trefer.c Call calloc instead of malloc in one place to prevent uninitialized data from being written into the file.
* [svn-r1308] Changes since 19990607Robb Matzke1999-06-071-350/+379
| | | | | | | | | | | ---------------------- ./tools/h5ls.c ./tools/h5tools.c ./tools/h5tools.h Finished the `-x' or `--hexdump' switch, which causes all data to be printed in hexadecimal format with no translation from file to memory data type.
* [svn-r1306] Changes since 19990602Robb Matzke1999-06-071-10/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---------------------- ./doc/html/Datatypes.html ./test/dtypes.c Added documentation and tests for opaque types. ./tools/h5ls.c Added a `-x' or `--hexdump' argument which is not fully implemented (because I want to synchronize h5tools.c first) but which will eventually print raw data in hexadecimal format without any translation from disk. This would be useful for debugging references and VL types. ./tools/h5tools.c Added support for references (not quite finished yet, but compiles -- I wanted to sync up this file before Patrick and I got too far apart...) ./src/H5R.c Checked for error return value from H5R_get_object_type() ./src/H5A.c ./src/H5D.c Changed error return values from NULL to FAIL ./test/Makefile.in ./test/trefer.c Creates trefer1.h5 and trefer2.h5 so that the second test doesn't clobber the first file since the files might be useful for debugging.
* [svn-r1303] Patrick Lu1999-06-041-0/+2
| | | | got rid of 2 memory leaks in display_numer_data and display_string
* [svn-r1302] Patrick Lu1999-06-041-1/+1
| | | | replaced the 0 in the function call to h5dump_simple_dset to DATSET_DATA
* [svn-r1300] Patrick Lu1999-06-041-50/+131
| | | | | | | added the programtype variable and modified certain functions so they would use this variable. started combinin h5dump_simple and h5dump_simple_dset into 1 function. added an extra parameter to the h5dump_simple_dset function that because the h5dump_simple function uses a var that isn't present in the dump_simple_dset
* [svn-r1297] Patrick Lu1999-06-041-5/+2
| | | | removed the c++ style comments and added a new line at the end of the file
* [svn-r1296] Patrick Lu1999-06-031-1/+0
| | | | removed a line from display_numeric_data that was not needed
* [svn-r1293] Patrick Lu1999-06-021-13/+77
| | | | added a function so that when we dump atomic characters they stay together
* [svn-r1286] Patrick Lu1999-05-281-3/+4
| | | | added a line i thought was there but I must have removed it by accident
* [svn-r1285] Patrick Lu1999-05-271-52/+44
| | | | | | | fixed the last bug with the repeating in the tstr.h5 test added an extra parameter to the h5dump_sprint function. it was for the repeat_threshold before it was hardcoded as 8 but now i let it be a parameter so that if it is set to a negative number then it will not count the repeats and print all the values out.