Lines Matching refs:addr
9 PyMember_GetOne(const char *addr, PyMemberDef *l) in PyMember_GetOne() argument
13 addr += l->offset; in PyMember_GetOne()
16 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne()
19 v = PyLong_FromLong(*(char*)addr); in PyMember_GetOne()
22 v = PyLong_FromUnsignedLong(*(unsigned char*)addr); in PyMember_GetOne()
25 v = PyLong_FromLong(*(short*)addr); in PyMember_GetOne()
28 v = PyLong_FromUnsignedLong(*(unsigned short*)addr); in PyMember_GetOne()
31 v = PyLong_FromLong(*(int*)addr); in PyMember_GetOne()
34 v = PyLong_FromUnsignedLong(*(unsigned int*)addr); in PyMember_GetOne()
37 v = PyLong_FromLong(*(long*)addr); in PyMember_GetOne()
40 v = PyLong_FromUnsignedLong(*(unsigned long*)addr); in PyMember_GetOne()
43 v = PyLong_FromSsize_t(*(Py_ssize_t*)addr); in PyMember_GetOne()
46 v = PyFloat_FromDouble((double)*(float*)addr); in PyMember_GetOne()
49 v = PyFloat_FromDouble(*(double*)addr); in PyMember_GetOne()
52 if (*(char**)addr == NULL) { in PyMember_GetOne()
57 v = PyUnicode_FromString(*(char**)addr); in PyMember_GetOne()
60 v = PyUnicode_FromString((char*)addr); in PyMember_GetOne()
63 v = PyUnicode_FromStringAndSize((char*)addr, 1); in PyMember_GetOne()
66 v = *(PyObject **)addr; in PyMember_GetOne()
72 v = *(PyObject **)addr; in PyMember_GetOne()
78 v = PyLong_FromLongLong(*(long long *)addr); in PyMember_GetOne()
81 v = PyLong_FromUnsignedLongLong(*(unsigned long long *)addr); in PyMember_GetOne()
101 PyMember_SetOne(char *addr, PyMemberDef *l, PyObject *v) in PyMember_SetOne() argument
105 addr += l->offset; in PyMember_SetOne()
115 if (*(PyObject **)addr == NULL) { in PyMember_SetOne()
134 *(char*)addr = (char) 1; in PyMember_SetOne()
136 *(char*)addr = (char) 0; in PyMember_SetOne()
143 *(char*)addr = (char)long_val; in PyMember_SetOne()
154 *(unsigned char*)addr = (unsigned char)long_val; in PyMember_SetOne()
163 *(short*)addr = (short)long_val; in PyMember_SetOne()
172 *(unsigned short*)addr = (unsigned short)long_val; in PyMember_SetOne()
181 *(int *)addr = (int)long_val; in PyMember_SetOne()
196 *(unsigned int *)addr = (unsigned int)ulong_val; in PyMember_SetOne()
199 *(unsigned int *)addr = (unsigned int)ulong_val; in PyMember_SetOne()
205 *(long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
206 if ((*(long*)addr == -1) && PyErr_Occurred()) in PyMember_SetOne()
211 *(unsigned long*)addr = PyLong_AsUnsignedLong(v); in PyMember_SetOne()
212 if ((*(unsigned long*)addr == (unsigned long)-1) in PyMember_SetOne()
217 *(unsigned long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
218 if ((*(unsigned long*)addr == (unsigned long)-1) in PyMember_SetOne()
226 *(Py_ssize_t*)addr = PyLong_AsSsize_t(v); in PyMember_SetOne()
227 if ((*(Py_ssize_t*)addr == (Py_ssize_t)-1) in PyMember_SetOne()
236 *(float*)addr = (float)double_val; in PyMember_SetOne()
240 *(double*)addr = PyFloat_AsDouble(v); in PyMember_SetOne()
241 if ((*(double*)addr == -1) && PyErr_Occurred()) in PyMember_SetOne()
247 oldv = *(PyObject **)addr; in PyMember_SetOne()
248 *(PyObject **)addr = v; in PyMember_SetOne()
260 *(char*)addr = string[0]; in PyMember_SetOne()
269 *(long long*)addr = value = PyLong_AsLongLong(v); in PyMember_SetOne()
279 *(unsigned long long*)addr = value = PyLong_AsUnsignedLongLong(v); in PyMember_SetOne()
281 *(unsigned long long*)addr = value = PyLong_AsLong(v); in PyMember_SetOne()