diff options
author | Neil <nyamatongwe@gmail.com> | 2015-07-29 09:46:53 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-07-29 09:46:53 +1000 |
commit | 7604a6b2a98fc2250408368eb51f8f6827d888c8 (patch) | |
tree | 12d1805299de9c35a8c3e17a92480212125f50c0 /lexlib/Accessor.cxx | |
parent | e9f77f985ad02f0bc79580e3df572c6c6449d03e (diff) | |
download | scintilla-mirror-7604a6b2a98fc2250408368eb51f8f6827d888c8.tar.gz |
Change lexlib to use Sci_Position and Sci_PositionU to prepare for large file
support.
Diffstat (limited to 'lexlib/Accessor.cxx')
-rw-r--r-- | lexlib/Accessor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexlib/Accessor.cxx b/lexlib/Accessor.cxx index f67737d4d..283de5bd4 100644 --- a/lexlib/Accessor.cxx +++ b/lexlib/Accessor.cxx @@ -32,8 +32,8 @@ int Accessor::GetPropertyInt(const char *key, int defaultValue) const { return pprops->GetInt(key, defaultValue); } -int Accessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnIsCommentLeader) { - int end = Length(); +int Accessor::IndentAmount(Sci_Position line, int *flags, PFNIsCommentLeader pfnIsCommentLeader) { + Sci_Position end = Length(); int spaceFlags = 0; // Determines the indentation level of the current line and also checks for consistent @@ -41,11 +41,11 @@ int Accessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnIsComment // Indentation is judged consistent when the indentation whitespace of each line lines // the same or the indentation of one line is a prefix of the other. - int pos = LineStart(line); + Sci_Position pos = LineStart(line); char ch = (*this)[pos]; int indent = 0; bool inPrevPrefix = line > 0; - int posPrev = inPrevPrefix ? LineStart(line-1) : 0; + Sci_Position posPrev = inPrevPrefix ? LineStart(line-1) : 0; while ((ch == ' ' || ch == '\t') && (pos < end)) { if (inPrevPrefix) { char chPrev = (*this)[posPrev++]; |