diff options
| author | user <user@lubuntu.(none)> | 2013-04-04 14:12:35 -0400 |
|---|---|---|
| committer | user <user@lubuntu.(none)> | 2013-04-04 14:12:35 -0400 |
| commit | 06c6630bbfbf7a0b82ebf22d63bc2fc9aca3bdb9 (patch) | |
| tree | 7ec482d541d79d9a7a2e0c01fccb7d26f59af8d4 /components/finsh/shell.c | |
| parent | 009eccf640a96762b6d8610c0f63497a9bf90c33 (diff) | |
fix compiling warning in finsh shell
Diffstat (limited to 'components/finsh/shell.c')
| -rw-r--r-- | components/finsh/shell.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 53932aa5a0..de6132c1ab 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -76,37 +76,6 @@ char *strdup(const char *s) } #endif -#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__) && !defined(__ADSPBLACKFIN__) && !defined(_MSC_VER) -int isalpha( int ch ) -{ - return (unsigned int)((ch | 0x20) - 'a') < 26u; -} - -int atoi(const char* s) -{ - long int v=0; - int sign=1; - while ( *s == ' ' || (unsigned int)(*s - 9) < 5u) s++; - - switch (*s) - { - case '-': sign=-1; - case '+': ++s; - } - - while ((unsigned int) (*s - '0') < 10u) - { - v=v*10+*s-'0'; ++s; - } - - return sign==-1?-v:v; -} - -int isprint(unsigned char ch) -{ - return (unsigned int)(ch - ' ') < 127u - ' '; -} -#endif #endif #if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR) |
