Unified · Split
| @@ -9,7 +9,6 @@ Bugs: · 8 unmodified lines | |||
| 9 | - constructors | 9 | - constructors |
| 10 | - cast bug (Peter Wang) | 10 | - cast bug (Peter Wang) |
| 11 | - define incomplete type if defined several times (Peter Wang). | 11 | - define incomplete type if defined several times (Peter Wang). |
| 12 | - configure --cc=tcc (still one bug in libtcc1.c) | ||
| 13 | - test binutils/gcc compile | 12 | - test binutils/gcc compile |
| 14 | - tci patch + argument. | 13 | - tci patch + argument. |
| 15 | - see -lxxx bug (Michael Charity). | 14 | - see -lxxx bug (Michael Charity). |
| @@ -571,7 +571,8 @@ static void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap) · 570 unmodified lines | |||
| 571 | 571 | ||
| 572 | buf[0] = '\0'; | 572 | buf[0] = '\0'; |
| 573 | /* use upper file if inline ":asm:" or token ":paste:" */ | 573 | /* use upper file if inline ":asm:" or token ":paste:" */ |
| 574 | for (f = file; f && f->filename[0] == ':'; f = f->prev); | 574 | for (f = file; f && f->filename[0] == ':'; f = f->prev) |
| 575 | ; | ||
| 575 | if (f) { | 576 | if (f) { |
| 576 | for(pf = s1->include_stack; pf < s1->include_stack_ptr; pf++) | 577 | for(pf = s1->include_stack; pf < s1->include_stack_ptr; pf++) |
| 577 | strcat_printf(buf, sizeof(buf), "In file included from %s:%d:\n", | 578 | strcat_printf(buf, sizeof(buf), "In file included from %s:%d:\n", |
| @@ -924,7 +925,7 @@ LIBTCCAPI TCCState *tcc_new(void) · 346 unmodified lines | |||
| 924 | /* standard defines */ | 925 | /* standard defines */ |
| 925 | tcc_define_symbol(s, "__STDC__", NULL); | 926 | tcc_define_symbol(s, "__STDC__", NULL); |
| 926 | tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); | 927 | tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); |
| 927 | tcc_define_symbol(s, "__STDC_HOSTED__", "1"); | 928 | tcc_define_symbol(s, "__STDC_HOSTED__", NULL); |
| 928 | 929 | ||
| 929 | /* target defines */ | 930 | /* target defines */ |
| 930 | #if defined(TCC_TARGET_I386) | 931 | #if defined(TCC_TARGET_I386) |
| @@ -597,8 +597,7 @@ are supported. · 596 unmodified lines | |||
| 597 | 597 | ||
| 598 | @itemize | 598 | @itemize |
| 599 | 599 | ||
| 600 | @item @code{__TINYC__} is a predefined macro to @code{1} to | 600 | @item @code{__TINYC__} is a predefined macro to indicate that you use TCC. |
| 601 | indicate that you use TCC. | ||
| 602 | 601 | ||
| 603 | @item @code{#!} at the start of a line is ignored to allow scripting. | 602 | @item @code{#!} at the start of a line is ignored to allow scripting. |
| 604 | 603 | ||
| @@ -78,7 +78,6 @@ struct macro_level { · 77 unmodified lines | |||
| 78 | const int *p; | 78 | const int *p; |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| 81 | ST_FUNC void next_nomacro(void); | ||
| 82 | static void next_nomacro_spc(void); | 81 | static void next_nomacro_spc(void); |
| 83 | static void macro_subst( | 82 | static void macro_subst( |
| 84 | TokenString *tok_str, | 83 | TokenString *tok_str, |