From d3a70a285d03224fde9e6ef36eba9de21b773f39 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Wed, 28 Oct 2015 23:03:37 +0100 Subject: Revised error handling - Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3) --- types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'types.h') diff --git a/types.h b/types.h index 30475a2..47d115c 100644 --- a/types.h +++ b/types.h @@ -21,6 +21,8 @@ #include +#define CLEANUP + typedef enum { BO_BIG_ENDIAN, BO_LITTLE_ENDIAN -- cgit v1.2.3-54-g00ecf