aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@landau.phys.spbu.ru>2010-06-16 16:54:24 +0400
committerKirill Smelkov <kirr@mns.spb.ru>2010-06-20 21:36:47 +0400
commitbdae4a59c3a74b2ff464c02029c625251719a7d7 (patch)
treeff92d915614eeecb0516f1c9015007d8c44b53c7 /tcc.h
parenta919a373da07305e763d1cb4ecb3a5a44bdebb2a (diff)
downloadtinycc-bdae4a59c3a74b2ff464c02029c625251719a7d7.tar.gz
tinycc-bdae4a59c3a74b2ff464c02029c625251719a7d7.tar.bz2
tcc: Refactor "compute default outfile name" into libtcc function
Since for upcoming -MD support default _compile_ output file be needed even when preprocesssing (tcc -E), let's move this code out of one particular condition block into a common function, so that we could use it in deps generation code too. v2: - As suggested by grischka, moved into libtcc function instead of always computing near start of main() - There is a FIXME about how to return result - I don't want to bother callers with allocating temp buffers, not I think it will be a good idea to hook default_target to TCCState. Clearly, I'm to used to things like std::string and python's str...
Diffstat (limited to 'tcc.h')
0 files changed, 0 insertions, 0 deletions