uniformize files

This commit is contained in:
Daniel Marjamäki 2008-12-25 18:24:57 +00:00
parent 5cfa05e180
commit 8c08c4d66b
1 changed files with 7 additions and 7 deletions

View File

@ -140,8 +140,8 @@ bool TOKEN::simpleMatch(const TOKEN *tok, const char pattern[])
const char *current, *next; const char *current, *next;
current = pattern; current = pattern;
next = strchr(pattern, ' '); next = strchr(pattern, ' ');
if ( !next ) if ( !next )
next = pattern + strlen(pattern); next = pattern + strlen(pattern);
while ( *current ) while ( *current )
@ -152,11 +152,11 @@ bool TOKEN::simpleMatch(const TOKEN *tok, const char pattern[])
return false; return false;
current = next; current = next;
if ( *next ) if ( *next )
{ {
next = strchr(++current, ' '); next = strchr(++current, ' ');
if ( !next ) if ( !next )
next = current + strlen(current); next = current + strlen(current);
} }
tok = tok->next(); tok = tok->next();
} }