Update main.c
changed close_file Function changed ERROR to PANIC
This commit is contained in:
parent
05d603f7ac
commit
a85558e118
|
@ -42,7 +42,7 @@ void setup(void)
|
||||||
|
|
||||||
void close_file(void)
|
void close_file(void)
|
||||||
{
|
{
|
||||||
fclose(input);
|
fclose(yyin);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
@ -53,7 +53,7 @@ int main(void) {
|
||||||
|
|
||||||
if (NULL == input)
|
if (NULL == input)
|
||||||
{
|
{
|
||||||
ERROR("File couldn't be opened!");
|
PANIC("File couldn't be opened!");
|
||||||
}
|
}
|
||||||
|
|
||||||
yyin = input;
|
yyin = input;
|
||||||
|
|
Loading…
Reference in New Issue