diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 16:46:16 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 16:46:16 +0000 |
commit | 49af04e5f18dc88fa2356acf9bac7e805dad6140 (patch) | |
tree | dbca7443cbf2947727269f1275228f0500bf9acc /Include/object.h | |
parent | b7b093eabcb7ce999e8f64fedfef53bfd3d79395 (diff) | |
download | cpython-49af04e5f18dc88fa2356acf9bac7e805dad6140.tar.gz |
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 33b75bec69..9c91373115 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 *); |