diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2014-03-22 21:48:34 -0400 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2014-03-22 21:48:34 -0400 |
commit | 784534a31f301466d9ab6f8d5b5ccd39a3b9f156 (patch) | |
tree | 01de421f61d18223fb623f99b8c5e450665d676e | |
parent | f9136f68520db4761f05810f97922900ba459f46 (diff) | |
download | json-c-784534a31f301466d9ab6f8d5b5ccd39a3b9f156.tar.gz |
Eliminate the deprecated mc_abort() function and MC_ABORT macro.
-rw-r--r-- | debug.c | 15 | ||||
-rw-r--r-- | debug.h | 8 |
2 files changed, 0 insertions, 23 deletions
@@ -41,21 +41,6 @@ extern void mc_set_syslog(int syslog) _syslog = syslog; } -void mc_abort(const char *msg, ...) -{ - va_list ap; - va_start(ap, msg); -#if HAVE_VSYSLOG - if(_syslog) { - vsyslog(LOG_ERR, msg, ap); - } else -#endif - vprintf(msg, ap); - va_end(ap); - exit(1); -} - - void mc_debug(const char *msg, ...) { va_list ap; @@ -24,10 +24,6 @@ extern int mc_get_debug(void); extern void mc_set_syslog(int syslog); -/** - * @deprecated Use mc_error(), and return an appropriate error. - */ -extern void mc_abort(const char *msg, ...); extern void mc_debug(const char *msg, ...); extern void mc_error(const char *msg, ...); extern void mc_info(const char *msg, ...); @@ -52,10 +48,6 @@ extern void mc_info(const char *msg, ...); #endif -/** - * @deprecated Use MC_ERROR(), and return an appropriate error. - */ -#define MC_ABORT(x, ...) mc_abort(x, ##__VA_ARGS__) #define MC_ERROR(x, ...) mc_error(x, ##__VA_ARGS__) #ifdef MC_MAINTAINER_MODE |