aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-02-29 08:51:54 +0000
committernyamatongwe <unknown>2004-02-29 08:51:54 +0000
commit845c14b1972e448408109b30a9a9422cac092f16 (patch)
treee3491653c70c455dfe50b532cd0c025685f4e8d4 /include
parentfec08d803302905ea166fb2450a130e9891e85c3 (diff)
downloadscintilla-mirror-845c14b1972e448408109b30a9a9422cac092f16.tar.gz
Patch from Bruce to return required allocation size when a NULL
pointer is used as a stringresult argument.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.iface5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index aa3022173..e6ca585ef 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -53,7 +53,7 @@
## position -> integer position in a document
## colour -> colour integer containing red, green and blue bytes.
## string -> pointer to const character
-## stringresult -> pointer to character
+## stringresult -> pointer to character, NULL-> return size of result
## cells -> pointer to array of cells, each cell containing a style byte and character byte
## textrange -> range of a min and a max position with an output string
## findtext -> searchrange, text -> foundposition
@@ -74,7 +74,8 @@
## argument and retrieve NUL characters. All retrieved strings except for those retrieved
## by GetLine also have a NUL appended but client code should calculate the size that
## will be returned rather than relying upon the NUL whenever possible. Allow for the
-## extra NUL character when allocating buffers.
+## extra NUL character when allocating buffers. The size to allocate for a stringresult
+## can be determined by calling with a NULL (0) pointer.
cat Basics