mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add _PyUnicode_AsDefaultEncodedString to unicodeobject.h.
And remove all the extern decls in the middle of .c files. Apparently, it was excluded from the header file because it is intended for internal use by the interpreter. It's still intended for internal use and documented as such in the header file.
This commit is contained in:
parent
5121e7de11
commit
3ce45389bd
5 changed files with 17 additions and 29 deletions
|
@ -333,11 +333,6 @@ PyString_AsString(register PyObject *op)
|
|||
return ((PyStringObject *)op) -> ob_sval;
|
||||
}
|
||||
|
||||
/* Internal API needed by PyString_AsStringAndSize(): */
|
||||
extern
|
||||
PyObject *_PyUnicode_AsDefaultEncodedString(PyObject *unicode,
|
||||
const char *errors);
|
||||
|
||||
int
|
||||
PyString_AsStringAndSize(register PyObject *obj,
|
||||
register char **s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue