-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/mhammond/pywin32 into adodb…
…api-string-formats
- Loading branch information
Showing
284 changed files
with
84,578 additions
and
27,395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,19 @@ License for Scintilla and SciTE | |
|
||
Copyright 1998-2003 by Neil Hodgson <[email protected]> | ||
|
||
All Rights Reserved | ||
All Rights Reserved | ||
|
||
Permission to use, copy, modify, and distribute this software and its | ||
documentation for any purpose and without fee is hereby granted, | ||
provided that the above copyright notice appear in all copies and that | ||
both that copyright notice and this permission notice appear in | ||
supporting documentation. | ||
Permission to use, copy, modify, and distribute this software and its | ||
documentation for any purpose and without fee is hereby granted, | ||
provided that the above copyright notice appear in all copies and that | ||
both that copyright notice and this permission notice appear in | ||
supporting documentation. | ||
|
||
NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | ||
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY | ||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE | ||
OR PERFORMANCE OF THIS SOFTWARE. | ||
NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | ||
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY | ||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE | ||
OR PERFORMANCE OF THIS SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
This is a copy of Scintilla 1.77 used for Pythonwin. | ||
This is a copy of Scintilla 4.4.6 used for Pythonwin. | ||
|
||
Scintilla's home is www.scintilla.org | ||
Scintilla's home is https://www.scintilla.org/ | ||
|
||
Only the sources relevant to Scintilla under Pythonwin are | ||
included (plus the Scintilla licence and readme). For the | ||
full set of Scintilla sources, including its documentation and | ||
companion editor Scite, see www.scintilla.org. | ||
included (plus the Scintilla Licence.txt and README). | ||
For the full set of Scintilla sources, including its documentation | ||
and companion editor SciTE, see https://www.scintilla.org/. | ||
|
||
When updating the Scintilla source, also update the copyright year | ||
in Pythonwin/pywin/framework/app.py and regenerate | ||
Pythonwin/pywin/scintilla/scintillacon.py using h2py: | ||
https://github.com/python/cpython/blob/3.8/Tools/scripts/h2py.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// Scintilla source code edit control | ||
/** @file ILexer.h | ||
** Interface between Scintilla and lexers. | ||
**/ | ||
// Copyright 1998-2010 by Neil Hodgson <[email protected]> | ||
// The License.txt file describes the conditions under which this software may be distributed. | ||
|
||
#ifndef ILEXER_H | ||
#define ILEXER_H | ||
|
||
#include "Sci_Position.h" | ||
|
||
namespace Scintilla { | ||
|
||
enum { dvRelease4=2 }; | ||
|
||
class IDocument { | ||
public: | ||
virtual int SCI_METHOD Version() const = 0; | ||
virtual void SCI_METHOD SetErrorStatus(int status) = 0; | ||
virtual Sci_Position SCI_METHOD Length() const = 0; | ||
virtual void SCI_METHOD GetCharRange(char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const = 0; | ||
virtual char SCI_METHOD StyleAt(Sci_Position position) const = 0; | ||
virtual Sci_Position SCI_METHOD LineFromPosition(Sci_Position position) const = 0; | ||
virtual Sci_Position SCI_METHOD LineStart(Sci_Position line) const = 0; | ||
virtual int SCI_METHOD GetLevel(Sci_Position line) const = 0; | ||
virtual int SCI_METHOD SetLevel(Sci_Position line, int level) = 0; | ||
virtual int SCI_METHOD GetLineState(Sci_Position line) const = 0; | ||
virtual int SCI_METHOD SetLineState(Sci_Position line, int state) = 0; | ||
virtual void SCI_METHOD StartStyling(Sci_Position position) = 0; | ||
virtual bool SCI_METHOD SetStyleFor(Sci_Position length, char style) = 0; | ||
virtual bool SCI_METHOD SetStyles(Sci_Position length, const char *styles) = 0; | ||
virtual void SCI_METHOD DecorationSetCurrentIndicator(int indicator) = 0; | ||
virtual void SCI_METHOD DecorationFillRange(Sci_Position position, int value, Sci_Position fillLength) = 0; | ||
virtual void SCI_METHOD ChangeLexerState(Sci_Position start, Sci_Position end) = 0; | ||
virtual int SCI_METHOD CodePage() const = 0; | ||
virtual bool SCI_METHOD IsDBCSLeadByte(char ch) const = 0; | ||
virtual const char * SCI_METHOD BufferPointer() = 0; | ||
virtual int SCI_METHOD GetLineIndentation(Sci_Position line) = 0; | ||
virtual Sci_Position SCI_METHOD LineEnd(Sci_Position line) const = 0; | ||
virtual Sci_Position SCI_METHOD GetRelativePosition(Sci_Position positionStart, Sci_Position characterOffset) const = 0; | ||
virtual int SCI_METHOD GetCharacterAndWidth(Sci_Position position, Sci_Position *pWidth) const = 0; | ||
}; | ||
|
||
enum { lvRelease4=2, lvRelease5=3 }; | ||
|
||
class ILexer4 { | ||
public: | ||
virtual int SCI_METHOD Version() const = 0; | ||
virtual void SCI_METHOD Release() = 0; | ||
virtual const char * SCI_METHOD PropertyNames() = 0; | ||
virtual int SCI_METHOD PropertyType(const char *name) = 0; | ||
virtual const char * SCI_METHOD DescribeProperty(const char *name) = 0; | ||
virtual Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) = 0; | ||
virtual const char * SCI_METHOD DescribeWordListSets() = 0; | ||
virtual Sci_Position SCI_METHOD WordListSet(int n, const char *wl) = 0; | ||
virtual void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0; | ||
virtual void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0; | ||
virtual void * SCI_METHOD PrivateCall(int operation, void *pointer) = 0; | ||
virtual int SCI_METHOD LineEndTypesSupported() = 0; | ||
virtual int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) = 0; | ||
virtual int SCI_METHOD SubStylesStart(int styleBase) = 0; | ||
virtual int SCI_METHOD SubStylesLength(int styleBase) = 0; | ||
virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0; | ||
virtual int SCI_METHOD PrimaryStyleFromStyle(int style) = 0; | ||
virtual void SCI_METHOD FreeSubStyles() = 0; | ||
virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0; | ||
virtual int SCI_METHOD DistanceToSecondaryStyles() = 0; | ||
virtual const char * SCI_METHOD GetSubStyleBases() = 0; | ||
virtual int SCI_METHOD NamedStyles() = 0; | ||
virtual const char * SCI_METHOD NameOfStyle(int style) = 0; | ||
virtual const char * SCI_METHOD TagsOfStyle(int style) = 0; | ||
virtual const char * SCI_METHOD DescriptionOfStyle(int style) = 0; | ||
}; | ||
|
||
class ILexer5 : public ILexer4 { | ||
public: | ||
virtual const char * SCI_METHOD GetName() = 0; | ||
virtual int SCI_METHOD GetIdentifier() = 0; | ||
virtual const char * SCI_METHOD PropertyGet(const char *key) = 0; | ||
}; | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Scintilla source code edit control | ||
/** @file ILoader.h | ||
** Interface for loading into a Scintilla document from a background thread. | ||
**/ | ||
// Copyright 1998-2017 by Neil Hodgson <[email protected]> | ||
// The License.txt file describes the conditions under which this software may be distributed. | ||
|
||
#ifndef ILOADER_H | ||
#define ILOADER_H | ||
|
||
#include "Sci_Position.h" | ||
|
||
class ILoader { | ||
public: | ||
virtual int SCI_METHOD Release() = 0; | ||
// Returns a status code from SC_STATUS_* | ||
virtual int SCI_METHOD AddData(const char *data, Sci_Position length) = 0; | ||
virtual void * SCI_METHOD ConvertToDocument() = 0; | ||
}; | ||
|
||
#endif |
Oops, something went wrong.