diff options
| author | seyko <seyko2@gmail.com> | 2015-05-12 21:32:32 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-05-12 21:32:32 +0300 |
| commit | 06e0753fce99d4b845c054ce343f49149522ff2c (patch) | |
| tree | 34a08161c830e1475a0a214b541230ff63f8ae4a /libtcc.c | |
| parent | 1234beccb8e952f01a6c11a60ff493c476f4cb2e (diff) | |
| download | tinycc-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 'libtcc.c')
| -rw-r--r-- | libtcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1217,6 +1217,10 @@ LIBTCCAPI void tcc_delete(TCCState *s1) tcc_cleanup(); + /* close a preprocessor output */ + if (s1->ppfp && s1->ppfp != stdout) + fclose(s1->ppfp); + /* free all sections */ for(i = 1; i < s1->nb_sections; i++) free_section(s1->sections[i]); |
