From f8e50700cd0eb93154f5c025ef20d428986b856c Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 7 Oct 2016 21:21:40 +0200 Subject: Cleanup (resolves #9) --- interpreter/fuspel.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'interpreter/fuspel.c') diff --git a/interpreter/fuspel.c b/interpreter/fuspel.c index 1cbdd4c..b9ccd12 100644 --- a/interpreter/fuspel.c +++ b/interpreter/fuspel.c @@ -14,11 +14,11 @@ #define LINE_LENGTH 139 -fuspel* import(fuspel* already_parsed, char* fname) { - token_list* tokens = NULL; - fuspel* pgm; - FILE* f; - char* fname_; +struct fuspel *import(struct fuspel *already_parsed, char *fname) { + struct token_list *tokens = NULL; + struct fuspel *pgm; + FILE *f; + char *fname_; fname_ = my_calloc(1, strlen(fname) + 6); strcpy(fname_, fname); @@ -67,7 +67,7 @@ static struct argp_option options[] = { { 0 } }; struct environment { - fuspel* program; + struct fuspel *program; bool printProgram; }; @@ -88,8 +88,8 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) { static struct argp argp = { options, parse_opt, args_doc, doc, 0, 0, 0 }; -int main(int argc, char* argv[]) { - expression* result; +int main(int argc, char *argv[]) { + struct expression *result; struct environment env; env.printProgram = false; -- cgit v1.2.3