Le Lundi 21 Novembre 2011 16:55:05 Antoine Pitrou a écrit : > > I want to rename PyUnicode_AsUnicode() and change its result type > > (Py_UNICODE* => wchar_t*). The result will be a "borrowed reference", > > ie. you don't have to free the memory, it will be done when the Unicode > > string will be destroyed (by Py_DECREF). > > But this is almost the same as PyUnicode_AsWideCharString, right? You have to free the memory for PyUnicode_AsWideCharString(). With PyUnicode_AsWideCharXXX(), as PyUnicode_AsUnicode(), you don't have to. The memory is handled by the Unicode object. Victor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4