mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
moved magic into structure (mainly to simplify the client code)
added missing API hooks
This commit is contained in:
parent
d7a42881db
commit
cc117dbb9d
2 changed files with 10 additions and 8 deletions
|
@ -7,15 +7,17 @@
|
|||
|
||||
struct PyExpat_CAPI
|
||||
{
|
||||
char* magic; /* set to PyExpat_CAPI_MAGIC */
|
||||
int size; /* set to sizeof(struct PyExpat_CAPI) */
|
||||
int MAJOR_VERSION; /* XXX: use the ExpatVersionInfo instead? */
|
||||
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);
|
||||
int (*GetCurrentColumnNumber)(XML_Parser parser);
|
||||
int (*GetCurrentLineNumber)(XML_Parser parser);
|
||||
enum XML_Error (*GetErrorCode)(XML_Parser parser);
|
||||
int (*GetErrorColumnNumber)(XML_Parser parser);
|
||||
int (*GetErrorLineNumber)(XML_Parser parser);
|
||||
enum XML_Status (*Parse)(
|
||||
XML_Parser parser, const char *s, int len, int isFinal);
|
||||
XML_Parser (*ParserCreate_MM)(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue