added path checking for input file and exit codes

This commit is contained in:
2026-01-08 12:34:05 +01:00
parent b380f203e3
commit 25a9dfb349
2 changed files with 50 additions and 10 deletions

9
src/exit_code.h Normal file
View File

@@ -0,0 +1,9 @@
typedef enum {
EXIT_OK = 0,
ERR_ARGUMENT = 1,
ERR_FILE = 2,
ERR_DATABASE = 3,
ERR_CONNECTION = 4,
ERR_MEMORY = 5,
ERR_QUERY = 6,
} exit_code;