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 | 2270ab97445c6f12bd0fddb273ab617fdb421594 (patch) | |
tree | a66a4e5103caa5d372f09ef2068bc051f73aeda6 /lexlib/Accessor.cxx | |
parent | a45905e5991b5198d180e3386aa6b33bb5e88f32 (diff) | |
download | scintilla-mirror-2270ab97445c6f12bd0fddb273ab617fdb421594.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++]; |