diff --git a/src/main.c b/src/main.c index 6617ed8..f96edf3 100644 --- a/src/main.c +++ b/src/main.c @@ -42,7 +42,7 @@ void setup(void) void close_file(void) { - fclose(input); + fclose(yyin); } int main(void) { @@ -53,7 +53,7 @@ int main(void) { if (NULL == input) { - ERROR("File couldn't be opened!"); + PANIC("File couldn't be opened!"); } yyin = input;