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