You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This patch adds support for two new format specifiers (%f and %d) to print float and double data. Generally it's not save to directly take native binary data of one machine and print it on another one (since mosquitto is multiarch). But in case of floats it's save to print representation of it, if __STDC_IEC_559__ is defined. In C99 Annex F, standard we can read: > This annex specifies C language support for the > IEC 60559 floating-point standard. > (...) > An implementation that defines __STDC_IEC_559__ > shall conform to the specifications in this annex All float printing code is behind __STDC_IEC_559__, so if that is not defined, floating print will be disabled and error returned to user. Documentation also describes restrictions about printing floats. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl> |
3 years ago | |
---|---|---|
.. | ||
CMakeLists.txt | 4 years ago | |
Makefile | 4 years ago | |
args.txt | 4 years ago | |
client_props.c | 4 years ago | |
client_shared.c | 3 years ago | |
client_shared.h | 4 years ago | |
pub_client.c | 4 years ago | |
pub_shared.c | 4 years ago | |
pub_shared.h | 4 years ago | |
pub_test_properties | 7 years ago | |
rr_client.c | 4 years ago | |
sub_client.c | 4 years ago | |
sub_client_output.c | 3 years ago | |
sub_client_output.h | 4 years ago | |
sub_test_fixed_width | 5 years ago | |
sub_test_properties | 7 years ago |