From c30768f1167cfe590e0b6a12c4a986e82a210cc3 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 25 Jul 2015 11:25:56 +1000 Subject: Use Sci_PositionU/Sci_Position for arguments to functional lexers, folders, and comment recognizers to allow for future implementation of 64-bit positions. --- lexers/LexCaml.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lexers/LexCaml.cxx') diff --git a/lexers/LexCaml.cxx b/lexers/LexCaml.cxx index f576e3e23..4cc0bd7df 100644 --- a/lexers/LexCaml.cxx +++ b/lexers/LexCaml.cxx @@ -66,18 +66,18 @@ using namespace Scintilla; #endif static void ColouriseCamlDoc( - unsigned int startPos, int length, + Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler); static void FoldCamlDoc( - unsigned int startPos, int length, + Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler); -static void InternalLexOrFold(int lexOrFold, unsigned int startPos, int length, +static void InternalLexOrFold(int lexOrFold, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props); static const char* LexerName = "caml"; @@ -109,7 +109,7 @@ long Platform::SendScintillaPointer(WindowID w, unsigned int msg, unsigned long reinterpret_cast(lParam)); } -void EXT_LEXER_DECL Fold(unsigned int lexer, unsigned int startPos, int length, +void EXT_LEXER_DECL Fold(unsigned int lexer, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props) { // below useless evaluation(s) to supress "not used" warnings @@ -138,7 +138,7 @@ void EXT_LEXER_DECL GetLexerName(unsigned int Index, char *name, int buflength) } } -void EXT_LEXER_DECL Lex(unsigned int lexer, unsigned int startPos, int length, +void EXT_LEXER_DECL Lex(unsigned int lexer, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props) { // below useless evaluation(s) to supress "not used" warnings @@ -147,7 +147,7 @@ void EXT_LEXER_DECL Lex(unsigned int lexer, unsigned int startPos, int length, InternalLexOrFold(0, startPos, length, initStyle, words, window, props); } -static void InternalLexOrFold(int foldOrLex, unsigned int startPos, int length, +static void InternalLexOrFold(int foldOrLex, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props) { // create and initialize a WindowAccessor (including contained PropSet) @@ -180,7 +180,7 @@ static #endif /* BUILD_AS_EXTERNAL_LEXER */ void ColouriseCamlDoc( - unsigned int startPos, int length, + Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) -- cgit v1.2.3