summaryrefslogtreecommitdiff
path: root/src/bin/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/main.c')
-rw-r--r--src/bin/main.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 19281ea..5d5ea97 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1,12 +1,27 @@
+#include <config.h>
+#include <stdio.h>
#include <aplwc.h>
+#if ENABLE_NLS
+#include <libintl.h>
+#define _(S) dgettext(PACKAGE, S)
+#else
+#define _(S) S
+#endif
+
int
main(int argc, char *argv[])
{
APLWCFunctions fns;
+ APLWC *aplwc;
+
+ aplwc_boot();
+
+ if(argc != 1)
+ puts(_("No command line arguments expected"));
aplwc_init_fns(&fns);
- APLWC *aplwc = aplwc_init(&fns, NULL);
+ aplwc = aplwc_init(&fns, NULL);
aplwc_exit(aplwc);
return 0;
}