diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-01-28 21:55:00 +0100 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-01-28 21:55:00 +0100 |
commit | 7e9c9d1de493eab760c8a2269a79f1a3330f8790 (patch) | |
tree | 7b7ca9ad8795515450afcf275b0deae68bbca2d9 /msg.h | |
parent | 09b08d086dc36a2575ed26210e6f39f71c7a446f (diff) | |
download | dctrl-tools-7e9c9d1de493eab760c8a2269a79f1a3330f8790.tar.gz |
Import 2.5
Diffstat (limited to 'msg.h')
-rw-r--r-- | msg.h | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -35,23 +35,14 @@ void fail(void) { exit(2); } #define L_INFORMATIONAL 1 #define L_DEBUG 0 -#define PROGNAME_MAXLEN 64 - #if !defined(NDEBUG) && !defined(TEST_NODEBUG) && defined(ENABLE_L_DEBUG) # define INCLUDE_DEBUG_MSGS #endif -#ifdef MSG_C__ -int loglevel = L_IMPORTANT; -char progname [PROGNAME_MAXLEN]; -#endif - inline static int do_msg(int severity) { -#ifndef MSG_C__ extern int loglevel; -#endif #if defined(TEST_NODEBUG) if (severity == L_DEBUG) { @@ -66,18 +57,14 @@ do_msg(int severity) inline static char const * get_progname(void) { -#ifndef MSG_C__ - extern const char progname [PROGNAME_MAXLEN]; -#endif + extern const char progname []; return progname; } static inline void record_error(void) { -#ifndef MSG_C__ extern bool errors; -#endif errors = 1; } @@ -160,11 +147,8 @@ msg_set_progname (const char * pn); static inline bool errors_reported(void) { -#ifndef MSG_C__ extern bool errors; -#endif return errors; } - #endif /* MSG_H__ */ |