split files

This commit is contained in:
hugogogo
2026-04-28 22:35:46 +02:00
parent 48221894c0
commit fb81f200d9
7 changed files with 127 additions and 104 deletions

17
src/errors.c Normal file
View File

@@ -0,0 +1,17 @@
#include "errors.h"
int stop_errors(int err)
{
switch (err)
{
case ERROR_UNKNOWN_TOKEN:
ft_putstr_fd("error: unknown token\n", STDERR_FILENO);
break;
default:
ft_putstr_fd("unknown error\n", STDERR_FILENO);
break;
}
exit(err);
}