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:
+1
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user