libtcc: new LIBTCCAPI tcc_set_options(TCCState*, const char*str)
commit05108a3b0a8eff70739b253b8995999b1861f9f2
authorgrischka <grischka>
Tue, 12 Feb 2013 18:13:28 +0000 (12 19:13 +0100)
committergrischka <grischka>
Tue, 12 Feb 2013 18:13:28 +0000 (12 19:13 +0100)
tree690c17ebe3cd0479e278bc3b65e00eba7ec674fd
parent829655949b7964c66e1f7da9d44c19655dba88aa
libtcc: new LIBTCCAPI tcc_set_options(TCCState*, const char*str)

This replaces       -> use instead:
-----------------------------------
- tcc_set_linker    -> tcc_set_options(s, "-Wl,...");
- tcc_set_warning   -> tcc_set_options(s, "-W...");
- tcc_enable_debug  -> tcc_set_options(s, "-g");

parse_args is moved to libtcc.c (now tcc_parse_args).

Also some cleanups:
- reorder TCCState members
- add some comments here and there
- do not use argv's directly, make string copies
- use const char* in tcc_set_linker
- tccpe: use fd instead of fp

tested with -D MEM_DEBUG: 0 bytes left
12 files changed:
Changelog
libtcc.c
libtcc.h
tcc.c
tcc.h
tccelf.c
tccpe.c
tccpp.c
tccrun.c
win32/tcc-win32.txt
win32/tools/tiny_impdef.c
win32/tools/tiny_libmaker.c