aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-03 14:19:14 +0300
committerseyko <seyko2@gmail.com>2015-03-03 14:19:14 +0300
commit50cdccf3efaa13dd11d1533b73fb34e0429d5cd6 (patch)
tree0239fe1588a10cc4d70c80a2e2aba9f1ca185f4a /tcc.h
parent40418f87c7da9d3358363769fb13c558b43f2847 (diff)
downloadtinycc-50cdccf3efaa13dd11d1533b73fb34e0429d5cd6.tar.gz
tinycc-50cdccf3efaa13dd11d1533b73fb34e0429d5cd6.tar.bz2
Added a gcc preprocessor options -P, -P1
tcc -E -P do not output a #line directive, a gcc compatible option tcc -E -P1 don't follow a gcc preprocessor style and do output a standard #line directive. In such case we don't lose a location info when we going to compile a resulting file wtith a compiler not understanding a gnu style line info.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index e77a3fb..f268aed 100644
--- a/tcc.h
+++ b/tcc.h
@@ -656,6 +656,11 @@ struct TCCState {
/* output file for preprocessing (-E) */
FILE *ppfp;
+ enum {
+ LINE_MACRO_OUTPUT_FORMAT_GCC,
+ LINE_MACRO_OUTPUT_FORMAT_NONE,
+ LINE_MACRO_OUTPUT_FORMAT_STD,
+ } Pflag;
/* for -MD/-MF: collected dependencies for this compilation */
char **target_deps;