X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/75fc1240d8975c8513eadd6b9ccb7c6d7be618b0..31861aea5508509f3c98d6fb26aefc0d79d29e10:/src/error.c diff --git a/src/error.c b/src/error.c index 8071547..fb74bd5 100644 --- a/src/error.c +++ b/src/error.c @@ -24,11 +24,12 @@ #include #include #include -#include #include "error.h" +#include "misc.h" -#define _(s) dgettext(PACKAGE, s) +// #define _(s) dgettext(PACKAGE, s) +#define _(s) (s) #if !defined(LBX_ERROR_LIMIT) # define LBX_ERROR_LIMIT 256 @@ -40,8 +41,6 @@ static int error_ring[LBX_ERROR_LIMIT]; static const char **user_errors; static int user_error_count, user_error_max = 2; -#define MIN(a, b) ((a) < (b) ? (a) : (b)) - int lbx_error_new(const char *str) { assert(user_error_count >= 0 && user_error_count <= user_error_max);