diff options
| author | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 | 
|---|---|---|
| committer | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 | 
| commit | 58471e908a3b74b27379bb19a13d62cd8d4476b0 (patch) | |
| tree | 8f61293f34d008fea20584c631d23e58b3fe53aa /lexers/LexEiffel.cxx | |
| parent | 2270ab97445c6f12bd0fddb273ab617fdb421594 (diff) | |
| download | scintilla-mirror-58471e908a3b74b27379bb19a13d62cd8d4476b0.tar.gz | |
Use Sci_Position / Sci_PositionU for variables in lexers that represent
positions and line numbers and may be widened to 64-bits in a future release.
Diffstat (limited to 'lexers/LexEiffel.cxx')
| -rw-r--r-- | lexers/LexEiffel.cxx | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/lexers/LexEiffel.cxx b/lexers/LexEiffel.cxx index 94ebab35b..2e2813ef6 100644 --- a/lexers/LexEiffel.cxx +++ b/lexers/LexEiffel.cxx @@ -124,10 +124,10 @@ static bool IsEiffelComment(Accessor &styler, Sci_Position pos, Sci_Position len  static void FoldEiffelDocIndent(Sci_PositionU startPos, Sci_Position length, int,  						   WordList *[], Accessor &styler) { -	int lengthDoc = startPos + length; +	Sci_Position lengthDoc = startPos + length;  	// Backtrack to previous line in case need to fix its fold status -	int lineCurrent = styler.GetLine(startPos); +	Sci_Position lineCurrent = styler.GetLine(startPos);  	if (startPos > 0) {  		if (lineCurrent > 0) {  			lineCurrent--; @@ -137,7 +137,7 @@ static void FoldEiffelDocIndent(Sci_PositionU startPos, Sci_Position length, int  	int spaceFlags = 0;  	int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, IsEiffelComment);  	char chNext = styler[startPos]; -	for (int i = startPos; i < lengthDoc; i++) { +	for (Sci_Position i = startPos; i < lengthDoc; i++) {  		char ch = chNext;  		chNext = styler.SafeGetCharAt(i + 1); @@ -166,9 +166,9 @@ static void FoldEiffelDocIndent(Sci_PositionU startPos, Sci_Position length, int  static void FoldEiffelDocKeyWords(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, WordList *[],                         Accessor &styler) { -	unsigned int lengthDoc = startPos + length; +	Sci_PositionU lengthDoc = startPos + length;  	int visibleChars = 0; -	int lineCurrent = styler.GetLine(startPos); +	Sci_Position lineCurrent = styler.GetLine(startPos);  	int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK;  	int levelCurrent = levelPrev;  	char chNext = styler[startPos]; @@ -177,7 +177,7 @@ static void FoldEiffelDocKeyWords(Sci_PositionU startPos, Sci_Position length, i  	// lastDeferred should be determined by looking back to last keyword in case  	// the "deferred" is on a line before "class"  	bool lastDeferred = false; -	for (unsigned int i = startPos; i < lengthDoc; i++) { +	for (Sci_PositionU i = startPos; i < lengthDoc; i++) {  		char ch = chNext;  		chNext = styler.SafeGetCharAt(i + 1);  		int style = styleNext; @@ -185,7 +185,7 @@ static void FoldEiffelDocKeyWords(Sci_PositionU startPos, Sci_Position length, i  		bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n');  		if ((stylePrev != SCE_EIFFEL_WORD) && (style == SCE_EIFFEL_WORD)) {  			char s[20]; -			unsigned int j = 0; +			Sci_PositionU j = 0;  			while ((j < (sizeof(s) - 1)) && (iswordchar(styler[i + j]))) {  				s[j] = styler[i + j];  				j++; | 
