summaryrefslogtreecommitdiff
path: root/src/core/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/init.c')
-rw-r--r--src/core/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/init.c b/src/core/init.c
index 9a28a13..7f50935 100644
--- a/src/core/init.c
+++ b/src/core/init.c
@@ -6,6 +6,7 @@
#include "defs.h"
#include "fns.h"
#include "types.h"
+#include "nls.h"
static void *
default_alloc(void *aux, size_t size)
@@ -44,6 +45,9 @@ aplwc_init_fns(APLWCFunctions *fns)
APLWC *
aplwc_init(APLWCFunctions *fns, void *aux)
{
+ char *domdir = bindtextdomain(PACKAGE, LOCALEDIR);
+ char *dom = textdomain(PACKAGE);
+
size_t size = sizeof(APLWC) + (APLWC_ALIGNMENT - 1) + WS_START_SIZE + (WS_ALIGNMENT - 1);
intptr_t base = (intptr_t)fns->alloc(aux, size);
intptr_t aligned;
@@ -63,13 +67,13 @@ aplwc_init(APLWCFunctions *fns, void *aux)
aplwc->ws = (void*)aligned;
aplwc->ws_size = size - (aligned - base);
- DEBUG("initialized");
+ DEBUG(_("initialized"));
return aplwc;
}
void
aplwc_exit(APLWC *aplwc)
{
- DEBUG("exiting");
+ DEBUG(_("exiting"));
CALLFN(free, aplwc->base);
}