diff options
| author | Neil <nyamatongwe@gmail.com> | 2015-07-20 10:04:16 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2015-07-20 10:04:16 +1000 |
| commit | 3459cc7491228553db25ffe5038a39a1141689bd (patch) | |
| tree | 3df1ac68388af9db10c53f924746f7b9c71c2e63 /lexers/LexD.cxx | |
| parent | b4812a54d4c34626bb0e4b1a67c1e916b8b3c1ae (diff) | |
| download | scintilla-mirror-3459cc7491228553db25ffe5038a39a1141689bd.tar.gz | |
Use Sci_Position when required to implement interfaces.
Diffstat (limited to 'lexers/LexD.cxx')
| -rw-r--r-- | lexers/LexD.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lexers/LexD.cxx b/lexers/LexD.cxx index 045c4cb73..4d699da61 100644 --- a/lexers/LexD.cxx +++ b/lexers/LexD.cxx @@ -177,13 +177,13 @@ public: const char * SCI_METHOD DescribeProperty(const char *name) { return osD.DescribeProperty(name); } - int SCI_METHOD PropertySet(const char *key, const char *val); + Sci_Position SCI_METHOD PropertySet(const char *key, const char *val); const char * SCI_METHOD DescribeWordListSets() { return osD.DescribeWordListSets(); } - int SCI_METHOD WordListSet(int n, const char *wl); - void SCI_METHOD Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess); - void SCI_METHOD Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess); + Sci_Position SCI_METHOD WordListSet(int n, const char *wl); + void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess); + void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess); void * SCI_METHOD PrivateCall(int, void *) { return 0; @@ -197,14 +197,14 @@ public: } }; -int SCI_METHOD LexerD::PropertySet(const char *key, const char *val) { +Sci_Position SCI_METHOD LexerD::PropertySet(const char *key, const char *val) { if (osD.PropertySet(&options, key, val)) { return 0; } return -1; } -int SCI_METHOD LexerD::WordListSet(int n, const char *wl) { +Sci_Position SCI_METHOD LexerD::WordListSet(int n, const char *wl) { WordList *wordListN = 0; switch (n) { case 0: @@ -241,7 +241,7 @@ int SCI_METHOD LexerD::WordListSet(int n, const char *wl) { return firstModification; } -void SCI_METHOD LexerD::Lex(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { +void SCI_METHOD LexerD::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { LexAccessor styler(pAccess); int styleBeforeDCKeyword = SCE_D_DEFAULT; @@ -471,7 +471,7 @@ void SCI_METHOD LexerD::Lex(unsigned int startPos, int length, int initStyle, ID // level store to make it easy to pick up with each increment // and to make it possible to fiddle the current level for "} else {". -void SCI_METHOD LexerD::Fold(unsigned int startPos, int length, int initStyle, IDocument *pAccess) { +void SCI_METHOD LexerD::Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { if (!options.fold) return; |
