aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2016-04-15 17:15:11 +0300
committerseyko <seyko2@gmail.com>2016-04-15 17:15:11 +0300
commitc6dc756d4e6905df8498596f5bd0c5a6aa1c6d24 (patch)
tree06ee2a1b3b170b689f3b063c4b17e1ac60e3a19d /tcc.h
parent16cbca281fe5d22cd3e6f548cae59d19c31d30ac (diff)
downloadtinycc-c6dc756d4e6905df8498596f5bd0c5a6aa1c6d24.tar.gz
tinycc-c6dc756d4e6905df8498596f5bd0c5a6aa1c6d24.tar.bz2
preprocessor oprtion -C (keep comments)
This is done by impression of the pcc -C option. Usual execution path and speed are not changed.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h3
1 files changed, 2 insertions, 1 deletions
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);