Mercurial > cpython-lru_cache-weakref
diff Include/stringobject.h @ 24808:ab63af3ec349 legacy-trunk
Patch #505705: Remove eval in pickle and cPickle.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 14 Aug 2002 07:46:28 +0000 |
| parents | c1eb668525e1 |
| children | bc660f73795c |
line wrap: on
line diff
--- a/Include/stringobject.h Wed Aug 14 02:58:16 2002 +0000 +++ b/Include/stringobject.h Wed Aug 14 07:46:28 2002 +0000 @@ -53,6 +53,7 @@ __attribute__((format(printf, 1, 2))); PyAPI_FUNC(int) PyString_Size(PyObject *); PyAPI_FUNC(char *) PyString_AsString(PyObject *); +PyAPI_FUNC(PyObject *) PyString_Repr(PyObject *, int); PyAPI_FUNC(void) PyString_Concat(PyObject **, PyObject *); PyAPI_FUNC(void) PyString_ConcatAndDel(PyObject **, PyObject *); PyAPI_FUNC(int) _PyString_Resize(PyObject **, int); @@ -60,6 +61,9 @@ PyAPI_FUNC(PyObject *) PyString_Format(PyObject *, PyObject *); PyAPI_FUNC(PyObject *) _PyString_FormatLong(PyObject*, int, int, int, char**, int*); +extern DL_IMPORT(PyObject *) PyString_DecodeEscape(const char *, int, + const char *, int, + const char *); PyAPI_FUNC(void) PyString_InternInPlace(PyObject **); PyAPI_FUNC(PyObject *) PyString_InternFromString(const char *);
