mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +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
|
@ -359,11 +359,6 @@ convertitem(PyObject *arg, char **p_format, va_list *p_va, int *levels,
|
|||
|
||||
|
||||
|
||||
/* Internal API needed by convertsimple() and a helper macro. */
|
||||
extern
|
||||
PyObject *_PyUnicode_AsDefaultEncodedString(PyObject *unicode,
|
||||
const char *errors);
|
||||
|
||||
#define UNICODE_DEFAULT_ENCODING(arg) \
|
||||
_PyUnicode_AsDefaultEncodedString(arg, NULL)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue