aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
authorpacien2018-05-26 18:45:50 +0200
committerpacien2018-05-26 18:45:50 +0200
commit5ad57d142bcf05886c750018b067865fc97e13fe (patch)
tree3ea20ebe4ca6cb07031280ed015b3cc2af2da857 /src/generator.h
parent67fc7933df394848eeb86a45f37e35ded032e5e9 (diff)
downloadtpc-compiler-5ad57d142bcf05886c750018b067865fc97e13fe.tar.gz
Handle output to file option
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/generator.h b/src/generator.h
index daa7339..825ec8c 100644
--- a/src/generator.h
+++ b/src/generator.h
@@ -6,12 +6,15 @@
6#ifndef __GENERATOR_H__ 6#ifndef __GENERATOR_H__
7#define __GENERATOR_H__ 7#define __GENERATOR_H__
8 8
9#include <stdio.h>
10
9typedef enum scope { 11typedef enum scope {
10 GLOBAL, 12 GLOBAL,
11 LOCAL 13 LOCAL
12} Scope; 14} Scope;
13 15
14extern int nb_globals; 16extern int nb_globals;
17FILE *output;
15 18
16void gen_prologue(); 19void gen_prologue();
17void gen_prologue_continue(); 20void gen_prologue_continue();