aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-05-12 21:32:32 +0300
committerseyko <seyko2@gmail.com>2015-05-12 21:32:32 +0300
commit06e0753fce99d4b845c054ce343f49149522ff2c (patch)
tree34a08161c830e1475a0a214b541230ff63f8ae4a /tccpp.c
parent1234beccb8e952f01a6c11a60ff493c476f4cb2e (diff)
downloadtinycc-06e0753fce99d4b845c054ce343f49149522ff2c.tar.gz
tinycc-06e0753fce99d4b845c054ce343f49149522ff2c.tar.bz2
minor pp optimizations
* remove free_defines() from tcc_preprocess() all cleanup will be done in tcc_delete * move a preprocessor file closing to tcc_delete too
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tccpp.c b/tccpp.c
index c71edf3..ac251c3 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -3332,12 +3332,10 @@ static void pp_line(TCCState *s1, BufferedFile *f, int level)
/* Preprocess the current file */
ST_FUNC int tcc_preprocess(TCCState *s1)
{
- Sym *define_start;
BufferedFile **iptr;
int token_seen, spcs, level;
preprocess_init(s1);
- define_start = define_stack;
ch = file->buf_ptr[0];
tok_flags = TOK_FLAG_BOL | TOK_FLAG_BOF;
parse_flags = PARSE_FLAG_PREPROCESS
@@ -3388,6 +3386,5 @@ ST_FUNC int tcc_preprocess(TCCState *s1)
fputs(get_tok_str(tok, &tokc), s1->ppfp);
}
- free_defines(define_start);
return 0;
}