Home
last modified time | relevance | path

Searched refs:PyStringObject_SIZE (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython2/Objects/
Dstringobject.c32 #define PyStringObject_SIZE (offsetof(PyStringObject, ob_sval) + 1) macro
82 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in PyString_FromStringAndSize()
88 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size); in PyString_FromStringAndSize()
122 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in PyString_FromString()
143 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size); in PyString_FromString()
1056 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in string_concat()
1061 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size); in string_concat()
1098 if (nbytes + PyStringObject_SIZE <= nbytes) { in string_repeat()
1103 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + nbytes); in string_repeat()
3581 res = PyStringObject_SIZE + PyString_GET_SIZE(v) * Py_TYPE(v)->tp_itemsize; in string_sizeof()
[all …]