/external/python/cpython2/Modules/ |
D | clmodule.c | 361 v = PyInt_FromLong(PVbuffer[i]); in doParams() 405 return PyInt_FromLong(value); in do_get() 452 return PyInt_FromLong(value); in clm_SetParam() 474 return PyInt_FromLong(value); in clm_GetParamID() 511 PyList_SetItem(list, i, PyInt_FromLong(PVbuffer[i])); in clm_QueryParams() 573 return PyInt_FromLong(clQuerySchemeFromHandle(SELF->ob_compressorHdl)); in clm_QuerySchemeFromHandle() 587 return PyInt_FromLong(clReadHeader(SELF->ob_compressorHdl, in clm_ReadHeader() 722 return PyInt_FromLong(scheme); in cl_QueryScheme() 733 return PyInt_FromLong(clQueryMaxHeaderSize(scheme)); in cl_QueryMaxHeaderSize() 772 PyList_SetItem(list, i, PyInt_FromLong(PVbuffer[i])); in cl_QueryAlgorithms() [all …]
|
D | almodule.c | 77 return PyInt_FromLong((long) value.i); in param2python() 271 return PyInt_FromLong((long) par); in GetConfig() 436 return PyInt_FromLong((long) par); in getconfig() 657 return PyInt_FromLong((long) resource); in alp_GetResource() 675 return PyInt_FromLong((long) fd); in alp_GetFD() 692 return PyInt_FromLong((long) filled); in alp_GetFilled() 709 return PyInt_FromLong((long) fillable); in alp_GetFillable() 798 return PyInt_FromLong((long) framecount); in alp_DiscardFrames() 860 return PyInt_FromLong((long) fillpoint); in alp_GetFillPoint() 1014 return PyInt_FromLong(fd); in alp_getfd() [all …]
|
D | signalmodule.c | 232 return PyInt_FromLong((long)alarm(t)); in signal_alarm() 598 x = PyInt_FromLong((long)NSIG); in initsignal() 629 x = PyInt_FromLong(SIGHUP); in initsignal() 634 x = PyInt_FromLong(SIGINT); in initsignal() 639 x = PyInt_FromLong(SIGBREAK); in initsignal() 644 x = PyInt_FromLong(SIGQUIT); in initsignal() 649 x = PyInt_FromLong(SIGILL); in initsignal() 654 x = PyInt_FromLong(SIGTRAP); in initsignal() 659 x = PyInt_FromLong(SIGIOT); in initsignal() 664 x = PyInt_FromLong(SIGABRT); in initsignal() [all …]
|
D | resource.c | 89 PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss)); in resource_getrusage() 90 PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss)); in resource_getrusage() 91 PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss)); in resource_getrusage() 92 PyStructSequence_SET_ITEM(result, 5, PyInt_FromLong(ru.ru_isrss)); in resource_getrusage() 93 PyStructSequence_SET_ITEM(result, 6, PyInt_FromLong(ru.ru_minflt)); in resource_getrusage() 94 PyStructSequence_SET_ITEM(result, 7, PyInt_FromLong(ru.ru_majflt)); in resource_getrusage() 95 PyStructSequence_SET_ITEM(result, 8, PyInt_FromLong(ru.ru_nswap)); in resource_getrusage() 96 PyStructSequence_SET_ITEM(result, 9, PyInt_FromLong(ru.ru_inblock)); in resource_getrusage() 97 PyStructSequence_SET_ITEM(result, 10, PyInt_FromLong(ru.ru_oublock)); in resource_getrusage() 98 PyStructSequence_SET_ITEM(result, 11, PyInt_FromLong(ru.ru_msgsnd)); in resource_getrusage() [all …]
|
D | cdmodule.c | 47 return PyInt_FromLong((long) CDbestreadsize(self->ob_cdplayer)); in CD_bestreadsize() 140 return PyInt_FromLong((long) CDmsftoblock(self->ob_cdplayer, in CD_msftoblock() 274 return PyInt_FromLong(PyTryBlock); in CD_seek() 292 return PyInt_FromLong(PyTryBlock); in CD_seektrack() 309 return PyInt_FromLong(PyTryBlock); in CD_seekblock() 468 PyTuple_SetItem(args, 1, PyInt_FromLong((long) type)); in CD_callback() 475 v = PyInt_FromLong(((CDPROGNUM *) data)->value); in CD_callback() 510 v = PyInt_FromLong((long) *((unchar *) data)); in CD_callback() 739 return PyInt_FromLong((long) CDmsftoframe(min, sec, frame)); in CD_msftoframe() 767 PyDict_SetItemString(d, "audio", PyInt_FromLong((long) cd_audio)); in initcd() [all …]
|
D | _localemodule.c | 75 val = PyInt_FromLong(s[i]); in copy_grouping() 230 x = PyInt_FromLong(l->i);\ in PyLocale_localeconv() 283 return PyInt_FromLong(strcoll(s1, s2)); in PyLocale_strcoll() 293 return PyInt_FromLong(strcoll(PyString_AS_STRING(os1), in PyLocale_strcoll() 336 result = PyInt_FromLong(wcscoll(ws1, ws2)); in PyLocale_strcoll() 705 x = PyInt_FromLong(LC_CTYPE); in init_locale() 709 x = PyInt_FromLong(LC_TIME); in init_locale() 713 x = PyInt_FromLong(LC_COLLATE); in init_locale() 717 x = PyInt_FromLong(LC_MONETARY); in init_locale() 722 x = PyInt_FromLong(LC_MESSAGES); in init_locale() [all …]
|
D | timingmodule.c | 29 return PyInt_FromLong(TIMINGS); in seconds() 35 return PyInt_FromLong(TIMINGMS); in milli() 41 return PyInt_FromLong(TIMINGUS); in micro()
|
D | termios.c | 104 v = PyInt_FromLong((long)mode.c_cc[VMIN]); in termios_tcgetattr() 108 v = PyInt_FromLong((long)mode.c_cc[VTIME]); in termios_tcgetattr() 117 PyList_SetItem(v, 0, PyInt_FromLong((long)mode.c_iflag)); in termios_tcgetattr() 118 PyList_SetItem(v, 1, PyInt_FromLong((long)mode.c_oflag)); in termios_tcgetattr() 119 PyList_SetItem(v, 2, PyInt_FromLong((long)mode.c_cflag)); in termios_tcgetattr() 120 PyList_SetItem(v, 3, PyInt_FromLong((long)mode.c_lflag)); in termios_tcgetattr() 121 PyList_SetItem(v, 4, PyInt_FromLong((long)ispeed)); in termios_tcgetattr() 122 PyList_SetItem(v, 5, PyInt_FromLong((long)ospeed)); in termios_tcgetattr()
|
D | dlmodule.c | 73 return PyInt_FromLong((long)func); in dl_sym() 126 return PyInt_FromLong(res); in dl_call() 229 PyObject *v = PyInt_FromLong((long) value); in insint() 257 x = PyInt_FromLong((long)RTLD_LAZY); in initdl()
|
D | _struct.c | 358 return PyInt_FromLong((long) *(signed char *)p); in nu_byte() 364 return PyInt_FromLong((long) *(unsigned char *)p); in nu_ubyte() 372 return PyInt_FromLong((long)x); in nu_short() 380 return PyInt_FromLong((long)x); in nu_ushort() 388 return PyInt_FromLong((long)x); in nu_int() 397 return PyInt_FromLong((long)x); in nu_uint() 400 return PyInt_FromLong((long)x); in nu_uint() 410 return PyInt_FromLong(x); in nu_long() 419 return PyInt_FromLong((long)x); in nu_ulong() 434 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); in nu_longlong() [all …]
|
D | xxsubtype.c | 31 return PyInt_FromLong(self->state); in spamlist_getstate() 94 return PyInt_FromLong(self->state); in spamlist_state_get() 156 return PyInt_FromLong(self->state); in spamdict_getstate()
|
D | cgensupport.h | 14 #define mknewlongobject(x) PyInt_FromLong(x) 15 #define mknewshortobject(x) PyInt_FromLong((long)x)
|
D | syslogmodule.c | 201 return PyInt_FromLong(omaskpri); in syslog_setlogmask() 212 return PyInt_FromLong(mask); in syslog_log_mask() 223 return PyInt_FromLong(mask); in syslog_log_upto()
|
D | readline.c | 190 return PyInt_FromLong(_history_length); in get_history_length() 310 return PyInt_FromLong(rl_completion_type); in get_completion_type() 597 return PyInt_FromLong((long)_py_get_history_length()); in get_current_history_length() 896 begidx = PyInt_FromLong((long) start); in flex_complete() 897 endidx = PyInt_FromLong((long) end); in flex_complete() 961 begidx = PyInt_FromLong(0L); in setup_readline() 962 endidx = PyInt_FromLong(0L); in setup_readline()
|
D | ossaudiodev.c | 239 return PyInt_FromLong(arg); in _do_ioctl_1() 264 return PyInt_FromLong(arg); in _do_ioctl_1_internal() 324 return PyInt_FromLong(mask); in oss_getfmts() 408 return PyInt_FromLong(rv); in oss_write() 481 return PyInt_FromLong(self->fd); in oss_fileno() 586 return PyInt_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize() 605 return PyInt_FromLong((ai.fragstotal * ai.fragsize - ai.bytes) / in oss_obufcount() 625 return PyInt_FromLong(ai.bytes / (ssize * nchannels)); in oss_obuffree() 664 return PyInt_FromLong(self->fd); in oss_mixer_fileno()
|
/external/python/cpython2/RISCOS/Modules/ |
D | riscosmodule.c | 60 return PyInt_FromLong(system(command)); in riscos_system() 203 PyInt_FromLong((long) mode)); /*st_mode*/ in riscos_stat() 204 PyStructSequence_SET_ITEM(v, 1, PyInt_FromLong((long) 0)); /*st_ino*/ in riscos_stat() 205 PyStructSequence_SET_ITEM(v, 2, PyInt_FromLong((long) 0)); /*st_dev*/ in riscos_stat() 206 PyStructSequence_SET_ITEM(v, 3, PyInt_FromLong((long) 0)); /*st_nlink*/ in riscos_stat() 207 PyStructSequence_SET_ITEM(v, 4, PyInt_FromLong((long) 0)); /*st_uid*/ in riscos_stat() 208 PyStructSequence_SET_ITEM(v, 5, PyInt_FromLong((long) 0)); /*st_gid*/ in riscos_stat() 210 PyInt_FromLong((long) len)); /*st_size*/ in riscos_stat() 211 PyStructSequence_SET_ITEM(v, 7, PyInt_FromLong((long) t)); /*st_atime*/ in riscos_stat() 212 PyStructSequence_SET_ITEM(v, 8, PyInt_FromLong((long) t)); /*st_mtime*/ in riscos_stat() [all …]
|
D | swimodule.c | 33 PyObject_SetAttrString(PyErr_Occurred(), "errnum", PyInt_FromLong(e->errnum)); in swi_oserror() 228 return PyInt_FromLong(((long*)(b->block))[i]); in block_item() 293 if (!strcmp(name, "length")) return PyInt_FromLong((long)s->length); in PyBlock_GetAttr() 294 if (!strcmp(name, "start")) return PyInt_FromLong((long)s->block); in PyBlock_GetAttr() 295 if (!strcmp(name,"end")) return PyInt_FromLong(((long)(s->block)+s->length)); in PyBlock_GetAttr() 404 { case 'i':v=PyInt_FromLong((long)r.r[rno++]); break; in swi_swi() 407 case '*':v=PyInt_FromLong((long)carry); break; in swi_swi() 437 return PyInt_FromLong(*i); in swi_integer() 454 result1 = PyInt_FromLong((long)*i); in swi_integers() 497 result11 = PyInt_FromLong((long)(*i)); in swi_tuples() [all …]
|
/external/python/cpython2/Objects/ |
D | intobject.c | 87 PyInt_FromLong(long ival) in PyInt_FromLong() function 119 return PyInt_FromLong((long)ival); in PyInt_FromSize_t() 127 return PyInt_FromLong((long)ival); in PyInt_FromSsize_t() 396 return PyInt_FromLong(x); in PyInt_FromString() 474 return PyInt_FromLong(x); in int_add() 487 return PyInt_FromLong(x); in int_sub() 536 return PyInt_FromLong(longprod); in int_mul() 551 return PyInt_FromLong(longprod); in int_mul() 624 return PyInt_FromLong(d); in int_div() 645 return PyInt_FromLong(d); in int_classic_div() [all …]
|
/external/python/cpython2/Python/ |
D | sysmodule.c | 483 return PyInt_FromLong(_Py_CheckInterval); in sys_getcheckinterval() 545 return PyInt_FromLong(Py_GetRecursionLimit()); in sys_getrecursionlimit() 608 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwMajorVersion)); in sys_getwindowsversion() 609 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwMinorVersion)); in sys_getwindowsversion() 610 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwBuildNumber)); in sys_getwindowsversion() 611 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwPlatformId)); in sys_getwindowsversion() 613 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wServicePackMajor)); in sys_getwindowsversion() 614 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wServicePackMinor)); in sys_getwindowsversion() 615 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wSuiteMask)); in sys_getwindowsversion() 616 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wProductType)); in sys_getwindowsversion() [all …]
|
D | structmember.c | 68 v = PyInt_FromLong(*(char*)addr); in PyMember_GetOne() 74 v = PyInt_FromLong(*(short*)addr); in PyMember_GetOne() 80 v = PyInt_FromLong(*(int*)addr); in PyMember_GetOne() 86 v = PyInt_FromLong(*(long*)addr); in PyMember_GetOne()
|
D | modsupport.c | 339 return PyInt_FromLong((long)va_arg(*p_va, int)); in do_mkvalue() 342 return PyInt_FromLong((long)va_arg(*p_va, unsigned int)); in do_mkvalue() 351 return PyInt_FromLong(n); in do_mkvalue() 360 return PyInt_FromLong(va_arg(*p_va, long)); in do_mkvalue() 369 return PyInt_FromLong(n); in do_mkvalue() 651 PyObject *o = PyInt_FromLong(value); in PyModule_AddIntConstant()
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor.cc | 50 #define PyInt_FromLong PyLong_FromLong macro 511 PyObject* start = PyInt_FromLong(range->start); in GetExtensionRanges() 512 PyObject* end = PyInt_FromLong(range->end); in GetExtensionRanges() 698 return PyInt_FromLong(_GetDescriptor(self)->type()); in GetType() 702 return PyInt_FromLong(_GetDescriptor(self)->cpp_type()); in GetCppType() 706 return PyInt_FromLong(_GetDescriptor(self)->label()); in GetLabel() 710 return PyInt_FromLong(_GetDescriptor(self)->number()); in GetNumber() 714 return PyInt_FromLong(_GetDescriptor(self)->index()); in GetIndex() 735 result = PyInt_FromLong(value); in GetDefaultValue() 776 result = PyInt_FromLong(value->number()); in GetDefaultValue() [all …]
|
/external/python/cpython2/PC/ |
D | msvcrtmodule.c | 98 return PyInt_FromLong(flags); in msvcrt_setmode() 123 return PyInt_FromLong(fd); in msvcrt_open_osfhandle() 174 return PyInt_FromLong(ok); in msvcrt_kbhit() 364 PyObject *v = PyInt_FromLong((long) value); in insertint()
|
D | _subprocess.c | 73 #define HANDLE_TO_PYNUM(handle) PyInt_FromLong((long) handle) 533 return PyInt_FromLong(exit_code); in sp_GetExitCodeProcess() 562 return PyInt_FromLong((int) result); in sp_WaitForSingleObject() 576 return PyInt_FromLong((int) GetVersion()); in sp_GetVersion() 636 PyObject* v = PyInt_FromLong((long) value); in defint()
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.h | 75 # define PyInt_FromSsize_t(n) PyInt_FromLong((long)n) 149 # define PyInt_FromLong PyLong_FromLong macro
|