mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines.
Make it more obvious that the FRACTION and SIGNED_FRAC defines return a tuple / triplet of values. Fixes https://github.com/subsurface/subsurface/pull/4171#discussion_r1585941133 Complained-about-by: @bstoeger Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
32a08735c3
commit
e65c7cedc8
16 changed files with 57 additions and 57 deletions
|
@ -441,7 +441,7 @@ sample_cb(dc_sample_type_t type, const dc_sample_value_t *pvalue, void *userdata
|
|||
break;
|
||||
#ifdef DEBUG_DC_VENDOR
|
||||
case DC_SAMPLE_VENDOR:
|
||||
printf(" <vendor time='%u:%02u' type=\"%u\" size=\"%u\">", FRACTION(sample->time.seconds, 60),
|
||||
printf(" <vendor time='%u:%02u' type=\"%u\" size=\"%u\">", FRACTION_TUPLE(sample->time.seconds, 60),
|
||||
value.vendor.type, value.vendor.size);
|
||||
for (int i = 0; i < value.vendor.size; ++i)
|
||||
printf("%02X", ((unsigned char *)value.vendor.data)[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue