From: Eric Haszlakiewicz Date: Sun, 23 Mar 2014 01:48:34 +0000 (-0400) Subject: Eliminate the deprecated mc_abort() function and MC_ABORT macro. X-Git-Tag: json-c-0.12-20140410~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=784534a31f301466d9ab6f8d5b5ccd39a3b9f156;p=json-c Eliminate the deprecated mc_abort() function and MC_ABORT macro. --- diff --git a/debug.c b/debug.c index e0294ca..3b64b59 100644 --- a/debug.c +++ b/debug.c @@ -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; diff --git a/debug.h b/debug.h index f2dc541..80ca3e4 100644 --- a/debug.h +++ b/debug.h @@ -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