mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Reindent internal Unicode macros
This commit is contained in:
parent
a41463c203
commit
a5f9163501
1 changed files with 14 additions and 7 deletions
|
@ -111,24 +111,31 @@ extern "C" {
|
||||||
PyUnicode_IS_COMPACT_ASCII(op) ? \
|
PyUnicode_IS_COMPACT_ASCII(op) ? \
|
||||||
((PyASCIIObject*)(op))->length : \
|
((PyASCIIObject*)(op))->length : \
|
||||||
_PyUnicode_UTF8_LENGTH(op))
|
_PyUnicode_UTF8_LENGTH(op))
|
||||||
#define _PyUnicode_WSTR(op) (((PyASCIIObject*)(op))->wstr)
|
#define _PyUnicode_WSTR(op) \
|
||||||
#define _PyUnicode_WSTR_LENGTH(op) (((PyCompactUnicodeObject*)(op))->wstr_length)
|
(((PyASCIIObject*)(op))->wstr)
|
||||||
#define _PyUnicode_LENGTH(op) (((PyASCIIObject *)(op))->length)
|
#define _PyUnicode_WSTR_LENGTH(op) \
|
||||||
#define _PyUnicode_STATE(op) (((PyASCIIObject *)(op))->state)
|
(((PyCompactUnicodeObject*)(op))->wstr_length)
|
||||||
#define _PyUnicode_HASH(op) (((PyASCIIObject *)(op))->hash)
|
#define _PyUnicode_LENGTH(op) \
|
||||||
|
(((PyASCIIObject *)(op))->length)
|
||||||
|
#define _PyUnicode_STATE(op) \
|
||||||
|
(((PyASCIIObject *)(op))->state)
|
||||||
|
#define _PyUnicode_HASH(op) \
|
||||||
|
(((PyASCIIObject *)(op))->hash)
|
||||||
#define _PyUnicode_KIND(op) \
|
#define _PyUnicode_KIND(op) \
|
||||||
(assert(_PyUnicode_CHECK(op)), \
|
(assert(_PyUnicode_CHECK(op)), \
|
||||||
((PyASCIIObject *)(op))->state.kind)
|
((PyASCIIObject *)(op))->state.kind)
|
||||||
#define _PyUnicode_GET_LENGTH(op) \
|
#define _PyUnicode_GET_LENGTH(op) \
|
||||||
(assert(_PyUnicode_CHECK(op)), \
|
(assert(_PyUnicode_CHECK(op)), \
|
||||||
((PyASCIIObject *)(op))->length)
|
((PyASCIIObject *)(op))->length)
|
||||||
#define _PyUnicode_DATA_ANY(op) (((PyUnicodeObject*)(op))->data.any)
|
#define _PyUnicode_DATA_ANY(op) \
|
||||||
|
(((PyUnicodeObject*)(op))->data.any)
|
||||||
|
|
||||||
#undef PyUnicode_READY
|
#undef PyUnicode_READY
|
||||||
#define PyUnicode_READY(op) \
|
#define PyUnicode_READY(op) \
|
||||||
(assert(_PyUnicode_CHECK(op)), \
|
(assert(_PyUnicode_CHECK(op)), \
|
||||||
(PyUnicode_IS_READY(op) ? \
|
(PyUnicode_IS_READY(op) ? \
|
||||||
0 : _PyUnicode_Ready((PyObject *)(op))))
|
0 : \
|
||||||
|
_PyUnicode_Ready((PyObject *)(op))))
|
||||||
|
|
||||||
#define _PyUnicode_READY_REPLACE(p_obj) \
|
#define _PyUnicode_READY_REPLACE(p_obj) \
|
||||||
(assert(_PyUnicode_CHECK(*p_obj)), \
|
(assert(_PyUnicode_CHECK(*p_obj)), \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue