From c6dc756d4e6905df8498596f5bd0c5a6aa1c6d24 Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 15 Apr 2016 17:15:11 +0300 Subject: preprocessor oprtion -C (keep comments) This is done by impression of the pcc -C option. Usual execution path and speed are not changed. --- tcc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index dd4ecd5..208af44 100644 --- a/tcc.h +++ b/tcc.h @@ -812,6 +812,7 @@ struct TCCState { char *option_m; /* only -m32/-m64 handled */ int print_search_dirs; /* option */ int option_r; /* option -r */ + int option_C; /* option -C, keep comments when -E */ int do_bench; /* option -bench */ int gen_deps; /* option -MD */ char *deps_outfile; /* option -MF */ @@ -1406,7 +1407,7 @@ ST_FUNC void *tcc_get_symbol_err(TCCState *s, const char *name); #ifndef TCC_TARGET_PE ST_FUNC int tcc_load_dll(TCCState *s1, int fd, const char *filename, int level); ST_FUNC int tcc_load_ldscript(TCCState *s1); -ST_FUNC uint8_t *parse_comment(uint8_t *p); +ST_FUNC uint8_t *parse_comment(uint8_t *p, int skip); ST_FUNC void minp(void); ST_INLN void inp(void); ST_FUNC int handle_eob(void); -- cgit v1.3.1