diff options
| author | nyamatongwe <devnull@localhost> | 2009-05-27 02:53:32 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-05-27 02:53:32 +0000 | 
| commit | d13feca5b1389dd8846af5b77b7fb91c13d7cf4d (patch) | |
| tree | 78d3afeb62b03c14a5933c43fe4a18cb0a75ee32 /src | |
| parent | 665e62bc23ae04575146bb47ba5fc0d2a3003096 (diff) | |
| download | scintilla-mirror-d13feca5b1389dd8846af5b77b7fb91c13d7cf4d.tar.gz | |
Branded structs in Scintilla.h with Sci_ prefix and added forwarding macros
from old name to new.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 10 | ||||
| -rw-r--r-- | src/Editor.h | 2 | ||||
| -rw-r--r-- | src/WindowAccessor.cxx | 2 | 
3 files changed, 7 insertions, 7 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index f987b89f4..d54bbe36c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3239,7 +3239,7 @@ ColourDesired InvertedLight(ColourDesired orig) {  // This is mostly copied from the Paint method but with some things omitted  // such as the margin markers, line numbers, selection and caret  // Should be merged back into a combined Draw method. -long Editor::FormatRange(bool draw, RangeToFormat *pfr) { +long Editor::FormatRange(bool draw, Sci_RangeToFormat *pfr) {  	if (!pfr)  		return 0; @@ -4932,7 +4932,7 @@ long Editor::FindText(      ///< @c SCFIND_WORDSTART, @c SCFIND_REGEXP or @c SCFIND_POSIX.      sptr_t lParam) {	///< @c TextToFind structure: The text to search for in the given range. -	TextToFind *ft = reinterpret_cast<TextToFind *>(lParam); +	Sci_TextToFind *ft = reinterpret_cast<Sci_TextToFind *>(lParam);  	int lengthFound = istrlen(ft->lpstrText);  	int pos = pdoc->FindText(ft->chrg.cpMin, ft->chrg.cpMax, ft->lpstrText,  	        (wParam & SCFIND_MATCHCASE) != 0, @@ -6388,7 +6388,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  	case SCI_GETTEXTRANGE: {  			if (lParam == 0)  				return 0; -			TextRange *tr = reinterpret_cast<TextRange *>(lParam); +			Sci_TextRange *tr = reinterpret_cast<Sci_TextRange *>(lParam);  			int cpMax = tr->chrg.cpMax;  			if (cpMax == -1)  				cpMax = pdoc->Length(); @@ -6406,7 +6406,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		break;  	case SCI_FORMATRANGE: -		return FormatRange(wParam != 0, reinterpret_cast<RangeToFormat *>(lParam)); +		return FormatRange(wParam != 0, reinterpret_cast<Sci_RangeToFormat *>(lParam));  	case SCI_GETMARGINLEFT:  		return vs.leftMarginWidth; @@ -6587,7 +6587,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  	case SCI_GETSTYLEDTEXT: {  			if (lParam == 0)  				return 0; -			TextRange *tr = reinterpret_cast<TextRange *>(lParam); +			Sci_TextRange *tr = reinterpret_cast<Sci_TextRange *>(lParam);  			int iPlace = 0;  			for (int iChar = tr->chrg.cpMin; iChar < tr->chrg.cpMax; iChar++) {  				tr->lpstrText[iPlace++] = pdoc->CharAt(iChar); diff --git a/src/Editor.h b/src/Editor.h index 1c50e7390..b74466416 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -327,7 +327,7 @@ protected:	// ScintillaBase subclass needs access to much of Editor  	void DrawBlockCaret(Surface *surface, ViewStyle &vsDraw, LineLayout *ll, int subLine, int xStart, int offset, int posCaret, PRectangle rcCaret);  	void RefreshPixMaps(Surface *surfaceWindow);  	void Paint(Surface *surfaceWindow, PRectangle rcArea); -	long FormatRange(bool draw, RangeToFormat *pfr); +	long FormatRange(bool draw, Sci_RangeToFormat *pfr);  	int TextWidth(int style, const char *text);  	virtual void SetVerticalScrollPos() = 0; diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx index 8093300bc..9de106fb7 100644 --- a/src/WindowAccessor.cxx +++ b/src/WindowAccessor.cxx @@ -45,7 +45,7 @@ void WindowAccessor::Fill(int position) {  	if (endPos > lenDoc)  		endPos = lenDoc; -	TextRange tr = {{startPos, endPos}, buf}; +	Sci_TextRange tr = {{startPos, endPos}, buf};  	Platform::SendScintillaPointer(id, SCI_GETTEXTRANGE, 0, &tr);  } | 
