aboutsummaryrefslogtreecommitdiffhomepage
path: root/sciteco.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-13 00:45:18 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-13 00:45:18 +0100
commit08121e466c07d72345e50c501762adc36f566d9a (patch)
treeda057a7b29a65477027800afc59d256cdf4bee34 /sciteco.h
parent3bb56ae078e80b3d228be092dc66962760d9a892 (diff)
<x[,y]>S...$ command (only regexp searching at the moment)
Diffstat (limited to 'sciteco.h')
-rw-r--r--sciteco.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sciteco.h b/sciteco.h
index 8659890..0e2a4fd 100644
--- a/sciteco.h
+++ b/sciteco.h
@@ -26,6 +26,12 @@ sptr_t editor_msg(unsigned int iMessage, uptr_t wParam = 0, sptr_t lParam = 0);
#define CTL_ECHO(C) ((C) | 0x40)
#define CTL_KEY(C) ((C) & ~0x40)
+#define SUCCESS (-1)
+#define FAILURE (0)
+
+#define IS_SUCCESS(X) ((X) < 0)
+#define IS_FAILURE(X) (!IS_SUCCESS(X))
+
/* TECO uses only lower 7 bits for commands */
#define MAX_TRANSITIONS 127