tcc_add_file(): preserve s->filetype
commitace1225492af1ac82a11e571b768d65e4cdc12c4
authorgrischka <grischka>
Thu, 31 May 2018 21:51:59 +0000 (31 23:51 +0200)
committergrischka <grischka>
Fri, 1 Jun 2018 10:41:17 +0000 (1 12:41 +0200)
treeaa73d93b4577805c9cb8e56c470f60aa7f4007c5
parent671dcace82debc4548029ff4fcc1a7f4db6d05e6
tcc_add_file(): preserve s->filetype

This is supposed to fix a bug where libtcc eventually was trying to
compile libtcc1.a as C source code.

Anyway, there is now only two functions that refer to s->filetype,
tcc_add_file() and tcc_add_library().
libtcc.c
tcc.c
tcc.h
tccelf.c
tccpe.c