Faster walk
This commit is contained in:
parent
070317d22d
commit
70a158d3da
|
@ -16,8 +16,8 @@ static char *regs[0x100];
|
|||
static char *
|
||||
walk(char *s)
|
||||
{
|
||||
int depth = 0;
|
||||
char c;
|
||||
int depth = 0;
|
||||
if(s[0] == '(') {
|
||||
while((c = *s++)) {
|
||||
if(c == '(') depth++;
|
||||
|
@ -25,8 +25,8 @@ walk(char *s)
|
|||
if(!depth) return s;
|
||||
}
|
||||
}
|
||||
while((c = *s++))
|
||||
if(spacer(c)) return s - 1;
|
||||
while(!spacer(s[0]) && (c = *s++))
|
||||
;
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue