From 226c63b63adb80e4ef137186d3b6886fff6ca16f Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 19 Sep 2013 13:55:06 +0800 Subject: [PATCH] Add retcode.h missing from commit d17334e3ae. --- retcode.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 retcode.h diff --git a/retcode.h b/retcode.h new file mode 100644 index 0000000..947244a --- /dev/null +++ b/retcode.h @@ -0,0 +1,25 @@ +#ifndef __RETCODE_H__ +#define __RETCODE_H__ + +#ifdef FALSE +#undef FALSE +#endif +#ifdef TRUE +#undef TRUE +#endif + +#if 0 +#define FALSE 0 /* False, no, bad, etc. */ +#define TRUE 1 /* True, yes, good, etc. */ +#define ABORT 2 /* Death, ^G, abort, etc. */ +#define FAILED 3 /* not-quite fatal false return */ +#endif + +typedef enum { + FALSE, + TRUE +} boolean ; + +#define ABORT 2 + +#endif