From b694d7316741c81d1a15df49672b0399f6eae300 Mon Sep 17 00:00:00 2001 From: Avril Date: Fri, 9 Jul 2021 22:32:15 +0100 Subject: [PATCH] Added "useful" program error return codes `PROG_RET_` in "project.h". These can be used to specify which operation failed and on which input. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Success is still main()->return 0;/exit(0); though.) Fortune for naka's current commit: Future blessing − 末吉 --- include/project.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/project.h b/include/project.h index e6e48c1..8fd34c8 100644 --- a/include/project.h +++ b/include/project.h @@ -37,5 +37,7 @@ #define PROG_RET_UNMAP_HAYSTACK_N_FAILED(h) (((h) << 2) | 1) // Unmapping of argv[1] failed #define PROG_RET_UNMAP_NEEDLE_FAILED 3 +// Internal error +#define PROG_RET_INTERNAL -1 #endif /* _PROJECT_H */