mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
remove doubled prototype
fix documentation about __TINYC__ define __STDC_HOSTED__ like __STDC__
This commit is contained in:
parent
5d6cfe855a
commit
0db7f616ad
1
TODO
1
TODO
@ -9,7 +9,6 @@ Bugs:
|
||||
- constructors
|
||||
- cast bug (Peter Wang)
|
||||
- define incomplete type if defined several times (Peter Wang).
|
||||
- configure --cc=tcc (still one bug in libtcc1.c)
|
||||
- test binutils/gcc compile
|
||||
- tci patch + argument.
|
||||
- see -lxxx bug (Michael Charity).
|
||||
|
5
libtcc.c
5
libtcc.c
@ -571,7 +571,8 @@ static void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap)
|
||||
|
||||
buf[0] = '\0';
|
||||
/* use upper file if inline ":asm:" or token ":paste:" */
|
||||
for (f = file; f && f->filename[0] == ':'; f = f->prev);
|
||||
for (f = file; f && f->filename[0] == ':'; f = f->prev)
|
||||
;
|
||||
if (f) {
|
||||
for(pf = s1->include_stack; pf < s1->include_stack_ptr; pf++)
|
||||
strcat_printf(buf, sizeof(buf), "In file included from %s:%d:\n",
|
||||
@ -924,7 +925,7 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||
/* standard defines */
|
||||
tcc_define_symbol(s, "__STDC__", NULL);
|
||||
tcc_define_symbol(s, "__STDC_VERSION__", "199901L");
|
||||
tcc_define_symbol(s, "__STDC_HOSTED__", "1");
|
||||
tcc_define_symbol(s, "__STDC_HOSTED__", NULL);
|
||||
|
||||
/* target defines */
|
||||
#if defined(TCC_TARGET_I386)
|
||||
|
@ -597,8 +597,7 @@ are supported.
|
||||
|
||||
@itemize
|
||||
|
||||
@item @code{__TINYC__} is a predefined macro to @code{1} to
|
||||
indicate that you use TCC.
|
||||
@item @code{__TINYC__} is a predefined macro to indicate that you use TCC.
|
||||
|
||||
@item @code{#!} at the start of a line is ignored to allow scripting.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user