use skip_whitespace where appropriate

This commit is contained in:
Denis Vlasenko
2006-10-25 12:46:03 +00:00
parent c8400a2162
commit d18a3a20db
8 changed files with 98 additions and 105 deletions

View File

@@ -179,10 +179,10 @@ static void stack_machine(const char *argument)
*/
static char *get_token(char **buffer)
{
char *start = NULL;
char *current = *buffer;
char *start = NULL;
char *current;
while (isspace(*current)) { current++; }
current = skip_whitespace(*buffer);
if (*current != 0) {
start = current;
while (!isspace(*current) && *current != 0) { current++; }