aboutsummaryrefslogtreecommitdiffhomepage
path: root/sciteco.h
diff options
context:
space:
mode:
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