File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ For log = natural log uncomment the next line. */
39
39
#include <math.h>
40
40
#include <string.h>
41
41
#include <stdio.h>
42
+ #include <ctype.h>
42
43
#include <limits.h>
43
44
44
45
#ifndef NAN
@@ -245,8 +246,8 @@ void next_token(state *s) {
245
246
if (s -> next [0 ] >= 'a' && s -> next [0 ] <= 'z' ) {
246
247
const char * start ;
247
248
start = s -> next ;
248
- while ((s -> next [0 ] >= 'a' && s -> next [ 0 ] <= 'z' ) || (s -> next [0 ] >= '0' && s -> next [ 0 ] <= '9' ) || (s -> next [0 ] == '_' )) s -> next ++ ;
249
-
249
+ while (isalpha (s -> next [0 ]) || isdigit (s -> next [0 ]) || (s -> next [0 ] == '_' )) s -> next ++ ;
250
+
250
251
const te_variable * var = find_lookup (s , start , s -> next - start );
251
252
if (!var ) var = find_builtin (start , s -> next - start );
252
253
You can’t perform that action at this time.
0 commit comments