libtcc: accept tcc_define_symbol(s1, "sym=value", NULL)
commit0ee4989ed339ae88529f42cb681ddefbd6fe697d
authorgrischka <grischka>
Sat, 27 Jun 2020 15:02:12 +0000 (27 17:02 +0200)
committergrischka <grischka>
Mon, 6 Jul 2020 11:00:47 +0000 (6 13:00 +0200)
tree6f711cd5be19b9f523fe2cb2efe91520ce36acc6
parent90e9e34bec4116ebc69e64a272b49e01e2693371
libtcc: accept tcc_define_symbol(s1, "sym=value", NULL)

Thus it can parse command-line -Dsym=value directly, for the
convenience of libtcc users or tcc itself

Also used in libtcc_test_mt.c to avoid strdup().
libtcc.c
libtcc.h
tests/libtcc_test_mt.c