Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 18887:9b291ca6546c legacy-trunk
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.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Mon, 30 Jul 2001 22:34:24 +0000 |
| parents | 27f2422ea335 |
| children | 7257e87e0720 |
line wrap: on
line diff
--- a/Python/getargs.c Mon Jul 30 21:55:29 2001 +0000 +++ b/Python/getargs.c Mon Jul 30 22:34:24 2001 +0000 @@ -359,11 +359,6 @@ -/* 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)
