diff options
author | Guido van Rossum <guido@python.org> | 1996-12-10 15:33:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-10 15:33:34 (GMT) |
commit | 067998f35ec3013e9a55aad29f0e3dbe4560d11c (patch) | |
tree | 482d92ddc8fc1be73bd43d6dcac7f11fc0f4aa58 /Include/stringobject.h | |
parent | 36dd0d27c4916dbe67545d3bcb18df06825fbb26 (diff) | |
download | cpython-067998f35ec3013e9a55aad29f0e3dbe4560d11c.zip cpython-067998f35ec3013e9a55aad29f0e3dbe4560d11c.tar.gz cpython-067998f35ec3013e9a55aad29f0e3dbe4560d11c.tar.bz2 |
Add const to error and newstring functions
Diffstat (limited to 'Include/stringobject.h')
-rw-r--r-- | Include/stringobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/stringobject.h b/Include/stringobject.h index 06e572d..2c3e568 100644 --- a/Include/stringobject.h +++ b/Include/stringobject.h @@ -69,8 +69,8 @@ extern DL_IMPORT(PyTypeObject) PyString_Type; #define PyString_Check(op) ((op)->ob_type == &PyString_Type) -extern PyObject *PyString_FromStringAndSize Py_PROTO((char *, int)); -extern PyObject *PyString_FromString Py_PROTO((char *)); +extern PyObject *PyString_FromStringAndSize Py_PROTO((const char *, int)); +extern PyObject *PyString_FromString Py_PROTO((const char *)); extern int PyString_Size Py_PROTO((PyObject *)); extern char *PyString_AsString Py_PROTO((PyObject *)); extern void PyString_Concat Py_PROTO((PyObject **, PyObject *)); |