annotate R/rdyncall/inst/dynports/expat.R @ 30:baf087cf5971

- fixed two ref counting problems - minor improvements
author Tassilo Philipp
date Fri, 10 Apr 2020 20:35:19 +0200
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 dynbind( c("expat","expat.so.1"), "
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 XML_DefaultCurrent(*<XML_ParserStruct>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 XML_ErrorString(i)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 XML_ExpatVersion()*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 XML_ExpatVersionInfo();
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 XML_ExternalEntityParserCreate(*<XML_ParserStruct>*c*c)*<XML_ParserStruct>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 XML_FreeContentModel(*<XML_ParserStruct>*<XML_cp>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 XML_GetBase(*<XML_ParserStruct>)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 XML_GetBuffer(*<XML_ParserStruct>i)*v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 XML_GetCurrentByteCount(*<XML_ParserStruct>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 XML_GetCurrentByteIndex(*<XML_ParserStruct>)j;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 XML_GetCurrentColumnNumber(*<XML_ParserStruct>)J;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 XML_GetCurrentLineNumber(*<XML_ParserStruct>)J;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 XML_GetErrorCode(*<XML_ParserStruct>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 XML_GetFeatureList()*<XML_Feature>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 XML_GetIdAttributeIndex(*<XML_ParserStruct>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 XML_GetInputContext(*<XML_ParserStruct>*i*i)*c;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 XML_GetParsingStatus(*<XML_ParserStruct>*<XML_ParsingStatus>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 XML_GetSpecifiedAttributeCount(*<XML_ParserStruct>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 XML_MemFree(*<XML_ParserStruct>*v)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 XML_MemMalloc(*<XML_ParserStruct>J)*v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 XML_MemRealloc(*<XML_ParserStruct>*vJ)*v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23 XML_Parse(*<XML_ParserStruct>*cii)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 XML_ParseBuffer(*<XML_ParserStruct>ii)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 XML_ParserCreate(*c)*<XML_ParserStruct>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 XML_ParserCreateNS(*cc)*<XML_ParserStruct>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 XML_ParserCreate_MM(*c*<XML_Memory_Handling_Suite>*c)*<XML_ParserStruct>;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 XML_ParserFree(*<XML_ParserStruct>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 XML_ParserReset(*<XML_ParserStruct>*c)C;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 XML_ResumeParser(*<XML_ParserStruct>)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 XML_SetAttlistDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32 XML_SetBase(*<XML_ParserStruct>*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 XML_SetCdataSectionHandler(*<XML_ParserStruct>*p*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 XML_SetCharacterDataHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35 XML_SetCommentHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36 XML_SetDefaultHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37 XML_SetDefaultHandlerExpand(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
38 XML_SetDoctypeDeclHandler(*<XML_ParserStruct>*p*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
39 XML_SetElementDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
40 XML_SetElementHandler(*<XML_ParserStruct>*p*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
41 XML_SetEncoding(*<XML_ParserStruct>*c)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
42 XML_SetEndCdataSectionHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
43 XML_SetEndDoctypeDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
44 XML_SetEndElementHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
45 XML_SetEndNamespaceDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
46 XML_SetEntityDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
47 XML_SetExternalEntityRefHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
48 XML_SetExternalEntityRefHandlerArg(*<XML_ParserStruct>*v)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
49 XML_SetNamespaceDeclHandler(*<XML_ParserStruct>*p*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
50 XML_SetNotStandaloneHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
51 XML_SetNotationDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
52 XML_SetParamEntityParsing(*<XML_ParserStruct>i)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
53 XML_SetProcessingInstructionHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
54 XML_SetReturnNSTriplet(*<XML_ParserStruct>i)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
55 XML_SetSkippedEntityHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
56 XML_SetStartCdataSectionHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
57 XML_SetStartDoctypeDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
58 XML_SetStartElementHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
59 XML_SetStartNamespaceDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
60 XML_SetUnknownEncodingHandler(*<XML_ParserStruct>*p*v)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
61 XML_SetUnparsedEntityDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
62 XML_SetUserData(*<XML_ParserStruct>*v)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
63 XML_SetXmlDeclHandler(*<XML_ParserStruct>*p)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
64 XML_StopParser(*<XML_ParserStruct>C)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
65 XML_UseForeignDTD(*<XML_ParserStruct>C)i;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
66 XML_UseParserAsHandlerArg(*<XML_ParserStruct>)v;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
67 ")
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
68 XML_FEATURE_END=0;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
69 XML_FEATURE_UNICODE=1;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
70 XML_FEATURE_UNICODE_WCHAR_T=2;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
71 XML_FEATURE_DTD=3;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
72 XML_FEATURE_CONTEXT_BYTES=4;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
73 XML_FEATURE_MIN_SIZE=5;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
74 XML_FEATURE_SIZEOF_XML_CHAR=6;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
75 XML_FEATURE_SIZEOF_XML_LCHAR=7;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
76 XML_FEATURE_NS=8;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
77 XML_PARAM_ENTITY_PARSING_NEVER=0;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
78 XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE=1;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
79 XML_PARAM_ENTITY_PARSING_ALWAYS=2;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
80 XML_INITIALIZED=0;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
81 XML_PARSING=1;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
82 XML_FINISHED=2;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
83 XML_SUSPENDED=3;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
84 XML_CQUANT_NONE=0;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
85 XML_CQUANT_OPT=1;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
86 XML_CQUANT_REP=2;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
87 XML_CQUANT_PLUS=3;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
88 XML_CTYPE_EMPTY=1;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
89 XML_CTYPE_ANY=2;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
90 XML_CTYPE_MIXED=3;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
91 XML_CTYPE_NAME=4;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
92 XML_CTYPE_CHOICE=5;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
93 XML_CTYPE_SEQ=6;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
94 XML_ERROR_NONE=0;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
95 XML_ERROR_NO_MEMORY=1;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
96 XML_ERROR_SYNTAX=2;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
97 XML_ERROR_NO_ELEMENTS=3;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
98 XML_ERROR_INVALID_TOKEN=4;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
99 XML_ERROR_UNCLOSED_TOKEN=5;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
100 XML_ERROR_PARTIAL_CHAR=6;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
101 XML_ERROR_TAG_MISMATCH=7;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
102 XML_ERROR_DUPLICATE_ATTRIBUTE=8;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
103 XML_ERROR_JUNK_AFTER_DOC_ELEMENT=9;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
104 XML_ERROR_PARAM_ENTITY_REF=10;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
105 XML_ERROR_UNDEFINED_ENTITY=11;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
106 XML_ERROR_RECURSIVE_ENTITY_REF=12;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
107 XML_ERROR_ASYNC_ENTITY=13;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
108 XML_ERROR_BAD_CHAR_REF=14;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
109 XML_ERROR_BINARY_ENTITY_REF=15;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
110 XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF=16;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
111 XML_ERROR_MISPLACED_XML_PI=17;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
112 XML_ERROR_UNKNOWN_ENCODING=18;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
113 XML_ERROR_INCORRECT_ENCODING=19;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
114 XML_ERROR_UNCLOSED_CDATA_SECTION=20;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
115 XML_ERROR_EXTERNAL_ENTITY_HANDLING=21;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
116 XML_ERROR_NOT_STANDALONE=22;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
117 XML_ERROR_UNEXPECTED_STATE=23;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
118 XML_ERROR_ENTITY_DECLARED_IN_PE=24;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
119 XML_ERROR_FEATURE_REQUIRES_XML_DTD=25;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
120 XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING=26;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
121 XML_ERROR_UNBOUND_PREFIX=27;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
122 XML_ERROR_UNDECLARING_PREFIX=28;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
123 XML_ERROR_INCOMPLETE_PE=29;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
124 XML_ERROR_XML_DECL=30;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
125 XML_ERROR_TEXT_DECL=31;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
126 XML_ERROR_PUBLICID=32;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
127 XML_ERROR_SUSPENDED=33;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
128 XML_ERROR_NOT_SUSPENDED=34;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
129 XML_ERROR_ABORTED=35;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
130 XML_ERROR_FINISHED=36;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
131 XML_ERROR_SUSPEND_PE=37;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
132 XML_ERROR_RESERVED_PREFIX_XML=38;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
133 XML_ERROR_RESERVED_PREFIX_XMLNS=39;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
134 XML_ERROR_RESERVED_NAMESPACE_URI=40;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
135 XML_STATUS_ERROR=0;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
136 XML_STATUS_OK=1;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
137 XML_STATUS_SUSPENDED=2;
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
138