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 @@ -543,7 +543,7 @@ void rt_show_version(void)
543
543
RTM_EXPORT (rt_show_version );
544
544
545
545
/* private function */
546
- #define isdigit (c ) ((unsigned)((c) - '0') < 10)
546
+ #define _ISDIGIT (c ) ((unsigned)((c) - '0') < 10)
547
547
548
548
#ifdef RT_PRINTF_LONGLONG
549
549
rt_inline int divide (long long * n , int base )
@@ -588,7 +588,7 @@ rt_inline int divide(long *n, int base)
588
588
rt_inline int skip_atoi (const char * * s )
589
589
{
590
590
register int i = 0 ;
591
- while (isdigit (* * s ))
591
+ while (_ISDIGIT (* * s ))
592
592
i = i * 10 + * ((* s )++ ) - '0' ;
593
593
594
594
return i ;
@@ -834,7 +834,7 @@ rt_int32_t rt_vsnprintf(char *buf,
834
834
835
835
/* get field width */
836
836
field_width = -1 ;
837
- if (isdigit (* fmt )) field_width = skip_atoi (& fmt );
837
+ if (_ISDIGIT (* fmt )) field_width = skip_atoi (& fmt );
838
838
else if (* fmt == '*' )
839
839
{
840
840
++ fmt ;
@@ -853,7 +853,7 @@ rt_int32_t rt_vsnprintf(char *buf,
853
853
if (* fmt == '.' )
854
854
{
855
855
++ fmt ;
856
- if (isdigit (* fmt )) precision = skip_atoi (& fmt );
856
+ if (_ISDIGIT (* fmt )) precision = skip_atoi (& fmt );
857
857
else if (* fmt == '*' )
858
858
{
859
859
++ fmt ;
You can’t perform that action at this time.
0 commit comments