scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 9f2e3f1c43c67f3ae3cca01bced10b670600c88c
parent 6d3664ac10f50ea4ac3618404fa3522a226fbc81
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 17 Jul 2015 20:29:28 +0200

make fp of type FILE * and use needed includes

Diffstat:
cc1/cc1.h | 2+-
cc1/decl.c | 1+
cc1/symbol.c | 1+
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -73,7 +73,7 @@ struct yystype { struct input { char *fname; - void *fp; + FILE *fp; char *line, *begin, *p; struct input *next; unsigned short nline; diff --git a/cc1/decl.c b/cc1/decl.c @@ -1,6 +1,7 @@ #include <inttypes.h> #include <setjmp.h> +#include <stdio.h> #include <string.h> #include "../inc/sizes.h" diff --git a/cc1/symbol.c b/cc1/symbol.c @@ -1,5 +1,6 @@ #include <inttypes.h> +#include <stdio.h> #include <stdlib.h> #include <string.h>