fix: replace stdlib calls with forth_* and fix UB

Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
2026-05-04 10:34:47 +03:00
parent dbf4eb5d0e
commit fcbc810db8
2 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ char* next_token(void) {
}
if (*input_ptr == '\0') return NULL;
char* start = input_ptr;
while (*input_ptr != '\0' && !isspace((unsigned char)*input_ptr)) {
while (*input_ptr != '\0' && !forth_isspace((unsigned char)*input_ptr)) {
input_ptr++;
}
if (*input_ptr != '\0') {