Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 1 | /*[clinic input] |
| 2 | preserve |
| 3 | [clinic start generated code]*/ |
| 4 | |
| 5 | PyDoc_STRVAR(pyexpat_xmlparser_Parse__doc__, |
Serhiy Storchaka | 8b2e8b6 | 2015-05-30 11:30:39 +0300 | [diff] [blame] | 6 | "Parse($self, data, isfinal=False, /)\n" |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 7 | "--\n" |
| 8 | "\n" |
| 9 | "Parse XML data.\n" |
| 10 | "\n" |
| 11 | "`isfinal\' should be true at end of input."); |
| 12 | |
| 13 | #define PYEXPAT_XMLPARSER_PARSE_METHODDEF \ |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 14 | {"Parse", (PyCFunction)pyexpat_xmlparser_Parse, METH_FASTCALL, pyexpat_xmlparser_Parse__doc__}, |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 15 | |
| 16 | static PyObject * |
Larry Hastings | 89964c4 | 2015-04-14 18:07:59 -0400 | [diff] [blame] | 17 | pyexpat_xmlparser_Parse_impl(xmlparseobject *self, PyObject *data, |
Serhiy Storchaka | 8b2e8b6 | 2015-05-30 11:30:39 +0300 | [diff] [blame] | 18 | int isfinal); |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 19 | |
| 20 | static PyObject * |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 21 | pyexpat_xmlparser_Parse(xmlparseobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 22 | { |
| 23 | PyObject *return_value = NULL; |
| 24 | PyObject *data; |
Serhiy Storchaka | 8b2e8b6 | 2015-05-30 11:30:39 +0300 | [diff] [blame] | 25 | int isfinal = 0; |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 26 | |
Sylvain | 7445381 | 2017-06-10 06:51:48 +0200 | [diff] [blame] | 27 | if (!_PyArg_NoStackKeywords("Parse", kwnames)) { |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 28 | goto exit; |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 29 | } |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 30 | |
Sylvain | 7445381 | 2017-06-10 06:51:48 +0200 | [diff] [blame] | 31 | if (!_PyArg_ParseStack(args, nargs, "O|i:Parse", |
| 32 | &data, &isfinal)) { |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 33 | goto exit; |
| 34 | } |
Serhiy Storchaka | 8b2e8b6 | 2015-05-30 11:30:39 +0300 | [diff] [blame] | 35 | return_value = pyexpat_xmlparser_Parse_impl(self, data, isfinal); |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 36 | |
| 37 | exit: |
| 38 | return return_value; |
| 39 | } |
| 40 | |
| 41 | PyDoc_STRVAR(pyexpat_xmlparser_ParseFile__doc__, |
| 42 | "ParseFile($self, file, /)\n" |
| 43 | "--\n" |
| 44 | "\n" |
| 45 | "Parse XML data from file-like object."); |
| 46 | |
| 47 | #define PYEXPAT_XMLPARSER_PARSEFILE_METHODDEF \ |
| 48 | {"ParseFile", (PyCFunction)pyexpat_xmlparser_ParseFile, METH_O, pyexpat_xmlparser_ParseFile__doc__}, |
| 49 | |
| 50 | PyDoc_STRVAR(pyexpat_xmlparser_SetBase__doc__, |
| 51 | "SetBase($self, base, /)\n" |
| 52 | "--\n" |
| 53 | "\n" |
| 54 | "Set the base URL for the parser."); |
| 55 | |
| 56 | #define PYEXPAT_XMLPARSER_SETBASE_METHODDEF \ |
Serhiy Storchaka | 92e8af6 | 2015-04-04 00:12:11 +0300 | [diff] [blame] | 57 | {"SetBase", (PyCFunction)pyexpat_xmlparser_SetBase, METH_O, pyexpat_xmlparser_SetBase__doc__}, |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 58 | |
| 59 | static PyObject * |
| 60 | pyexpat_xmlparser_SetBase_impl(xmlparseobject *self, const char *base); |
| 61 | |
| 62 | static PyObject * |
Serhiy Storchaka | 92e8af6 | 2015-04-04 00:12:11 +0300 | [diff] [blame] | 63 | pyexpat_xmlparser_SetBase(xmlparseobject *self, PyObject *arg) |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 64 | { |
| 65 | PyObject *return_value = NULL; |
| 66 | const char *base; |
| 67 | |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 68 | if (!PyArg_Parse(arg, "s:SetBase", &base)) { |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 69 | goto exit; |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 70 | } |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 71 | return_value = pyexpat_xmlparser_SetBase_impl(self, base); |
| 72 | |
| 73 | exit: |
| 74 | return return_value; |
| 75 | } |
| 76 | |
| 77 | PyDoc_STRVAR(pyexpat_xmlparser_GetBase__doc__, |
| 78 | "GetBase($self, /)\n" |
| 79 | "--\n" |
| 80 | "\n" |
| 81 | "Return base URL string for the parser."); |
| 82 | |
| 83 | #define PYEXPAT_XMLPARSER_GETBASE_METHODDEF \ |
| 84 | {"GetBase", (PyCFunction)pyexpat_xmlparser_GetBase, METH_NOARGS, pyexpat_xmlparser_GetBase__doc__}, |
| 85 | |
| 86 | static PyObject * |
| 87 | pyexpat_xmlparser_GetBase_impl(xmlparseobject *self); |
| 88 | |
| 89 | static PyObject * |
| 90 | pyexpat_xmlparser_GetBase(xmlparseobject *self, PyObject *Py_UNUSED(ignored)) |
| 91 | { |
| 92 | return pyexpat_xmlparser_GetBase_impl(self); |
| 93 | } |
| 94 | |
| 95 | PyDoc_STRVAR(pyexpat_xmlparser_GetInputContext__doc__, |
| 96 | "GetInputContext($self, /)\n" |
| 97 | "--\n" |
| 98 | "\n" |
| 99 | "Return the untranslated text of the input that caused the current event.\n" |
| 100 | "\n" |
| 101 | "If the event was generated by a large amount of text (such as a start tag\n" |
| 102 | "for an element with many attributes), not all of the text may be available."); |
| 103 | |
| 104 | #define PYEXPAT_XMLPARSER_GETINPUTCONTEXT_METHODDEF \ |
| 105 | {"GetInputContext", (PyCFunction)pyexpat_xmlparser_GetInputContext, METH_NOARGS, pyexpat_xmlparser_GetInputContext__doc__}, |
| 106 | |
| 107 | static PyObject * |
| 108 | pyexpat_xmlparser_GetInputContext_impl(xmlparseobject *self); |
| 109 | |
| 110 | static PyObject * |
| 111 | pyexpat_xmlparser_GetInputContext(xmlparseobject *self, PyObject *Py_UNUSED(ignored)) |
| 112 | { |
| 113 | return pyexpat_xmlparser_GetInputContext_impl(self); |
| 114 | } |
| 115 | |
| 116 | PyDoc_STRVAR(pyexpat_xmlparser_ExternalEntityParserCreate__doc__, |
| 117 | "ExternalEntityParserCreate($self, context, encoding=None, /)\n" |
| 118 | "--\n" |
| 119 | "\n" |
| 120 | "Create a parser for parsing an external entity based on the information passed to the ExternalEntityRefHandler."); |
| 121 | |
| 122 | #define PYEXPAT_XMLPARSER_EXTERNALENTITYPARSERCREATE_METHODDEF \ |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 123 | {"ExternalEntityParserCreate", (PyCFunction)pyexpat_xmlparser_ExternalEntityParserCreate, METH_FASTCALL, pyexpat_xmlparser_ExternalEntityParserCreate__doc__}, |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 124 | |
| 125 | static PyObject * |
Larry Hastings | 89964c4 | 2015-04-14 18:07:59 -0400 | [diff] [blame] | 126 | pyexpat_xmlparser_ExternalEntityParserCreate_impl(xmlparseobject *self, |
| 127 | const char *context, |
| 128 | const char *encoding); |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 129 | |
| 130 | static PyObject * |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 131 | pyexpat_xmlparser_ExternalEntityParserCreate(xmlparseobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 132 | { |
| 133 | PyObject *return_value = NULL; |
| 134 | const char *context; |
| 135 | const char *encoding = NULL; |
| 136 | |
Sylvain | 7445381 | 2017-06-10 06:51:48 +0200 | [diff] [blame] | 137 | if (!_PyArg_NoStackKeywords("ExternalEntityParserCreate", kwnames)) { |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 138 | goto exit; |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 139 | } |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 140 | |
Sylvain | 7445381 | 2017-06-10 06:51:48 +0200 | [diff] [blame] | 141 | if (!_PyArg_ParseStack(args, nargs, "z|s:ExternalEntityParserCreate", |
| 142 | &context, &encoding)) { |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 143 | goto exit; |
| 144 | } |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 145 | return_value = pyexpat_xmlparser_ExternalEntityParserCreate_impl(self, context, encoding); |
| 146 | |
| 147 | exit: |
| 148 | return return_value; |
| 149 | } |
| 150 | |
| 151 | PyDoc_STRVAR(pyexpat_xmlparser_SetParamEntityParsing__doc__, |
| 152 | "SetParamEntityParsing($self, flag, /)\n" |
| 153 | "--\n" |
| 154 | "\n" |
| 155 | "Controls parsing of parameter entities (including the external DTD subset).\n" |
| 156 | "\n" |
| 157 | "Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\n" |
| 158 | "XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\n" |
| 159 | "XML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\n" |
| 160 | "was successful."); |
| 161 | |
| 162 | #define PYEXPAT_XMLPARSER_SETPARAMENTITYPARSING_METHODDEF \ |
Serhiy Storchaka | 92e8af6 | 2015-04-04 00:12:11 +0300 | [diff] [blame] | 163 | {"SetParamEntityParsing", (PyCFunction)pyexpat_xmlparser_SetParamEntityParsing, METH_O, pyexpat_xmlparser_SetParamEntityParsing__doc__}, |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 164 | |
| 165 | static PyObject * |
| 166 | pyexpat_xmlparser_SetParamEntityParsing_impl(xmlparseobject *self, int flag); |
| 167 | |
| 168 | static PyObject * |
Serhiy Storchaka | 92e8af6 | 2015-04-04 00:12:11 +0300 | [diff] [blame] | 169 | pyexpat_xmlparser_SetParamEntityParsing(xmlparseobject *self, PyObject *arg) |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 170 | { |
| 171 | PyObject *return_value = NULL; |
| 172 | int flag; |
| 173 | |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 174 | if (!PyArg_Parse(arg, "i:SetParamEntityParsing", &flag)) { |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 175 | goto exit; |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 176 | } |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 177 | return_value = pyexpat_xmlparser_SetParamEntityParsing_impl(self, flag); |
| 178 | |
| 179 | exit: |
| 180 | return return_value; |
| 181 | } |
| 182 | |
| 183 | #if (XML_COMBINED_VERSION >= 19505) |
| 184 | |
| 185 | PyDoc_STRVAR(pyexpat_xmlparser_UseForeignDTD__doc__, |
| 186 | "UseForeignDTD($self, flag=True, /)\n" |
| 187 | "--\n" |
| 188 | "\n" |
| 189 | "Allows the application to provide an artificial external subset if one is not specified as part of the document instance.\n" |
| 190 | "\n" |
| 191 | "This readily allows the use of a \'default\' document type controlled by the\n" |
| 192 | "application, while still getting the advantage of providing document type\n" |
| 193 | "information to the parser. \'flag\' defaults to True if not provided."); |
| 194 | |
| 195 | #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF \ |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 196 | {"UseForeignDTD", (PyCFunction)pyexpat_xmlparser_UseForeignDTD, METH_FASTCALL, pyexpat_xmlparser_UseForeignDTD__doc__}, |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 197 | |
| 198 | static PyObject * |
| 199 | pyexpat_xmlparser_UseForeignDTD_impl(xmlparseobject *self, int flag); |
| 200 | |
| 201 | static PyObject * |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 202 | pyexpat_xmlparser_UseForeignDTD(xmlparseobject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 203 | { |
| 204 | PyObject *return_value = NULL; |
| 205 | int flag = 1; |
| 206 | |
Sylvain | 7445381 | 2017-06-10 06:51:48 +0200 | [diff] [blame] | 207 | if (!_PyArg_NoStackKeywords("UseForeignDTD", kwnames)) { |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 208 | goto exit; |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 209 | } |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 210 | |
Sylvain | 7445381 | 2017-06-10 06:51:48 +0200 | [diff] [blame] | 211 | if (!_PyArg_ParseStack(args, nargs, "|p:UseForeignDTD", |
| 212 | &flag)) { |
Victor Stinner | 259f0e4 | 2017-01-17 01:35:17 +0100 | [diff] [blame] | 213 | goto exit; |
| 214 | } |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 215 | return_value = pyexpat_xmlparser_UseForeignDTD_impl(self, flag); |
| 216 | |
| 217 | exit: |
| 218 | return return_value; |
| 219 | } |
| 220 | |
| 221 | #endif /* (XML_COMBINED_VERSION >= 19505) */ |
| 222 | |
| 223 | PyDoc_STRVAR(pyexpat_xmlparser___dir____doc__, |
| 224 | "__dir__($self, /)\n" |
Zachary Ware | 8ef887c | 2015-04-13 18:22:35 -0500 | [diff] [blame] | 225 | "--\n" |
| 226 | "\n"); |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 227 | |
| 228 | #define PYEXPAT_XMLPARSER___DIR___METHODDEF \ |
| 229 | {"__dir__", (PyCFunction)pyexpat_xmlparser___dir__, METH_NOARGS, pyexpat_xmlparser___dir____doc__}, |
| 230 | |
| 231 | static PyObject * |
| 232 | pyexpat_xmlparser___dir___impl(xmlparseobject *self); |
| 233 | |
| 234 | static PyObject * |
| 235 | pyexpat_xmlparser___dir__(xmlparseobject *self, PyObject *Py_UNUSED(ignored)) |
| 236 | { |
| 237 | return pyexpat_xmlparser___dir___impl(self); |
| 238 | } |
| 239 | |
| 240 | PyDoc_STRVAR(pyexpat_ParserCreate__doc__, |
| 241 | "ParserCreate($module, /, encoding=None, namespace_separator=None,\n" |
| 242 | " intern=None)\n" |
| 243 | "--\n" |
| 244 | "\n" |
| 245 | "Return a new XML parser object."); |
| 246 | |
| 247 | #define PYEXPAT_PARSERCREATE_METHODDEF \ |
Victor Stinner | 37e4ef7 | 2016-09-09 20:00:13 -0700 | [diff] [blame] | 248 | {"ParserCreate", (PyCFunction)pyexpat_ParserCreate, METH_FASTCALL, pyexpat_ParserCreate__doc__}, |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 249 | |
| 250 | static PyObject * |
Serhiy Storchaka | 1a2b24f | 2016-07-07 17:35:15 +0300 | [diff] [blame] | 251 | pyexpat_ParserCreate_impl(PyObject *module, const char *encoding, |
Larry Hastings | 89964c4 | 2015-04-14 18:07:59 -0400 | [diff] [blame] | 252 | const char *namespace_separator, PyObject *intern); |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 253 | |
| 254 | static PyObject * |
Victor Stinner | 37e4ef7 | 2016-09-09 20:00:13 -0700 | [diff] [blame] | 255 | pyexpat_ParserCreate(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 256 | { |
| 257 | PyObject *return_value = NULL; |
Serhiy Storchaka | 9171a8b | 2016-08-14 10:52:18 +0300 | [diff] [blame] | 258 | static const char * const _keywords[] = {"encoding", "namespace_separator", "intern", NULL}; |
| 259 | static _PyArg_Parser _parser = {"|zzO:ParserCreate", _keywords, 0}; |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 260 | const char *encoding = NULL; |
| 261 | const char *namespace_separator = NULL; |
| 262 | PyObject *intern = NULL; |
| 263 | |
Victor Stinner | 3e1fad6 | 2017-01-17 01:29:01 +0100 | [diff] [blame] | 264 | if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 265 | &encoding, &namespace_separator, &intern)) { |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 266 | goto exit; |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 267 | } |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 268 | return_value = pyexpat_ParserCreate_impl(module, encoding, namespace_separator, intern); |
| 269 | |
| 270 | exit: |
| 271 | return return_value; |
| 272 | } |
| 273 | |
| 274 | PyDoc_STRVAR(pyexpat_ErrorString__doc__, |
| 275 | "ErrorString($module, code, /)\n" |
| 276 | "--\n" |
| 277 | "\n" |
| 278 | "Returns string error for given number."); |
| 279 | |
| 280 | #define PYEXPAT_ERRORSTRING_METHODDEF \ |
Serhiy Storchaka | 92e8af6 | 2015-04-04 00:12:11 +0300 | [diff] [blame] | 281 | {"ErrorString", (PyCFunction)pyexpat_ErrorString, METH_O, pyexpat_ErrorString__doc__}, |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 282 | |
| 283 | static PyObject * |
Serhiy Storchaka | 1a2b24f | 2016-07-07 17:35:15 +0300 | [diff] [blame] | 284 | pyexpat_ErrorString_impl(PyObject *module, long code); |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 285 | |
| 286 | static PyObject * |
Serhiy Storchaka | 1a2b24f | 2016-07-07 17:35:15 +0300 | [diff] [blame] | 287 | pyexpat_ErrorString(PyObject *module, PyObject *arg) |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 288 | { |
| 289 | PyObject *return_value = NULL; |
| 290 | long code; |
| 291 | |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 292 | if (!PyArg_Parse(arg, "l:ErrorString", &code)) { |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 293 | goto exit; |
Serhiy Storchaka | 5dee655 | 2016-06-09 16:16:06 +0300 | [diff] [blame] | 294 | } |
Serhiy Storchaka | 1009bf1 | 2015-04-03 23:53:51 +0300 | [diff] [blame] | 295 | return_value = pyexpat_ErrorString_impl(module, code); |
| 296 | |
| 297 | exit: |
| 298 | return return_value; |
| 299 | } |
| 300 | |
| 301 | #ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF |
| 302 | #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF |
| 303 | #endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */ |
Sylvain | 7445381 | 2017-06-10 06:51:48 +0200 | [diff] [blame] | 304 | /*[clinic end generated code: output=a51f9d31aff1a757 input=a9049054013a1b77]*/ |