@@ -67,7 +67,7 @@ typedef struct {
6767static char * incnewkwarglist [] = {"errors" , NULL };
6868static char * streamkwarglist [] = {"stream" , "errors" , NULL };
6969
70- static PyObject * multibytecodec_encode (MultibyteCodec * ,
70+ static PyObject * multibytecodec_encode (const MultibyteCodec * ,
7171 MultibyteCodec_State * , PyObject * , Py_ssize_t * ,
7272 PyObject * , int );
7373
@@ -221,7 +221,7 @@ expand_encodebuffer(MultibyteEncodeBuffer *buf, Py_ssize_t esize)
221221 */
222222
223223static int
224- multibytecodec_encerror (MultibyteCodec * codec ,
224+ multibytecodec_encerror (const MultibyteCodec * codec ,
225225 MultibyteCodec_State * state ,
226226 MultibyteEncodeBuffer * buf ,
227227 PyObject * errors , Py_ssize_t e )
@@ -375,7 +375,7 @@ multibytecodec_encerror(MultibyteCodec *codec,
375375}
376376
377377static int
378- multibytecodec_decerror (MultibyteCodec * codec ,
378+ multibytecodec_decerror (const MultibyteCodec * codec ,
379379 MultibyteCodec_State * state ,
380380 MultibyteDecodeBuffer * buf ,
381381 PyObject * errors , Py_ssize_t e )
@@ -479,7 +479,7 @@ multibytecodec_decerror(MultibyteCodec *codec,
479479}
480480
481481static PyObject *
482- multibytecodec_encode (MultibyteCodec * codec ,
482+ multibytecodec_encode (const MultibyteCodec * codec ,
483483 MultibyteCodec_State * state ,
484484 PyObject * text , Py_ssize_t * inpos_t ,
485485 PyObject * errors , int flags )
@@ -1953,7 +1953,7 @@ _multibytecodec___create_codec(PyObject *module, PyObject *arg)
19531953/*[clinic end generated code: output=cfa3dce8260e809d input=6840b2a6b183fcfa]*/
19541954{
19551955 MultibyteCodecObject * self ;
1956- MultibyteCodec * codec ;
1956+ const MultibyteCodec * codec ;
19571957
19581958 if (!PyCapsule_IsValid (arg , PyMultibyteCodec_CAPSULE_NAME )) {
19591959 PyErr_SetString (PyExc_ValueError , "argument type invalid" );
0 commit comments