From 3b5ad42cc9b4f02e07d875a61cc5156aea49b057 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 27 May 2009 02:53:32 +0000 Subject: Branded structs in Scintilla.h with Sci_ prefix and added forwarding macros from old name to new. --- include/Scintilla.h | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3