aboutsummaryrefslogtreecommitdiffhomepage
path: root/sciteco.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-06 20:42:40 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-06 20:42:40 +0100
commit8cd29b9b30400e4275f1a65744cd0b3c2669cc98 (patch)
treef6297b44f6b7d9d6546311878070383d2d064f45 /sciteco.h
downloadsciteco-8cd29b9b30400e4275f1a65744cd0b3c2669cc98.tar.gz
initial commit of SciTECO based on THECO
Diffstat (limited to 'sciteco.h')
-rw-r--r--sciteco.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/sciteco.h b/sciteco.h
new file mode 100644
index 0000000..3d5b360
--- /dev/null
+++ b/sciteco.h
@@ -0,0 +1,31 @@
+#ifndef __SCITECO_H
+#define __SCITECO_H
+
+#include <stdarg.h>
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+#include <Scintilla.h>
+
+#include "undo.h"
+
+extern gchar *cmdline;
+extern gint macro_pc;
+
+void message_display(GtkMessageType type, const gchar *fmt, ...);
+
+void cmdline_keypress(gchar key);
+void cmdline_display(const gchar *cmdline);
+
+void editor_msg(unsigned int iMessage, uptr_t wParam = 0, sptr_t lParam = 0);
+
+gboolean macro_execute(const gchar *macro);
+
+#define IS_CTL(C) ((C) < ' ')
+#define CTL_ECHO(C) ((C) | 0x40)
+
+/* TECO uses only lower 7 bits for commands */
+#define MAX_TRANSITIONS 127
+
+#endif \ No newline at end of file