mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r21378] The tools used "%hhd" to print signed char. But VMS doesn't know it. So I used H5_VMS to have a different way ("%hd") to print it.
Tested on jam. Not tested on VMS yet. Simple change.
This commit is contained in:
parent
645fae330d
commit
64b1807783
@ -144,7 +144,11 @@ static h5tool_format_t dataformat = {
|
||||
"", /*fmt_raw */
|
||||
"%d", /*fmt_int */
|
||||
"%u", /*fmt_uint */
|
||||
"%hhd", /*fmt_schar */
|
||||
#ifdef H5_VMS
|
||||
"%hd", /*fmt_schar */
|
||||
#else
|
||||
"%hhd", /*fmt_schar */
|
||||
#endif
|
||||
"%u", /*fmt_uchar */
|
||||
"%d", /*fmt_short */
|
||||
"%u", /*fmt_ushort */
|
||||
@ -228,7 +232,11 @@ static h5tool_format_t xml_dataformat = {
|
||||
"", /*fmt_raw */
|
||||
"%d", /*fmt_int */
|
||||
"%u", /*fmt_uint */
|
||||
"%hhd", /*fmt_schar */
|
||||
#ifdef H5_VMS
|
||||
"%hd", /*fmt_schar */
|
||||
#else
|
||||
"%hhd", /*fmt_schar */
|
||||
#endif
|
||||
"%u", /*fmt_uchar */
|
||||
"%d", /*fmt_short */
|
||||
"%u", /*fmt_ushort */
|
||||
|
@ -52,7 +52,11 @@ static h5tool_format_t h5tools_dataformat = {
|
||||
"", /*fmt_raw */
|
||||
"%d", /*fmt_int */
|
||||
"%u", /*fmt_uint */
|
||||
"%hhd", /*fmt_schar */
|
||||
#ifdef H5_VMS
|
||||
"%hd",/*fmt_schar */
|
||||
#else
|
||||
"%hhd",/*fmt_schar */
|
||||
#endif
|
||||
"%u", /*fmt_uchar */
|
||||
"%d", /*fmt_short */
|
||||
"%u", /*fmt_ushort */
|
||||
|
@ -836,7 +836,11 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
|
||||
else
|
||||
tempchar = (tempchar >> packed_data_offset) & packed_data_mask;
|
||||
}
|
||||
#ifdef H5_VMS
|
||||
h5tools_str_append(str, OPT(info->fmt_schar, "%hd"), tempchar);
|
||||
#else
|
||||
h5tools_str_append(str, OPT(info->fmt_schar, "%hhd"), tempchar);
|
||||
#endif
|
||||
}
|
||||
else if (H5Tequal(type, H5T_NATIVE_UCHAR)) {
|
||||
unsigned char tempuchar;
|
||||
|
Loading…
Reference in New Issue
Block a user