diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 19:39:49 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 19:39:49 (GMT) |
commit | fb5f5f24207ff18bab339561b4017b59ee3b3bc8 (patch) | |
tree | 40a0b7414e2a20bf40eb13be5b13298cca68d31d /Include | |
parent | ee12f4429c77da726eb665a811d832260ce640ed (diff) | |
download | cpython-fb5f5f24207ff18bab339561b4017b59ee3b3bc8.zip cpython-fb5f5f24207ff18bab339561b4017b59ee3b3bc8.tar.gz cpython-fb5f5f24207ff18bab339561b4017b59ee3b3bc8.tar.bz2 |
Mark PyUnicode_CONVERT_BYTES as private
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index dbd4fd8..b23f8a7 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -468,21 +468,6 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type; (PyUnicode_IS_READY(op) ? \ 0 : _PyUnicode_Ready((PyUnicodeObject *)(op)))) -/* Generic helper macro to convert characters of different types. - from_type and to_type have to be valid type names, begin and end - are pointers to the source characters which should be of type - "from_type *". to is a pointer of type "to_type *" and points to the - buffer where the result characters are written to. */ -#define PyUnicode_CONVERT_BYTES(from_type, to_type, begin, end, to) \ - do { \ - const from_type *iter_; to_type *to_; \ - for (iter_ = (begin), to_ = (to_type *)(to); \ - iter_ < (end); \ - ++iter_, ++to_) { \ - *to_ = (to_type)*iter_; \ - } \ - } while (0) - /* Return a maximum character value which is suitable for creating another string based on op. This is always an approximation but more efficient than interating over the string. */ |