Implement -dM preprocessor option as in gcc
commite946eb2a4109e0de5f8514457f851897a4824c3e
authorVlad Vissoultchev <wqweto@gmail.com>
Wed, 6 Apr 2016 15:57:11 +0000 (6 18:57 +0300)
committerVlad Vissoultchev <wqweto@gmail.com>
Wed, 6 Apr 2016 15:57:11 +0000 (6 18:57 +0300)
treeb5b0b86b298e2d2c8bb5cb78e1573d10978de43e
parent0691b7630b89bf3de5f7691802cb923bd7c1fd99
Implement -dM preprocessor option as in gcc

There was already support for -dD option but in contrast -dM dumps only `#define` directives w/o actual preprocessor output.

The original -dD output differs from gcc output by additional comment in front of `#define`s so this quirk is left for -dM as well.
libtcc.c
tcc.c
tcc.h
tccpp.c