Home
last modified time | relevance | path

Searched refs:PyInt_FromSsize_t (Results 1 – 25 of 50) sorted by relevance

12

/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.h75 # define PyInt_FromSsize_t(n) PyInt_FromLong((long)n) macro
150 # define PyInt_FromSsize_t PyLong_FromSsize_t macro
Dconnection.h232 result = PyInt_FromSsize_t(res); in connection_recvbytes_into()
/external/python/cpython2/Objects/
Denumobject.c89 en->en_longindex = PyInt_FromSsize_t(PY_SSIZE_T_MAX); in enum_next_long()
137 next_index = PyInt_FromSsize_t(en->en_index); in enum_next()
329 return PyInt_FromSsize_t((seqsize < position) ? 0 : position); in reversed_len()
Dsliceobject.c87 start = PyInt_FromSsize_t(istart); in _PySlice_FromIndices()
90 end = PyInt_FromSsize_t(istop); in _PySlice_FromIndices()
Diterobject.c89 return PyInt_FromSsize_t(len); in iter_len()
Dbytearrayobject.c1193 return PyInt_FromSsize_t(result); in bytearray_find()
1220 count_obj = PyInt_FromSsize_t( in bytearray_count()
1244 return PyInt_FromSsize_t(result); in bytearray_index()
1263 return PyInt_FromSsize_t(result); in bytearray_rfind()
1283 return PyInt_FromSsize_t(result); in bytearray_rindex()
2590 return PyInt_FromSsize_t(self->ob_alloc); in bytearray_alloc()
2791 return PyInt_FromSsize_t(res); in bytearray_sizeof()
3003 return PyInt_FromSsize_t(len); in bytesarrayiter_length_hint()
Dtupleobject.c534 return PyInt_FromSsize_t(i); in tupleindex()
555 return PyInt_FromSsize_t(count); in tuplecount()
980 return PyInt_FromSsize_t(len); in tupleiter_len()
Dstringobject.c1758 return PyInt_FromSsize_t(result); in string_find()
1778 return PyInt_FromSsize_t(result); in string_index()
1797 return PyInt_FromSsize_t(result); in string_rfind()
1817 return PyInt_FromSsize_t(result); in string_rindex()
2141 return PyInt_FromSsize_t(count); in string_count()
2149 return PyInt_FromSsize_t( in string_count()
3582 return PyInt_FromSsize_t(res); in string_sizeof()
Dlistobject.c2303 return PyInt_FromSsize_t(i); in listindex()
2337 return PyInt_FromSsize_t(count); in listcount()
2476 return PyInt_FromSsize_t(res); in list_sizeof()
2933 return PyInt_FromSsize_t(len); in listiter_len()
/external/python/cpython2/Modules/
D_bisectmodule.c58 return PyInt_FromSsize_t(index); in bisect_right()
164 return PyInt_FromSsize_t(index); in bisect_left()
D_weakref.c20 result = PyInt_FromSsize_t(_PyWeakref_GetWeakrefCount(*list)); in weakref_getweakrefcount()
D_testcapimodule.c1154 return PyInt_FromSsize_t(value); in getargs_n()
2788 PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyInt_FromSsize_t(PY_SSIZE_T_MAX)); in init_testcapi()
2789 PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyInt_FromSsize_t(PY_SSIZE_T_MIN)); in init_testcapi()
2790 PyModule_AddObject(m, "SIZEOF_PYGC_HEAD", PyInt_FromSsize_t(sizeof(PyGC_Head))); in init_testcapi()
Dmmapmodule.c299 return PyInt_FromSsize_t(p - self->data); in mmap_gfind()
411 return PyInt_FromSsize_t(self->size); in mmap_size_method()
D_sre.c3479 return PyInt_FromSsize_t(self->mark[index*2]); in match_start()
3502 return PyInt_FromSsize_t(self->mark[index*2+1]); in match_end()
3515 item = PyInt_FromSsize_t(i1); in _pair()
3520 item = PyInt_FromSsize_t(i2); in _pair()
3692 return PyInt_FromSsize_t(self->lastindex); in match_lastindex_get()
D_json.c10 #define PyInt_FromSsize_t PyInt_FromLong macro
155 return PyInt_FromSsize_t(*size_ptr); in _convertPyInt_FromSsize_t()
420 pyidx = PyInt_FromSsize_t(idx); in _build_rval_index_tuple()
Dthreadmodule.c833 return PyInt_FromSsize_t((Py_ssize_t) old_size); in thread_stack_size()
DcStringIO.c302 return PyInt_FromSsize_t(self->pos); in IO_tell()
/external/python/cpython2/Include/
Dintobject.h40 PyAPI_FUNC(PyObject *) PyInt_FromSsize_t(Py_ssize_t);
/external/python/cpython2/Modules/_ctypes/
Dcallproc.c1557 return PyInt_FromSsize_t(dict->size); in sizeof_func()
1560 return PyInt_FromSsize_t(((CDataObject *)obj)->b_size); in sizeof_func()
1578 return PyInt_FromSsize_t(dict->align); in align_func()
1582 return PyInt_FromSsize_t(dict->align); in align_func()
Dctypes.h16 #define PyInt_FromSsize_t PyInt_FromLong macro
/external/python/cpython2/Python/
Dstructmember.c92 v = PyInt_FromSsize_t(*(Py_ssize_t*)addr); in PyMember_GetOne()
Dsysmodule.c771 return PyInt_FromSsize_t(arg->ob_refcnt); in sys_getrefcount()
778 return PyInt_FromSsize_t(_Py_GetRefTotal()); in sys_gettotalrefcount()
1447 PyInt_FromSsize_t(PY_SSIZE_T_MAX)); in _PySys_Init()
Dmodsupport.c356 return PyInt_FromSsize_t(va_arg(*p_va, Py_ssize_t)); in do_mkvalue()
/external/python/cpython2/Doc/c-api/
Dint.rst69 .. c:function:: PyObject* PyInt_FromSsize_t(Py_ssize_t ival)
/external/python/cpython2/RISCOS/Modules/
Dswimodule.c242 for(k=0;k<n;k++) PyList_SetItem(result,k,PyInt_FromSsize_t(p[i+k])); in block_slice()

12