@@ -300,8 +300,9 @@ static size_t _out_rev(out_fct_type out, char* buffer, size_t idx, size_t maxlen
300
300
}
301
301
302
302
303
- // internal itoa format
304
- static size_t print_integer_format (out_fct_type out , char * buffer , size_t idx , size_t maxlen , char * buf , size_t len , bool negative , numeric_base_t base , unsigned int precision , unsigned int width , unsigned int flags )
303
+ // Invoked by print_integer after the actual number has been printed, performing necessary
304
+ // work on the number's prefix (as the number is initially printed in reverse order)
305
+ static size_t print_integer_finalization (out_fct_type out , char * buffer , size_t idx , size_t maxlen , char * buf , size_t len , bool negative , numeric_base_t base , unsigned int precision , unsigned int width , unsigned int flags )
305
306
{
306
307
size_t unpadded_len = len ;
307
308
@@ -397,7 +398,7 @@ static size_t print_integer(out_fct_type out, char* buffer, size_t idx, size_t m
397
398
} while (value && (len < PRINT_INTEGER_BUFFER_SIZE ));
398
399
}
399
400
400
- return print_integer_format (out , buffer , idx , maxlen , buf , len , negative , base , precision , width , flags );
401
+ return print_integer_finalization (out , buffer , idx , maxlen , buf , len , negative , base , precision , width , flags );
401
402
}
402
403
403
404
#if (PRINTF_SUPPORT_DECIMAL_SPECIFIERS || PRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS )
0 commit comments