mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r23216] Add newline for special case of only raw data to stdout
This commit is contained in:
parent
b84234d23c
commit
415aa7e257
tools
@ -157,6 +157,9 @@ h5tools_close(void)
|
||||
H5E_auto2_t tools_func;
|
||||
void *tools_edata;
|
||||
if (h5tools_init_g) {
|
||||
if((rawoutstream == NULL) && rawdatastream && (rawdatastream == stdout))
|
||||
HDfprintf(rawdatastream, "\n");
|
||||
|
||||
H5Eget_auto2(H5tools_ERR_STACK_g, &tools_func, &tools_edata);
|
||||
if(tools_func!=NULL)
|
||||
H5Eprint2(H5tools_ERR_STACK_g, rawerrorstream);
|
||||
@ -1237,7 +1240,8 @@ render_bin_output(FILE *stream, hid_t container, hid_t tid, void *_mem, hsize_t
|
||||
break;
|
||||
case H5T_REFERENCE:
|
||||
{
|
||||
if (H5Tequal(tid, H5T_STD_REF_DSETREG)) {
|
||||
if (size == H5R_DSET_REG_REF_BUF_SIZE) {
|
||||
/* if (H5Tequal(tid, H5T_STD_REF_DSETREG)) */
|
||||
if (region_output) {
|
||||
/* region data */
|
||||
hid_t region_id, region_space;
|
||||
@ -1261,7 +1265,8 @@ render_bin_output(FILE *stream, hid_t container, hid_t tid, void *_mem, hsize_t
|
||||
}
|
||||
} /* end if (region_output... */
|
||||
}
|
||||
else if (H5Tequal(tid, H5T_STD_REF_OBJ)) {
|
||||
else if (size == H5R_OBJ_REF_BUF_SIZE) {
|
||||
/* if (H5Tequal(tid, H5T_STD_REF_OBJ)) */
|
||||
;
|
||||
}
|
||||
}
|
||||
|
@ -4,4 +4,4 @@
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
|
||||
0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9
|
||||
100
|
||||
"string attribute"
|
||||
"string attribute"
|
||||
|
@ -399,4 +399,4 @@
|
||||
4, 4.0001, 4.0002, 4.0003, 4.0004, 4.0005, 4.0006, 4.0007,
|
||||
5, 5.0001, 5.0002, 5.0003, 5.0004, 5.0005, 5.0006, 5.0007,
|
||||
6, 6.0001, 6.0002, 6.0003, 6.0004, 6.0005, 6.0006, 6.0007,
|
||||
7, 7.0001, 7.0002, 7.0003, 7.0004, 7.0005, 7.0006, 7.0007
|
||||
7, 7.0001, 7.0002, 7.0003, 7.0004, 7.0005, 7.0006, 7.0007
|
||||
|
Loading…
x
Reference in New Issue
Block a user