*: optimize most of isXXXXX() macros

text    data     bss     dec     hex filename
 824164     453    6812  831429   cafc5 busybox_old
 823730     453    6812  830995   cae13 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-10-23 03:16:08 +02:00
parent 7b4cd6f7b0
commit f2cbb03a37
7 changed files with 33 additions and 23 deletions

View file

@ -460,7 +460,7 @@ read_line(const char *prompt)
line_buffer[--sz] = '\0';
line_ptr = line_buffer;
while (*line_ptr && !isgraph(*line_ptr))
while (*line_ptr != '\0' && (unsigned char)*line_ptr <= ' ')
line_ptr++;
return *line_ptr;
}