aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCaml.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-07-25 11:25:56 +1000
committerNeil <nyamatongwe@gmail.com>2015-07-25 11:25:56 +1000
commit2f2dfccd799599295329f90c17998feabff132e9 (patch)
tree88a8dade901c0d4118c272ecb5aa971e46015f4c /lexers/LexCaml.cxx
parenta334de1ef14e92748fe3e07cb4b8bb0401e69d07 (diff)
downloadscintilla-mirror-2f2dfccd799599295329f90c17998feabff132e9.tar.gz
Use Sci_PositionU/Sci_Position for arguments to functional lexers, folders, and
comment recognizers to allow for future implementation of 64-bit positions.
Diffstat (limited to 'lexers/LexCaml.cxx')
-rw-r--r--lexers/LexCaml.cxx14
1 files changed, 7 insertions, 7 deletions
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>(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)