diff options
| author | nyamatongwe <unknown> | 2009-05-27 02:53:32 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-05-27 02:53:32 +0000 |
| commit | 3b5ad42cc9b4f02e07d875a61cc5156aea49b057 (patch) | |
| tree | 78d3afeb62b03c14a5933c43fe4a18cb0a75ee32 /include | |
| parent | 24e3a749d581ba608164239fbf4fe8e783788715 (diff) | |
| download | scintilla-mirror-3b5ad42cc9b4f02e07d875a61cc5156aea49b057.tar.gz | |
Branded structs in Scintilla.h with Sci_ prefix and added forwarding macros
from old name to new.
Diffstat (limited to 'include')
| -rw-r--r-- | include/Scintilla.h | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 2cbecfb67..312ec6204 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -805,38 +805,44 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, namespace Scintilla { #endif -struct CharacterRange { +struct Sci_CharacterRange { long cpMin; long cpMax; }; -struct TextRange { - struct CharacterRange chrg; +struct Sci_TextRange { + struct Sci_CharacterRange chrg; char *lpstrText; }; -struct TextToFind { - struct CharacterRange chrg; +struct Sci_TextToFind { + struct Sci_CharacterRange chrg; char *lpstrText; - struct CharacterRange chrgText; + struct Sci_CharacterRange chrgText; }; +#define CharacterRange Sci_CharacterRange +#define TextRange Sci_TextRange +#define TextToFind Sci_TextToFind + #ifdef PLATFORM_H /* This structure is used in printing and requires some of the graphics types * from Platform.h. Not needed by most client code. */ -struct RangeToFormat { +struct Sci_RangeToFormat { SurfaceID hdc; SurfaceID hdcTarget; PRectangle rc; PRectangle rcPage; - CharacterRange chrg; + Sci_CharacterRange chrg; }; +#define RangeToFormat Sci_RangeToFormat + #endif -struct NotifyHeader { +struct Sci_NotifyHeader { /* Compatible with Windows NMHDR. * hwndFrom is really an environment specific window handle or pointer * but most clients of Scintilla.h do not have this type visible. */ @@ -845,8 +851,10 @@ struct NotifyHeader { unsigned int code; }; +#define NotifyHeader Sci_NotifyHeader + struct SCNotification { - struct NotifyHeader nmhdr; + struct Sci_NotifyHeader nmhdr; int position; /* SCN_STYLENEEDED, SCN_MODIFIED, SCN_DWELLSTART, SCN_DWELLEND */ int ch; /* SCN_CHARADDED, SCN_KEY */ int modifiers; /* SCN_KEY */ |
