From 36da5818ccb71317b088857673bc3e75f0982616 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 20 Nov 2024 08:14:38 +1100 Subject: Bug [#2454]. Add "NUL-terminated" qualifiers to APIs that NUL-terminate result. --- doc/ScintillaDoc.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index ef9b9fe67..393a4b96f 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -8654,7 +8654,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){

If the value argument is 0 then the length that should be allocated to store the value is returned; again, the terminating 0 is not included.

-

SCI_GETPROPERTYEXPANDED(const char *key, char *value) → int
+

SCI_GETPROPERTYEXPANDED(const char *key, char *value NUL-terminated) → int
This is now the same as SCI_GETPROPERTY - no expansion is performed.

@@ -8742,13 +8742,13 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){

SCI_GETNAMEDSTYLES → int
Retrieve the number of named styles for the lexer.

-

SCI_NAMEOFSTYLE(int style, char *name) → int
+

SCI_NAMEOFSTYLE(int style, char *name NUL-terminated) → int
Retrieve the name of a style. This is a C preprocessor symbol like "SCE_C_COMMENTDOC".

-

SCI_TAGSOFSTYLE(int style, char *tags) → int
+

SCI_TAGSOFSTYLE(int style, char *tags NUL-terminated) → int
Retrieve the tags of a style. This is a space-separated set of words like "comment documentation".

-

SCI_DESCRIPTIONOFSTYLE(int style, char *description) → int
+

SCI_DESCRIPTIONOFSTYLE(int style, char *description NUL-terminated) → int
Retrieve an English-language description of a style which may be suitable for display in a user interface. This looks like "Doc comment: block comments beginning with /** or /*!".

-- cgit v1.2.3