History

compilation speed of the tccboot correction

we use gnu extension "case 0x80 ... 0xFF" for tcc & gcc and perform test if(c & 0x80) for other compilers

seyko committed 10 years ago

Commit 983c40f1 parent 936819a1 file · +4 −0Browse files

Unified · Split

tccpp.c+4−0
@@ -2340,8 +2340,11 @@ static inline void next_nomacro1(void) · 2339 unmodified lines
23402340 p = file->buf_ptr;
23412341 redo_no_start:
23422342 c = *p;
2343+#if (__TINYC__ || __GNUC__)
2344+#else
23432345 if (c & 0x80)
23442346 goto parse_ident_fast;
2347+#endif
23452348 switch(c) {
23462349 case ' ':
23472350 case '\t':
@@ -2451,6 +2454,7 @@ maybe_newline: · 103 unmodified lines
24512454 case 'A' ... 'K':
24522455 case 'M' ... 'Z':
24532456 case '_':
2457+ case 0x80 ... 0xFF:
24542458 #else
24552459 case 'a': case 'b': case 'c': case 'd':
24562460 case 'e': case 'f': case 'g': case 'h':

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t