History

libtcc.c: fix compilation failure (inconsistent tcc_add_file_internal)

gcc -o libtcc1.o -c lib/libtcc1.c -O2 -Wall libtcc.c: At top level: libtcc.c:1063: error: static declaration of 'tcc_add_file_internal' follows non-static declaration tccelf.c:2915: note: previous implicit declaration of 'tcc_add_file_internal' was here

Sergei Trofimovich committed 16 years ago

Commit 83b0bd31 parent e4ed4e72 files · +2 −1Browse files

Unified · Split

2 files
  1. libtcc.c +1 −1
  2. tcc.h +1 −0
libtcc.c+1−1
@@ -1060,7 +1060,7 @@ LIBTCCAPI int tcc_add_sysinclude_path(TCCState *s1, const char *pathname) · 1059 unmodified lines
1060 return 0;1060 return 0;
1061}1061}
1062 1062
1063static int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)1063ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
1064{1064{
1065 const char *ext;1065 const char *ext;
1066 ElfW(Ehdr) ehdr;1066 ElfW(Ehdr) ehdr;
tcc.h+1−0
@@ -926,6 +926,7 @@ ST_FUNC Sym *global_identifier_push(int v, int t, int c); · 925 unmodified lines
926 926
927ST_FUNC BufferedFile *tcc_open(TCCState *s1, const char *filename);927ST_FUNC BufferedFile *tcc_open(TCCState *s1, const char *filename);
928ST_FUNC void tcc_close(BufferedFile *bf);928ST_FUNC void tcc_close(BufferedFile *bf);
929ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags);
929ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags);930ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags);
930PUB_FUNC int tcc_set_flag(TCCState *s, const char *flag_name, int value);931PUB_FUNC int tcc_set_flag(TCCState *s, const char *flag_name, int value);
931PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time);932PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time);

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