From 71a8a1c2717beff64a1212fbdf3fbdd1de9d603a Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 20 Oct 2021 22:22:09 +1100 Subject: GetLineEndTypesSupported returns LineEndType, not int. --- call/ScintillaCall.cxx | 4 ++-- doc/ScintillaHistory.html | 3 +++ include/Scintilla.iface | 2 +- include/ScintillaCall.h | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx index c363fc283..4fe782af5 100644 --- a/call/ScintillaCall.cxx +++ b/call/ScintillaCall.cxx @@ -3256,8 +3256,8 @@ std::string ScintillaCall::DescribeKeyWordSets() { return CallReturnString(Message::DescribeKeyWordSets, 0); } -int ScintillaCall::LineEndTypesSupported() { - return static_cast(Call(Message::GetLineEndTypesSupported)); +LineEndType ScintillaCall::LineEndTypesSupported() { + return static_cast(Call(Message::GetLineEndTypesSupported)); } int ScintillaCall::AllocateSubStyles(int styleBase, int numberStyles) { diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index fcc3cc463..09afbe849 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -586,6 +586,9 @@ only update and notify dwell end when needed. Bug #2288. +
  • + GetLineEndTypesSupported returns LineEndType, not int. +
  • Release 5.1.3 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index d5577417d..7ce5e2408 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -3127,7 +3127,7 @@ fun int DescribeKeyWordSets=4017(, stringresult descriptions) # Bit set of LineEndType enumertion for which line ends beyond the standard # LF, CR, and CRLF are supported by the lexer. -get int GetLineEndTypesSupported=4018(,) +get LineEndType GetLineEndTypesSupported=4018(,) # Allocate a set of sub styles for a particular base style, returning start of range fun int AllocateSubStyles=4020(int styleBase, int numberStyles) diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h index a5a46ed69..d16f2aff0 100644 --- a/include/ScintillaCall.h +++ b/include/ScintillaCall.h @@ -854,7 +854,7 @@ public: std::string DescribeProperty(const char *name); int DescribeKeyWordSets(char *descriptions); std::string DescribeKeyWordSets(); - int LineEndTypesSupported(); + Scintilla::LineEndType LineEndTypesSupported(); int AllocateSubStyles(int styleBase, int numberStyles); int SubStylesStart(int styleBase); int SubStylesLength(int styleBase); -- cgit v1.2.3