use skip_whitespace where appropriate

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

No files matched your search

+3 -3
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++; }