diff --git a/unix/GNUmakeinc.mk b/unix/GNUmakeinc.mk index 504b7da8..64f44f31 100644 --- a/unix/GNUmakeinc.mk +++ b/unix/GNUmakeinc.mk @@ -9,6 +9,7 @@ OSCFILES = \ newcontrol.c \ parent.c \ tab.c \ + text.c \ util.c \ window.c diff --git a/unix/text.c b/unix/text.c new file mode 100644 index 00000000..72b71dfa --- /dev/null +++ b/unix/text.c @@ -0,0 +1,7 @@ +// 9 april 2015 +#include "uipriv_unix.h" + +void uiFreeText(char *t) +{ + g_free(t); +} diff --git a/unix/util.c b/unix/util.c index 72b71dfa..f02f4380 100644 --- a/unix/util.c +++ b/unix/util.c @@ -1,7 +1,13 @@ -// 9 april 2015 +// 18 april 2015 #include "uipriv_unix.h" -void uiFreeText(char *t) +void complain(const char *fmt, ...) { - g_free(t); + va_list ap; + + va_start(ap, fmt); + // there's no g_errorv() in glib 2.32, so do it manually instead + g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, fmt, ap); + va_end(ap); + abort(); // just in case }