History

remove doubled prototype fix documentation about __TINYC__ define __STDC_HOSTED__ like __STDC__

Urs Janssen committed 13 years ago

Commit 0db7f611 parent 5d6cfe84 files · +4 −6Browse files

Unified · Split

4 files
  1. TODO +0 −1
  2. libtcc.c +3 −2
  3. tcc-doc.texi +1 −2
  4. tccpp.c +0 −1
TODO+0−1
@@ -9,7 +9,6 @@ Bugs: · 8 unmodified lines
99 - constructors
1010 - cast bug (Peter Wang)
1111 - define incomplete type if defined several times (Peter Wang).
12−- configure --cc=tcc (still one bug in libtcc1.c)
1312 - test binutils/gcc compile
1413 - tci patch + argument.
1514 - see -lxxx bug (Michael Charity).
libtcc.c+3−2
@@ -571,7 +571,8 @@ static void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap) · 570 unmodified lines
571571
572572 buf[0] = '\0';
573573 /* 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+ ;
575576 if (f) {
576577 for(pf = s1->include_stack; pf < s1->include_stack_ptr; pf++)
577578 strcat_printf(buf, sizeof(buf), "In file included from %s:%d:\n",
@@ -924,7 +925,7 @@ LIBTCCAPI TCCState *tcc_new(void) · 346 unmodified lines
924925 /* standard defines */
925926 tcc_define_symbol(s, "__STDC__", NULL);
926927 tcc_define_symbol(s, "__STDC_VERSION__", "199901L");
927− tcc_define_symbol(s, "__STDC_HOSTED__", "1");
928+ tcc_define_symbol(s, "__STDC_HOSTED__", NULL);
928929
929930 /* target defines */
930931 #if defined(TCC_TARGET_I386)
tcc-doc.texi+1−2
@@ -597,8 +597,7 @@ are supported. · 596 unmodified lines
597597
598598 @itemize
599599
600−@item @code{__TINYC__} is a predefined macro to @code{1} to
601−indicate that you use TCC.
600+@item @code{__TINYC__} is a predefined macro to indicate that you use TCC.
602601
603602 @item @code{#!} at the start of a line is ignored to allow scripting.
604603
tccpp.c+0−1
@@ -78,7 +78,6 @@ struct macro_level { · 77 unmodified lines
7878 const int *p;
7979 };
8080
81−ST_FUNC void next_nomacro(void);
8281 static void next_nomacro_spc(void);
8382 static void macro_subst(
8483 TokenString *tok_str,

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