FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/pyexpat.h at ModuleNotFoundError-suggestions · FFY00/cpython · GitHub
FFY00
/
cpython
Public
forked from
python/cpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
6
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Include
/
pyexpat.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
67 lines (63 loc) · 3.09 KB
Breadcrumbs
cpython
/
Include
/
pyexpat.h
Copy path
File metadata and controls
67 lines (63 loc) · 3.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* Stuff to export relevant 'expat' entry points from pyexpat to other
* parser modules, such as cElementTree. */
/* note: you must import expat.h before importing this module! */
#define
PyExpat_CAPI_MAGIC
"pyexpat.expat_CAPI 1.1"
#define
PyExpat_CAPSULE_NAME
"pyexpat.expat_CAPI"
struct
PyExpat_CAPI
{
char
*
magic
;
/* set to PyExpat_CAPI_MAGIC */
int
size
;
/* set to sizeof(struct PyExpat_CAPI) */
int
MAJOR_VERSION
;
int
MINOR_VERSION
;
int
MICRO_VERSION
;
/* pointers to selected expat functions. add new functions at
the end, if needed */
const
XML_LChar
*
(
*
ErrorString
)(
enum
XML_Error
code
);
enum
XML_Error
(
*
GetErrorCode
)(
XML_Parser
parser
);
XML_Size
(
*
GetErrorColumnNumber
)(
XML_Parser
parser
);
XML_Size
(
*
GetErrorLineNumber
)(
XML_Parser
parser
);
enum
XML_Status
(
*
Parse
)(
XML_Parser
parser
,
const
char
*
s
,
int
len
,
int
isFinal
);
XML_Parser
(
*
ParserCreate_MM
)(
const
XML_Char
*
encoding
,
const
XML_Memory_Handling_Suite
*
memsuite
,
const
XML_Char
*
namespaceSeparator
);
void
(
*
ParserFree
)(
XML_Parser
parser
);
void
(
*
SetCharacterDataHandler
)(
XML_Parser
parser
,
XML_CharacterDataHandler
handler
);
void
(
*
SetCommentHandler
)(
XML_Parser
parser
,
XML_CommentHandler
handler
);
void
(
*
SetDefaultHandlerExpand
)(
XML_Parser
parser
,
XML_DefaultHandler
handler
);
void
(
*
SetElementHandler
)(
XML_Parser
parser
,
XML_StartElementHandler
start
,
XML_EndElementHandler
end
);
void
(
*
SetNamespaceDeclHandler
)(
XML_Parser
parser
,
XML_StartNamespaceDeclHandler
start
,
XML_EndNamespaceDeclHandler
end
);
void
(
*
SetProcessingInstructionHandler
)(
XML_Parser
parser
,
XML_ProcessingInstructionHandler
handler
);
void
(
*
SetUnknownEncodingHandler
)(
XML_Parser
parser
,
XML_UnknownEncodingHandler
handler
,
void
*
encodingHandlerData
);
void
(
*
SetUserData
)(
XML_Parser
parser
,
void
*
userData
);
void
(
*
SetStartDoctypeDeclHandler
)(
XML_Parser
parser
,
XML_StartDoctypeDeclHandler
start
);
enum
XML_Status
(
*
SetEncoding
)(
XML_Parser
parser
,
const
XML_Char
*
encoding
);
int
(
*
DefaultUnknownEncodingHandler
)(
void
*
encodingHandlerData
,
const
XML_Char
*
name
,
XML_Encoding
*
info
);
/* might be NULL for expat < 2.1.0 */
int
(
*
SetHashSalt
)(
XML_Parser
parser
,
unsigned long
hash_salt
);
/* might be NULL for expat < 2.6.0 */
XML_Bool
(
*
SetReparseDeferralEnabled
)(
XML_Parser
parser
,
XML_Bool
enabled
);
/* might be NULL for expat < 2.7.2 */
XML_Bool
(
*
SetAllocTrackerActivationThreshold
)(
XML_Parser
parser
,
unsigned long long
activationThresholdBytes
);
XML_Bool
(
*
SetAllocTrackerMaximumAmplification
)(
XML_Parser
parser
,
float
maxAmplificationFactor
);
/* might be NULL for expat < 2.4.0 */
XML_Bool
(
*
SetBillionLaughsAttackProtectionActivationThreshold
)(
XML_Parser
parser
,
unsigned long long
activationThresholdBytes
);
XML_Bool
(
*
SetBillionLaughsAttackProtectionMaximumAmplification
)(
XML_Parser
parser
,
float
maxAmplificationFactor
);
/* always add new stuff to the end! */
};
Back
|
FazBrowse Home
|
New Git URL