diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-11 14:45:26 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-11 14:45:26 +0200 |
commit | 2630860e6bc935c3daacec186e080eddcc79fe3c (patch) | |
tree | 23705f895e571f8445b0a7d3450402e8cdfa5586 /hugin.h | |
parent | 4a06d163403c729da246fceecabf2348ef532140 (diff) |
Added Makefile targets for 'disabled'. Fix some bugs accordingly.
Diffstat (limited to 'hugin.h')
-rw-r--r-- | hugin.h | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -28,14 +28,19 @@ #ifndef __HUGIN_HUGIN_H__ #define __HUGIN_HUGIN_H__ +typedef enum { + HUG_STATUS_OK = 0, + HUG_STATUS_UNKNOWN_OPTION, + HUG_STATUS_ERROR, +} hug_status_t; + #ifdef DISABLE_HUGIN #define ERR(ch, fmt...) #define WARN(ch, fmt...) #define INFO(ch, fmt...) #define DEBUG(ch, fmt...) -typedef int hug_status_t; -#define hug_init(...) 0 +#define hug_init(...) HUG_STATUS_OK #define hug_close() #else/*DISABLE_HUGIN*/ @@ -122,12 +127,6 @@ enum HUG_OPTION { #endif }; -typedef enum { - HUG_STATUS_OK = 0, - HUG_STATUS_UNKNOWN_OPTION, - HUG_STATUS_ERROR, -} hug_status_t; - /** * @param flags combination of HUG_FLAG values * @param ... list of options (type-value pairs, |