aboutsummaryrefslogtreecommitdiffhomepage
path: root/sciteco.h
blob: 8659890e71b645039fc26668e71673daecfb743a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __SCITECO_H
#define __SCITECO_H

#include <stdarg.h>

#include <glib.h>
#include <gtk/gtk.h>
#include "gtk-info-popup.h"

#include <Scintilla.h>

extern gchar *cmdline;
extern bool quit_requested;

extern GtkInfoPopup *filename_popup;

void message_display(GtkMessageType type,
		     const gchar *fmt, ...) G_GNUC_PRINTF(2, 3);

void cmdline_keypress(gchar key);
void cmdline_display(const gchar *cmdline);

sptr_t editor_msg(unsigned int iMessage, uptr_t wParam = 0, sptr_t lParam = 0);

#define IS_CTL(C)	((C) < ' ')
#define CTL_ECHO(C)	((C) | 0x40)
#define CTL_KEY(C)	((C) & ~0x40)

/* TECO uses only lower 7 bits for commands */
#define MAX_TRANSITIONS	127

#endif