]> git.draconx.ca Git - liblbx.git/commitdiff
Back out incomplete i18n support in the library.
authorNick Bowler <nbowler@draconx.ca>
Wed, 22 Sep 2021 00:56:19 +0000 (20:56 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 22 Sep 2021 00:59:44 +0000 (20:59 -0400)
We are a long way from actually having working i18n, so all this
is doing right now is adding unneeeded build dependencies.

src/error.c

index 8071547231d4ee5d59a04fa6397dd54cc2781f79..fb74bd50ad24c93d1bd6c9e4eb4bf5c8e4ea6024 100644 (file)
 #include <assert.h>
 #include <limits.h>
 #include <inttypes.h>
-#include <libintl.h>
 
 #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);