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
10601060 return 0;
10611061 }
10621062
1063−static int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
1063+ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
10641064 {
10651065 const char *ext;
10661066 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
926926
927927 ST_FUNC BufferedFile *tcc_open(TCCState *s1, const char *filename);
928928 ST_FUNC void tcc_close(BufferedFile *bf);
929+ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags);
929930 ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags);
930931 PUB_FUNC int tcc_set_flag(TCCState *s, const char *flag_name, int value);
931932 PUB_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