2013-09-19 13:55:06 +08:00
|
|
|
#ifndef __RETCODE_H__
|
|
|
|
#define __RETCODE_H__
|
|
|
|
|
|
|
|
#ifdef FALSE
|
2016-05-19 14:02:43 +08:00
|
|
|
#error "FALSE shouldn't be defined"
|
2013-09-19 13:55:06 +08:00
|
|
|
#undef FALSE
|
|
|
|
#endif
|
|
|
|
#ifdef TRUE
|
2016-05-19 14:02:43 +08:00
|
|
|
#error "TRUE shouldn't be defined"
|
2013-09-19 13:55:06 +08:00
|
|
|
#undef TRUE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum {
|
2016-05-19 14:02:43 +08:00
|
|
|
FALSE, /* 0, false, no, bad, etc. */
|
|
|
|
TRUE /* 1, true, yes, good, etc. */
|
2013-09-19 13:55:06 +08:00
|
|
|
} boolean ;
|
|
|
|
|
2016-05-19 14:02:43 +08:00
|
|
|
#define ABORT 2 /* 2, death, ^G, abort, etc. */
|
2013-09-19 13:55:06 +08:00
|
|
|
|
|
|
|
#endif
|