[Python-checkins] python/dist/src/Modules _codecsmodule.c, 2.18,
2.19
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Sat Jul 10 23:41:16 CEST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4118/Modules
Modified Files:
_codecsmodule.c
Log Message:
Change some declarations from ``char *`` to ``const char *``. Also added
docstrings for decode and encode; accidentally were left out of the PyMethodDev
table.
Index: _codecsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_codecsmodule.c,v
retrieving revision 2.18
retrieving revision 2.19
diff -C2 -d -r2.18 -r2.19
*** _codecsmodule.c 10 Jul 2004 12:06:09 -0000 2.18
--- _codecsmodule.c 10 Jul 2004 21:41:14 -0000 2.19
***************
*** 98,103 ****
codec_encode(PyObject *self, PyObject *args)
{
! char *encoding = NULL;
! char *errors = NULL;
PyObject *v;
--- 98,103 ----
codec_encode(PyObject *self, PyObject *args)
{
! const char *encoding = NULL;
! const char *errors = NULL;
PyObject *v;
***************
*** 131,136 ****
codec_decode(PyObject *self, PyObject *args)
{
! char *encoding = NULL;
! char *errors = NULL;
PyObject *v;
--- 131,136 ----
codec_decode(PyObject *self, PyObject *args)
{
! const char *encoding = NULL;
! const char *errors = NULL;
PyObject *v;
***************
*** 836,841 ****
{"lookup", codec_lookup, METH_VARARGS,
lookup__doc__},
! {"encode", codec_encode, METH_VARARGS},
! {"decode", codec_decode, METH_VARARGS},
{"escape_encode", escape_encode, METH_VARARGS},
{"escape_decode", escape_decode, METH_VARARGS},
--- 836,843 ----
{"lookup", codec_lookup, METH_VARARGS,
lookup__doc__},
! {"encode", codec_encode, METH_VARARGS,
! encode__doc__},
! {"decode", codec_decode, METH_VARARGS,
! decode__doc__},
{"escape_encode", escape_encode, METH_VARARGS},
{"escape_decode", escape_decode, METH_VARARGS},
More information about the Python-checkins
mailing list