Faster walk

This commit is contained in:
Devine Lu Linvega 2024-04-04 19:40:16 -07:00
parent 070317d22d
commit 70a158d3da
1 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@ static char *regs[0x100];
static char * static char *
walk(char *s) walk(char *s)
{ {
int depth = 0;
char c; char c;
int depth = 0;
if(s[0] == '(') { if(s[0] == '(') {
while((c = *s++)) { while((c = *s++)) {
if(c == '(') depth++; if(c == '(') depth++;
@ -25,8 +25,8 @@ walk(char *s)
if(!depth) return s; if(!depth) return s;
} }
} }
while((c = *s++)) while(!spacer(s[0]) && (c = *s++))
if(spacer(c)) return s - 1; ;
return s; return s;
} }