we use gnu extension "case 0x80 ... 0xFF" for tcc & gcc and perform test if(c & 0x80) for other compilers
Unified · Split
| @@ -2340,8 +2340,11 @@ static inline void next_nomacro1(void) · 2339 unmodified lines | ||
| 2340 | 2340 | p = file->buf_ptr; |
| 2341 | 2341 | redo_no_start: |
| 2342 | 2342 | c = *p; |
| 2343 | +#if (__TINYC__ || __GNUC__) | |
| 2344 | +#else | |
| 2343 | 2345 | if (c & 0x80) |
| 2344 | 2346 | goto parse_ident_fast; |
| 2347 | +#endif | |
| 2345 | 2348 | switch(c) { |
| 2346 | 2349 | case ' ': |
| 2347 | 2350 | case '\t': |
| @@ -2451,6 +2454,7 @@ maybe_newline: · 103 unmodified lines | ||
| 2451 | 2454 | case 'A' ... 'K': |
| 2452 | 2455 | case 'M' ... 'Z': |
| 2453 | 2456 | case '_': |
| 2457 | + case 0x80 ... 0xFF: | |
| 2454 | 2458 | #else |
| 2455 | 2459 | case 'a': case 'b': case 'c': case 'd': |
| 2456 | 2460 | case 'e': case 'f': case 'g': case 'h': |