diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 16:46:16 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 16:46:16 (GMT) |
commit | 15e62742fad688b026ba80bf17d1345c4cbd423b (patch) | |
tree | fb3545d1da59e94df32d48f21df620681b08765c /Include/object.h | |
parent | f9f61b4aa281c1b19546dba7f1ee529b8b80bc9a (diff) | |
download | cpython-15e62742fad688b026ba80bf17d1345c4cbd423b.zip cpython-15e62742fad688b026ba80bf17d1345c4cbd423b.tar.gz cpython-15e62742fad688b026ba80bf17d1345c4cbd423b.tar.bz2 |
Revert backwards-incompatible const changes.
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/object.h b/Include/object.h index 33b75be..9c91373 100644 --- a/Include/object.h +++ b/Include/object.h @@ -144,12 +144,12 @@ typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *); typedef int (*getreadbufferproc)(PyObject *, int, void **); typedef int (*getwritebufferproc)(PyObject *, int, void **); typedef int (*getsegcountproc)(PyObject *, int *); -typedef int (*getcharbufferproc)(PyObject *, int, const char **); +typedef int (*getcharbufferproc)(PyObject *, int, char **); /* ssize_t-based buffer interface */ typedef Py_ssize_t (*readbufferproc)(PyObject *, Py_ssize_t, void **); typedef Py_ssize_t (*writebufferproc)(PyObject *, Py_ssize_t, void **); typedef Py_ssize_t (*segcountproc)(PyObject *, Py_ssize_t *); -typedef Py_ssize_t (*charbufferproc)(PyObject *, Py_ssize_t, const char **); +typedef Py_ssize_t (*charbufferproc)(PyObject *, Py_ssize_t, char **); typedef int (*objobjproc)(PyObject *, PyObject *); typedef int (*visitproc)(PyObject *, void *); @@ -239,9 +239,9 @@ typedef struct { typedef void (*freefunc)(void *); typedef void (*destructor)(PyObject *); typedef int (*printfunc)(PyObject *, FILE *, int); -typedef PyObject *(*getattrfunc)(PyObject *, const char *); +typedef PyObject *(*getattrfunc)(PyObject *, char *); typedef PyObject *(*getattrofunc)(PyObject *, PyObject *); -typedef int (*setattrfunc)(PyObject *, const char *, PyObject *); +typedef int (*setattrfunc)(PyObject *, char *, PyObject *); typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *); typedef int (*cmpfunc)(PyObject *, PyObject *); typedef PyObject *(*reprfunc)(PyObject *); |