| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | /*[clinic input]
 | 
					
						
							|  |  |  | preserve | 
					
						
							|  |  |  | [clinic start generated code]*/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteCodec_encode__doc__, | 
					
						
							|  |  |  | "encode($self, /, input, errors=None)\n" | 
					
						
							|  |  |  | "--\n" | 
					
						
							|  |  |  | "\n" | 
					
						
							|  |  |  | "Return an encoded string version of `input\'.\n" | 
					
						
							|  |  |  | "\n" | 
					
						
							|  |  |  | "\'errors\' may be given to set a different error handling scheme. Default is\n" | 
					
						
							|  |  |  | "\'strict\' meaning that encoding errors raise a UnicodeEncodeError. Other possible\n" | 
					
						
							|  |  |  | "values are \'ignore\', \'replace\' and \'xmlcharrefreplace\' as well as any other name\n" | 
					
						
							|  |  |  | "registered with codecs.register_error that can handle UnicodeEncodeErrors."); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTECODEC_ENCODE_METHODDEF    \
 | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  |     {"encode", (PyCFunction)_multibytecodec_MultibyteCodec_encode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteCodec_encode__doc__}, | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2015-04-14 18:07:59 -04:00
										 |  |  | _multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self, | 
					
						
							|  |  |  |                                            PyObject *input, | 
					
						
							|  |  |  |                                            const char *errors); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2016-09-11 21:25:45 +03:00
										 |  |  | _multibytecodec_MultibyteCodec_encode(MultibyteCodecObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | { | 
					
						
							|  |  |  |     PyObject *return_value = NULL; | 
					
						
							| 
									
										
										
										
											2016-08-14 10:52:18 +03:00
										 |  |  |     static const char * const _keywords[] = {"input", "errors", NULL}; | 
					
						
							|  |  |  |     static _PyArg_Parser _parser = {"O|z:encode", _keywords, 0}; | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     PyObject *input; | 
					
						
							|  |  |  |     const char *errors = NULL; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-17 01:29:01 +01:00
										 |  |  |     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |         &input, &errors)) { | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |         goto exit; | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     return_value = _multibytecodec_MultibyteCodec_encode_impl(self, input, errors); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit: | 
					
						
							|  |  |  |     return return_value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteCodec_decode__doc__, | 
					
						
							|  |  |  | "decode($self, /, input, errors=None)\n" | 
					
						
							|  |  |  | "--\n" | 
					
						
							|  |  |  | "\n" | 
					
						
							|  |  |  | "Decodes \'input\'.\n" | 
					
						
							|  |  |  | "\n" | 
					
						
							|  |  |  | "\'errors\' may be given to set a different error handling scheme. Default is\n" | 
					
						
							|  |  |  | "\'strict\' meaning that encoding errors raise a UnicodeDecodeError. Other possible\n" | 
					
						
							|  |  |  | "values are \'ignore\' and \'replace\' as well as any other name registered with\n" | 
					
						
							|  |  |  | "codecs.register_error that is able to handle UnicodeDecodeErrors.\""); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTECODEC_DECODE_METHODDEF    \
 | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  |     {"decode", (PyCFunction)_multibytecodec_MultibyteCodec_decode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteCodec_decode__doc__}, | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2015-04-14 18:07:59 -04:00
										 |  |  | _multibytecodec_MultibyteCodec_decode_impl(MultibyteCodecObject *self, | 
					
						
							|  |  |  |                                            Py_buffer *input, | 
					
						
							|  |  |  |                                            const char *errors); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2016-09-11 21:25:45 +03:00
										 |  |  | _multibytecodec_MultibyteCodec_decode(MultibyteCodecObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | { | 
					
						
							|  |  |  |     PyObject *return_value = NULL; | 
					
						
							| 
									
										
										
										
											2016-08-14 10:52:18 +03:00
										 |  |  |     static const char * const _keywords[] = {"input", "errors", NULL}; | 
					
						
							|  |  |  |     static _PyArg_Parser _parser = {"y*|z:decode", _keywords, 0}; | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     Py_buffer input = {NULL, NULL}; | 
					
						
							|  |  |  |     const char *errors = NULL; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-17 01:29:01 +01:00
										 |  |  |     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |         &input, &errors)) { | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |         goto exit; | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     return_value = _multibytecodec_MultibyteCodec_decode_impl(self, &input, errors); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit: | 
					
						
							|  |  |  |     /* Cleanup for input */ | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     if (input.obj) { | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |        PyBuffer_Release(&input); | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     return return_value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_encode__doc__, | 
					
						
							| 
									
										
										
										
											2015-05-30 11:30:39 +03:00
										 |  |  | "encode($self, /, input, final=False)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTEINCREMENTALENCODER_ENCODE_METHODDEF    \
 | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  |     {"encode", (PyCFunction)_multibytecodec_MultibyteIncrementalEncoder_encode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteIncrementalEncoder_encode__doc__}, | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2015-04-14 18:07:59 -04:00
										 |  |  | _multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self, | 
					
						
							|  |  |  |                                                         PyObject *input, | 
					
						
							|  |  |  |                                                         int final); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2016-09-11 21:25:45 +03:00
										 |  |  | _multibytecodec_MultibyteIncrementalEncoder_encode(MultibyteIncrementalEncoderObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | { | 
					
						
							|  |  |  |     PyObject *return_value = NULL; | 
					
						
							| 
									
										
										
										
											2016-08-14 10:52:18 +03:00
										 |  |  |     static const char * const _keywords[] = {"input", "final", NULL}; | 
					
						
							|  |  |  |     static _PyArg_Parser _parser = {"O|i:encode", _keywords, 0}; | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     PyObject *input; | 
					
						
							|  |  |  |     int final = 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-17 01:29:01 +01:00
										 |  |  |     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |         &input, &final)) { | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |         goto exit; | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     return_value = _multibytecodec_MultibyteIncrementalEncoder_encode_impl(self, input, final); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit: | 
					
						
							|  |  |  |     return return_value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_reset__doc__, | 
					
						
							|  |  |  | "reset($self, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTEINCREMENTALENCODER_RESET_METHODDEF    \
 | 
					
						
							|  |  |  |     {"reset", (PyCFunction)_multibytecodec_MultibyteIncrementalEncoder_reset, METH_NOARGS, _multibytecodec_MultibyteIncrementalEncoder_reset__doc__}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteIncrementalEncoder_reset_impl(MultibyteIncrementalEncoderObject *self); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteIncrementalEncoder_reset(MultibyteIncrementalEncoderObject *self, PyObject *Py_UNUSED(ignored)) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return _multibytecodec_MultibyteIncrementalEncoder_reset_impl(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_decode__doc__, | 
					
						
							| 
									
										
										
										
											2015-05-30 11:30:39 +03:00
										 |  |  | "decode($self, /, input, final=False)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTEINCREMENTALDECODER_DECODE_METHODDEF    \
 | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  |     {"decode", (PyCFunction)_multibytecodec_MultibyteIncrementalDecoder_decode, METH_FASTCALL|METH_KEYWORDS, _multibytecodec_MultibyteIncrementalDecoder_decode__doc__}, | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2015-04-14 18:07:59 -04:00
										 |  |  | _multibytecodec_MultibyteIncrementalDecoder_decode_impl(MultibyteIncrementalDecoderObject *self, | 
					
						
							|  |  |  |                                                         Py_buffer *input, | 
					
						
							|  |  |  |                                                         int final); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2016-09-11 21:25:45 +03:00
										 |  |  | _multibytecodec_MultibyteIncrementalDecoder_decode(MultibyteIncrementalDecoderObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | { | 
					
						
							|  |  |  |     PyObject *return_value = NULL; | 
					
						
							| 
									
										
										
										
											2016-08-14 10:52:18 +03:00
										 |  |  |     static const char * const _keywords[] = {"input", "final", NULL}; | 
					
						
							|  |  |  |     static _PyArg_Parser _parser = {"y*|i:decode", _keywords, 0}; | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     Py_buffer input = {NULL, NULL}; | 
					
						
							|  |  |  |     int final = 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-17 01:29:01 +01:00
										 |  |  |     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |         &input, &final)) { | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |         goto exit; | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     return_value = _multibytecodec_MultibyteIncrementalDecoder_decode_impl(self, &input, final); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit: | 
					
						
							|  |  |  |     /* Cleanup for input */ | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     if (input.obj) { | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |        PyBuffer_Release(&input); | 
					
						
							| 
									
										
										
										
											2016-06-09 16:16:06 +03:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     return return_value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_reset__doc__, | 
					
						
							|  |  |  | "reset($self, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTEINCREMENTALDECODER_RESET_METHODDEF    \
 | 
					
						
							|  |  |  |     {"reset", (PyCFunction)_multibytecodec_MultibyteIncrementalDecoder_reset, METH_NOARGS, _multibytecodec_MultibyteIncrementalDecoder_reset__doc__}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteIncrementalDecoder_reset_impl(MultibyteIncrementalDecoderObject *self); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteIncrementalDecoder_reset(MultibyteIncrementalDecoderObject *self, PyObject *Py_UNUSED(ignored)) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return _multibytecodec_MultibyteIncrementalDecoder_reset_impl(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_read__doc__, | 
					
						
							|  |  |  | "read($self, sizeobj=None, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTESTREAMREADER_READ_METHODDEF    \
 | 
					
						
							| 
									
										
										
										
											2017-01-17 02:21:47 +01:00
										 |  |  |     {"read", (PyCFunction)_multibytecodec_MultibyteStreamReader_read, METH_FASTCALL, _multibytecodec_MultibyteStreamReader_read__doc__}, | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2015-04-14 18:07:59 -04:00
										 |  |  | _multibytecodec_MultibyteStreamReader_read_impl(MultibyteStreamReaderObject *self, | 
					
						
							|  |  |  |                                                 PyObject *sizeobj); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  | _multibytecodec_MultibyteStreamReader_read(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs) | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | { | 
					
						
							|  |  |  |     PyObject *return_value = NULL; | 
					
						
							|  |  |  |     PyObject *sizeobj = Py_None; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-10 06:51:48 +02:00
										 |  |  |     if (!_PyArg_UnpackStack(args, nargs, "read", | 
					
						
							|  |  |  |         0, 1, | 
					
						
							|  |  |  |         &sizeobj)) { | 
					
						
							| 
									
										
										
										
											2017-01-17 02:21:47 +01:00
										 |  |  |         goto exit; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     return_value = _multibytecodec_MultibyteStreamReader_read_impl(self, sizeobj); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit: | 
					
						
							|  |  |  |     return return_value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_readline__doc__, | 
					
						
							|  |  |  | "readline($self, sizeobj=None, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTESTREAMREADER_READLINE_METHODDEF    \
 | 
					
						
							| 
									
										
										
										
											2017-01-17 02:21:47 +01:00
										 |  |  |     {"readline", (PyCFunction)_multibytecodec_MultibyteStreamReader_readline, METH_FASTCALL, _multibytecodec_MultibyteStreamReader_readline__doc__}, | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2015-04-14 18:07:59 -04:00
										 |  |  | _multibytecodec_MultibyteStreamReader_readline_impl(MultibyteStreamReaderObject *self, | 
					
						
							|  |  |  |                                                     PyObject *sizeobj); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  | _multibytecodec_MultibyteStreamReader_readline(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs) | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | { | 
					
						
							|  |  |  |     PyObject *return_value = NULL; | 
					
						
							|  |  |  |     PyObject *sizeobj = Py_None; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-10 06:51:48 +02:00
										 |  |  |     if (!_PyArg_UnpackStack(args, nargs, "readline", | 
					
						
							|  |  |  |         0, 1, | 
					
						
							|  |  |  |         &sizeobj)) { | 
					
						
							| 
									
										
										
										
											2017-01-17 02:21:47 +01:00
										 |  |  |         goto exit; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     return_value = _multibytecodec_MultibyteStreamReader_readline_impl(self, sizeobj); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit: | 
					
						
							|  |  |  |     return return_value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_readlines__doc__, | 
					
						
							|  |  |  | "readlines($self, sizehintobj=None, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTESTREAMREADER_READLINES_METHODDEF    \
 | 
					
						
							| 
									
										
										
										
											2017-01-17 02:21:47 +01:00
										 |  |  |     {"readlines", (PyCFunction)_multibytecodec_MultibyteStreamReader_readlines, METH_FASTCALL, _multibytecodec_MultibyteStreamReader_readlines__doc__}, | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2015-04-14 18:07:59 -04:00
										 |  |  | _multibytecodec_MultibyteStreamReader_readlines_impl(MultibyteStreamReaderObject *self, | 
					
						
							|  |  |  |                                                      PyObject *sizehintobj); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  | _multibytecodec_MultibyteStreamReader_readlines(MultibyteStreamReaderObject *self, PyObject **args, Py_ssize_t nargs) | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | { | 
					
						
							|  |  |  |     PyObject *return_value = NULL; | 
					
						
							|  |  |  |     PyObject *sizehintobj = Py_None; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-10 06:51:48 +02:00
										 |  |  |     if (!_PyArg_UnpackStack(args, nargs, "readlines", | 
					
						
							|  |  |  |         0, 1, | 
					
						
							|  |  |  |         &sizehintobj)) { | 
					
						
							| 
									
										
										
										
											2017-01-17 02:21:47 +01:00
										 |  |  |         goto exit; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  |     return_value = _multibytecodec_MultibyteStreamReader_readlines_impl(self, sizehintobj); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit: | 
					
						
							|  |  |  |     return return_value; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_reset__doc__, | 
					
						
							|  |  |  | "reset($self, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTESTREAMREADER_RESET_METHODDEF    \
 | 
					
						
							|  |  |  |     {"reset", (PyCFunction)_multibytecodec_MultibyteStreamReader_reset, METH_NOARGS, _multibytecodec_MultibyteStreamReader_reset__doc__}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteStreamReader_reset_impl(MultibyteStreamReaderObject *self); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteStreamReader_reset(MultibyteStreamReaderObject *self, PyObject *Py_UNUSED(ignored)) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return _multibytecodec_MultibyteStreamReader_reset_impl(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_write__doc__, | 
					
						
							|  |  |  | "write($self, strobj, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTESTREAMWRITER_WRITE_METHODDEF    \
 | 
					
						
							|  |  |  |     {"write", (PyCFunction)_multibytecodec_MultibyteStreamWriter_write, METH_O, _multibytecodec_MultibyteStreamWriter_write__doc__}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_writelines__doc__, | 
					
						
							|  |  |  | "writelines($self, lines, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTESTREAMWRITER_WRITELINES_METHODDEF    \
 | 
					
						
							|  |  |  |     {"writelines", (PyCFunction)_multibytecodec_MultibyteStreamWriter_writelines, METH_O, _multibytecodec_MultibyteStreamWriter_writelines__doc__}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_reset__doc__, | 
					
						
							|  |  |  | "reset($self, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC_MULTIBYTESTREAMWRITER_RESET_METHODDEF    \
 | 
					
						
							|  |  |  |     {"reset", (PyCFunction)_multibytecodec_MultibyteStreamWriter_reset, METH_NOARGS, _multibytecodec_MultibyteStreamWriter_reset__doc__}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteStreamWriter_reset_impl(MultibyteStreamWriterObject *self); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static PyObject * | 
					
						
							|  |  |  | _multibytecodec_MultibyteStreamWriter_reset(MultibyteStreamWriterObject *self, PyObject *Py_UNUSED(ignored)) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return _multibytecodec_MultibyteStreamWriter_reset_impl(self); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyDoc_STRVAR(_multibytecodec___create_codec__doc__, | 
					
						
							|  |  |  | "__create_codec($module, arg, /)\n" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:22:35 -05:00
										 |  |  | "--\n" | 
					
						
							|  |  |  | "\n"); | 
					
						
							| 
									
										
										
										
											2014-08-22 11:45:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF    \
 | 
					
						
							|  |  |  |     {"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__}, | 
					
						
							| 
									
										
										
										
											2017-07-03 21:20:15 +03:00
										 |  |  | /*[clinic end generated code: output=dc2352619de9d74f input=a9049054013a1b77]*/ |