]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add an optional size argument to _Py_char2wchar()
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 16 Oct 2010 23:16:16 +0000 (23:16 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 16 Oct 2010 23:16:16 +0000 (23:16 +0000)
commit168e117e0a8825bc3ae0c08f0b08a33ac351a14f
tree8f9e0067a2d14a362844f891815791d9d41cfb79
parent0a1b8cba90d467e85be87cd8b10b4d31caa8765a
Add an optional size argument to _Py_char2wchar()

_Py_char2wchar() callers usually need the result size in characters. Since it's
trivial to compute it in _Py_char2wchar() (O(1) whereas wcslen() is O(n)), add
an option to get it.
Include/fileutils.h
Modules/main.c
Modules/python.c
Objects/unicodeobject.c
Python/fileutils.c