File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ void rt_show_version(void)
546
546
RTM_EXPORT (rt_show_version );
547
547
548
548
/* private function */
549
- #define isdigit (c ) ((unsigned)((c) - '0') < 10)
549
+ #define _ISDIGIT (c ) ((unsigned)((c) - '0') < 10)
550
550
551
551
#ifdef RT_PRINTF_LONGLONG
552
552
rt_inline int divide (long long * n , int base )
@@ -591,7 +591,7 @@ rt_inline int divide(long *n, int base)
591
591
rt_inline int skip_atoi (const char * * s )
592
592
{
593
593
register int i = 0 ;
594
- while (isdigit (* * s ))
594
+ while (_ISDIGIT (* * s ))
595
595
i = i * 10 + * ((* s )++ ) - '0' ;
596
596
597
597
return i ;
@@ -837,7 +837,7 @@ rt_int32_t rt_vsnprintf(char *buf,
837
837
838
838
/* get field width */
839
839
field_width = -1 ;
840
- if (isdigit (* fmt )) field_width = skip_atoi (& fmt );
840
+ if (_ISDIGIT (* fmt )) field_width = skip_atoi (& fmt );
841
841
else if (* fmt == '*' )
842
842
{
843
843
++ fmt ;
@@ -856,7 +856,7 @@ rt_int32_t rt_vsnprintf(char *buf,
856
856
if (* fmt == '.' )
857
857
{
858
858
++ fmt ;
859
- if (isdigit (* fmt )) precision = skip_atoi (& fmt );
859
+ if (_ISDIGIT (* fmt )) precision = skip_atoi (& fmt );
860
860
else if (* fmt == '*' )
861
861
{
862
862
++ fmt ;
You can’t perform that action at this time.
0 commit comments