From: Nick Bowler Date: Wed, 22 Sep 2021 00:56:19 +0000 (-0400) Subject: Back out incomplete i18n support in the library. X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/commitdiff_plain/31861aea5508509f3c98d6fb26aefc0d79d29e10 Back out incomplete i18n support in the library. We are a long way from actually having working i18n, so all this is doing right now is adding unneeeded build dependencies. --- 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);