aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-06-17 09:28:05 +1000
committerNeil <nyamatongwe@gmail.com>2021-06-17 09:28:05 +1000
commit9e52243831ceffced1e9f0ef27041770fe13a85a (patch)
treea14b3f24127e77c4c28e16e0b81e0a5dac929e2c /include
parent37edcd47eed457d80e353bccfe9e601578ccca33 (diff)
downloadscintilla-mirror-9e52243831ceffced1e9f0ef27041770fe13a85a.tar.gz
Add SciFnDirectStatus, a direct access function which also returns status so can
improve performance for client code that called SCI_GETSTATUS after every API to check for failure.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h2
-rw-r--r--include/Scintilla.iface3
-rw-r--r--include/ScintillaMessages.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index de96d81d8..a92b51684 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -36,6 +36,7 @@ typedef intptr_t sptr_t;
#include "Sci_Position.h"
typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam);
+typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam, int *pStatus);
#ifndef SCI_DISABLE_AUTOGENERATED
@@ -497,6 +498,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_GETTEXT 2182
#define SCI_GETTEXTLENGTH 2183
#define SCI_GETDIRECTFUNCTION 2184
+#define SCI_GETDIRECTSTATUSFUNCTION 2772
#define SCI_GETDIRECTPOINTER 2185
#define SCI_SETOVERTYPE 2186
#define SCI_GETOVERTYPE 2187
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 4cb76e3b3..131ca2814 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1296,6 +1296,9 @@ get position GetTextLength=2183(,)
# Retrieve a pointer to a function that processes messages for this Scintilla.
get pointer GetDirectFunction=2184(,)
+# Retrieve a pointer to a function that processes messages for this Scintilla and returns status.
+get pointer GetDirectStatusFunction=2772(,)
+
# Retrieve a pointer value to use as the first argument when calling
# the function returned by GetDirectFunction.
get pointer GetDirectPointer=2185(,)
diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h
index 861981574..2d19db1ae 100644
--- a/include/ScintillaMessages.h
+++ b/include/ScintillaMessages.h
@@ -286,6 +286,7 @@ enum class Message {
GetText = 2182,
GetTextLength = 2183,
GetDirectFunction = 2184,
+ GetDirectStatusFunction = 2772,
GetDirectPointer = 2185,
SetOvertype = 2186,
GetOvertype = 2187,