@@ -47,6 +47,7 @@ static h5tool_format_t xml_dataformat = {
4747 "%lu" , /*fmt_ulong */
4848 NULL , /*fmt_llong */
4949 NULL , /*fmt_ullong */
50+ "%Lg" , /*fmt_ldouble */
5051 "%g" , /*fmt_double */
5152 "%g" , /*fmt_float */
5253
@@ -152,6 +153,9 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5
152153 string_dataformat .fmt_double = fp_format ;
153154 string_dataformat .fmt_float = fp_format ;
154155 }
156+ if (fp_lformat ) {
157+ string_dataformat .fmt_ldouble = fp_lformat ;
158+ }
155159
156160 if (h5tools_nCols == 0 ) {
157161 string_dataformat .line_ncols = 65535 ;
@@ -885,6 +889,9 @@ xml_print_datatype(hid_t type, unsigned in_group)
885889 string_dataformat .fmt_double = fp_format ;
886890 string_dataformat .fmt_float = fp_format ;
887891 }
892+ if (fp_lformat ) {
893+ string_dataformat .fmt_ldouble = fp_lformat ;
894+ }
888895
889896 if (h5tools_nCols == 0 ) {
890897 string_dataformat .line_ncols = 65535 ;
@@ -1582,6 +1589,9 @@ xml_dump_datatype(hid_t type)
15821589 string_dataformat .fmt_double = fp_format ;
15831590 string_dataformat .fmt_float = fp_format ;
15841591 }
1592+ if (fp_lformat ) {
1593+ string_dataformat .fmt_ldouble = fp_lformat ;
1594+ }
15851595
15861596 if (h5tools_nCols == 0 ) {
15871597 string_dataformat .line_ncols = 65535 ;
@@ -1716,6 +1726,9 @@ xml_dump_dataspace(hid_t space)
17161726 string_dataformat .fmt_double = fp_format ;
17171727 string_dataformat .fmt_float = fp_format ;
17181728 }
1729+ if (fp_lformat ) {
1730+ string_dataformat .fmt_ldouble = fp_lformat ;
1731+ }
17191732
17201733 if (h5tools_nCols == 0 ) {
17211734 string_dataformat .line_ncols = 65535 ;
@@ -1889,6 +1902,9 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset,
18891902 string_dataformat .fmt_double = fp_format ;
18901903 string_dataformat .fmt_float = fp_format ;
18911904 }
1905+ if (fp_lformat ) {
1906+ string_dataformat .fmt_ldouble = fp_lformat ;
1907+ }
18921908
18931909 if (h5tools_nCols == 0 ) {
18941910 string_dataformat .line_ncols = 65535 ;
@@ -2056,6 +2072,9 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED
20562072 string_dataformat .fmt_double = fp_format ;
20572073 string_dataformat .fmt_float = fp_format ;
20582074 }
2075+ if (fp_lformat ) {
2076+ string_dataformat .fmt_ldouble = fp_lformat ;
2077+ }
20592078
20602079 if (h5tools_nCols == 0 ) {
20612080 string_dataformat .line_ncols = 65535 ;
@@ -2387,6 +2406,9 @@ xml_dump_named_datatype(hid_t type, const char *name)
23872406 string_dataformat .fmt_double = fp_format ;
23882407 string_dataformat .fmt_float = fp_format ;
23892408 }
2409+ if (fp_lformat ) {
2410+ string_dataformat .fmt_ldouble = fp_lformat ;
2411+ }
23902412
23912413 if (h5tools_nCols == 0 ) {
23922414 string_dataformat .line_ncols = 65535 ;
@@ -2606,6 +2628,9 @@ xml_dump_group(hid_t gid, const char *name)
26062628 string_dataformat .fmt_double = fp_format ;
26072629 string_dataformat .fmt_float = fp_format ;
26082630 }
2631+ if (fp_lformat ) {
2632+ string_dataformat .fmt_ldouble = fp_lformat ;
2633+ }
26092634
26102635 if (h5tools_nCols == 0 ) {
26112636 string_dataformat .line_ncols = 65535 ;
@@ -3010,6 +3035,9 @@ xml_print_refs(hid_t did, int source)
30103035 string_dataformat .fmt_double = fp_format ;
30113036 string_dataformat .fmt_float = fp_format ;
30123037 }
3038+ if (fp_lformat ) {
3039+ string_dataformat .fmt_ldouble = fp_lformat ;
3040+ }
30133041
30143042 if (h5tools_nCols == 0 ) {
30153043 string_dataformat .line_ncols = 65535 ;
@@ -3166,6 +3194,9 @@ xml_print_strs(hid_t did, int source)
31663194 string_dataformat .fmt_double = fp_format ;
31673195 string_dataformat .fmt_float = fp_format ;
31683196 }
3197+ if (fp_lformat ) {
3198+ string_dataformat .fmt_ldouble = fp_lformat ;
3199+ }
31693200
31703201 if (h5tools_nCols == 0 ) {
31713202 string_dataformat .line_ncols = 65535 ;
@@ -3281,6 +3312,9 @@ check_filters(hid_t dcpl)
32813312 string_dataformat .fmt_double = fp_format ;
32823313 string_dataformat .fmt_float = fp_format ;
32833314 }
3315+ if (fp_lformat ) {
3316+ string_dataformat .fmt_ldouble = fp_lformat ;
3317+ }
32843318
32853319 if (h5tools_nCols == 0 ) {
32863320 string_dataformat .line_ncols = 65535 ;
@@ -3422,6 +3456,9 @@ xml_dump_fill_value(hid_t dcpl, hid_t type)
34223456 string_dataformat .fmt_double = fp_format ;
34233457 string_dataformat .fmt_float = fp_format ;
34243458 }
3459+ if (fp_lformat ) {
3460+ string_dataformat .fmt_ldouble = fp_lformat ;
3461+ }
34253462
34263463 if (h5tools_nCols == 0 ) {
34273464 string_dataformat .line_ncols = 65535 ;
@@ -3803,6 +3840,9 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss
38033840 string_dataformat .fmt_double = fp_format ;
38043841 string_dataformat .fmt_float = fp_format ;
38053842 }
3843+ if (fp_lformat ) {
3844+ string_dataformat .fmt_ldouble = fp_lformat ;
3845+ }
38063846
38073847 if (h5tools_nCols == 0 ) {
38083848 string_dataformat .line_ncols = 65535 ;
@@ -4390,6 +4430,9 @@ xml_print_enum(hid_t type)
43904430 string_dataformat .fmt_double = fp_format ;
43914431 string_dataformat .fmt_float = fp_format ;
43924432 }
4433+ if (fp_lformat ) {
4434+ string_dataformat .fmt_ldouble = fp_lformat ;
4435+ }
43934436
43944437 if (h5tools_nCols == 0 ) {
43954438 string_dataformat .line_ncols = 65535 ;
0 commit comments