diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-15 19:52:31 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-15 19:52:31 +0100 |
commit | 51e123544bff3ca0bdd8f6ba6a1c507b57071ca4 (patch) | |
tree | 0b3c68e7520dc310a49cee0b6dc1abd042143224 /interface-gtk.h | |
parent | 5fe8298dec3736a2169719af9f0edf8592f3f7b6 (diff) | |
download | sciteco-51e123544bff3ca0bdd8f6ba6a1c507b57071ca4.tar.gz |
support stdio for curses interface
* ./sciteco commandline help works now
* messages issued during batch-mode macro processing are written to stdout/stderr
* output can be redirected
Diffstat (limited to 'interface-gtk.h')
-rw-r--r-- | interface-gtk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interface-gtk.h b/interface-gtk.h index 95a58d7..5b48ef6 100644 --- a/interface-gtk.h +++ b/interface-gtk.h @@ -1,6 +1,8 @@ #ifndef __INTERFACE_GTK_H #define __INTERFACE_GTK_H +#include <stdarg.h> + #include <glib.h> #include <gtk/gtk.h> @@ -31,7 +33,7 @@ public: gtk_parse_args(&argc, &argv); } - void msg(MessageType type, const gchar *fmt, ...) G_GNUC_PRINTF(3, 4); + void vmsg(MessageType type, const gchar *fmt, va_list ap); inline sptr_t ssm(unsigned int iMessage, uptr_t wParam = 0, sptr_t lParam = 0) |