Lines Matching refs:addr
8 PyMember_GetOne(const char *addr, PyMemberDef *l) in PyMember_GetOne() argument
12 addr += l->offset; in PyMember_GetOne()
15 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne()
18 v = PyLong_FromLong(*(char*)addr); in PyMember_GetOne()
21 v = PyLong_FromUnsignedLong(*(unsigned char*)addr); in PyMember_GetOne()
24 v = PyLong_FromLong(*(short*)addr); in PyMember_GetOne()
27 v = PyLong_FromUnsignedLong(*(unsigned short*)addr); in PyMember_GetOne()
30 v = PyLong_FromLong(*(int*)addr); in PyMember_GetOne()
33 v = PyLong_FromUnsignedLong(*(unsigned int*)addr); in PyMember_GetOne()
36 v = PyLong_FromLong(*(long*)addr); in PyMember_GetOne()
39 v = PyLong_FromUnsignedLong(*(unsigned long*)addr); in PyMember_GetOne()
42 v = PyLong_FromSsize_t(*(Py_ssize_t*)addr); in PyMember_GetOne()
45 v = PyFloat_FromDouble((double)*(float*)addr); in PyMember_GetOne()
48 v = PyFloat_FromDouble(*(double*)addr); in PyMember_GetOne()
51 if (*(char**)addr == NULL) { in PyMember_GetOne()
56 v = PyUnicode_FromString(*(char**)addr); in PyMember_GetOne()
59 v = PyUnicode_FromString((char*)addr); in PyMember_GetOne()
62 v = PyUnicode_FromStringAndSize((char*)addr, 1); in PyMember_GetOne()
65 v = *(PyObject **)addr; in PyMember_GetOne()
71 v = *(PyObject **)addr; in PyMember_GetOne()
77 v = PyLong_FromLongLong(*(long long *)addr); in PyMember_GetOne()
80 v = PyLong_FromUnsignedLongLong(*(unsigned long long *)addr); in PyMember_GetOne()
100 PyMember_SetOne(char *addr, PyMemberDef *l, PyObject *v) in PyMember_SetOne() argument
104 addr += l->offset; in PyMember_SetOne()
114 if (*(PyObject **)addr == NULL) { in PyMember_SetOne()
133 *(char*)addr = (char) 1; in PyMember_SetOne()
135 *(char*)addr = (char) 0; in PyMember_SetOne()
142 *(char*)addr = (char)long_val; in PyMember_SetOne()
153 *(unsigned char*)addr = (unsigned char)long_val; in PyMember_SetOne()
162 *(short*)addr = (short)long_val; in PyMember_SetOne()
171 *(unsigned short*)addr = (unsigned short)long_val; in PyMember_SetOne()
180 *(int *)addr = (int)long_val; in PyMember_SetOne()
195 *(unsigned int *)addr = (unsigned int)ulong_val; in PyMember_SetOne()
198 *(unsigned int *)addr = (unsigned int)ulong_val; in PyMember_SetOne()
204 *(long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
205 if ((*(long*)addr == -1) && PyErr_Occurred()) in PyMember_SetOne()
210 *(unsigned long*)addr = PyLong_AsUnsignedLong(v); in PyMember_SetOne()
211 if ((*(unsigned long*)addr == (unsigned long)-1) in PyMember_SetOne()
216 *(unsigned long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
217 if ((*(unsigned long*)addr == (unsigned long)-1) in PyMember_SetOne()
225 *(Py_ssize_t*)addr = PyLong_AsSsize_t(v); in PyMember_SetOne()
226 if ((*(Py_ssize_t*)addr == (Py_ssize_t)-1) in PyMember_SetOne()
235 *(float*)addr = (float)double_val; in PyMember_SetOne()
239 *(double*)addr = PyFloat_AsDouble(v); in PyMember_SetOne()
240 if ((*(double*)addr == -1) && PyErr_Occurred()) in PyMember_SetOne()
246 oldv = *(PyObject **)addr; in PyMember_SetOne()
247 *(PyObject **)addr = v; in PyMember_SetOne()
259 *(char*)addr = string[0]; in PyMember_SetOne()
268 *(long long*)addr = value = PyLong_AsLongLong(v); in PyMember_SetOne()
278 *(unsigned long long*)addr = value = PyLong_AsUnsignedLongLong(v); in PyMember_SetOne()
280 *(unsigned long long*)addr = value = PyLong_AsLong(v); in PyMember_SetOne()