/third_party/python/Modules/ |
D | resource.c | 115 PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong(ru.ru_maxrss)); in resource_getrusage_impl() 116 PyStructSequence_SET_ITEM(result, 3, PyLong_FromLong(ru.ru_ixrss)); in resource_getrusage_impl() 117 PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong(ru.ru_idrss)); in resource_getrusage_impl() 118 PyStructSequence_SET_ITEM(result, 5, PyLong_FromLong(ru.ru_isrss)); in resource_getrusage_impl() 119 PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(ru.ru_minflt)); in resource_getrusage_impl() 120 PyStructSequence_SET_ITEM(result, 7, PyLong_FromLong(ru.ru_majflt)); in resource_getrusage_impl() 121 PyStructSequence_SET_ITEM(result, 8, PyLong_FromLong(ru.ru_nswap)); in resource_getrusage_impl() 122 PyStructSequence_SET_ITEM(result, 9, PyLong_FromLong(ru.ru_inblock)); in resource_getrusage_impl() 123 PyStructSequence_SET_ITEM(result, 10, PyLong_FromLong(ru.ru_oublock)); in resource_getrusage_impl() 124 PyStructSequence_SET_ITEM(result, 11, PyLong_FromLong(ru.ru_msgsnd)); in resource_getrusage_impl() [all …]
|
D | termios.c | 111 v = PyLong_FromLong((long)mode.c_cc[VMIN]); in termios_tcgetattr_impl() 115 v = PyLong_FromLong((long)mode.c_cc[VTIME]); in termios_tcgetattr_impl() 124 PyList_SetItem(v, 0, PyLong_FromLong((long)mode.c_iflag)); in termios_tcgetattr_impl() 125 PyList_SetItem(v, 1, PyLong_FromLong((long)mode.c_oflag)); in termios_tcgetattr_impl() 126 PyList_SetItem(v, 2, PyLong_FromLong((long)mode.c_cflag)); in termios_tcgetattr_impl() 127 PyList_SetItem(v, 3, PyLong_FromLong((long)mode.c_lflag)); in termios_tcgetattr_impl() 128 PyList_SetItem(v, 4, PyLong_FromLong((long)ispeed)); in termios_tcgetattr_impl() 129 PyList_SetItem(v, 5, PyLong_FromLong((long)ospeed)); in termios_tcgetattr_impl()
|
D | signalmodule.c | 810 return PyLong_FromLong(-1); 833 return PyLong_FromLong(old_fd); 957 signum = PyLong_FromLong(sig); 1064 return PyLong_FromLong(signum); 1146 PyStructSequence_SET_ITEM(result, 0, PyLong_FromLong((long)(si->si_signo))); 1147 PyStructSequence_SET_ITEM(result, 1, PyLong_FromLong((long)(si->si_code))); 1149 PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong(0L)); 1150 PyStructSequence_SET_ITEM(result, 3, PyLong_FromLong(0L)); 1151 PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong(0L)); 1152 PyStructSequence_SET_ITEM(result, 5, PyLong_FromLong(0L)); [all …]
|
D | xxsubtype.c | 31 return PyLong_FromLong(self->state); in spamlist_getstate() 94 return PyLong_FromLong(self->state); in spamlist_state_get() 156 return PyLong_FromLong(self->state); in spamdict_getstate()
|
D | syslogmodule.c | 227 return PyLong_FromLong(omaskpri); in syslog_setlogmask() 238 return PyLong_FromLong(mask); in syslog_log_mask() 249 return PyLong_FromLong(mask); in syslog_log_upto()
|
D | _testcapimodule.c | 222 PyObject* anint = PyLong_FromLong(i); in test_list_api() 263 v = PyLong_FromLong(i); in test_dict_inner() 279 o = PyLong_FromLong(i); in test_dict_inner() 495 #define F_S_TO_PY PyLong_FromLong 573 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow() 576 one = PyLong_FromLong(1L); in test_long_and_overflow() 617 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow() 620 one = PyLong_FromLong(1L); in test_long_and_overflow() 674 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow() 689 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow() [all …]
|
D | ossaudiodev.c | 255 return PyLong_FromLong(arg); in _do_ioctl_1() 280 return PyLong_FromLong(arg); in _do_ioctl_1_internal() 348 return PyLong_FromLong(mask); in oss_getfmts() 446 return PyLong_FromLong(rv); in oss_write() 553 return PyLong_FromLong(self->fd); in oss_fileno() 664 return PyLong_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize() 686 return PyLong_FromLong((ai.fragstotal * ai.fragsize - ai.bytes) / in oss_obufcount() 709 return PyLong_FromLong(ai.bytes / (ssize * nchannels)); in oss_obuffree() 753 return PyLong_FromLong(self->fd); in oss_mixer_fileno()
|
D | readline.c | 391 return PyLong_FromLong(_history_length); in readline_get_history_length_impl() 510 return PyLong_FromLong(rl_completion_type); in readline_get_completion_type_impl() 863 return PyLong_FromLong((long)_py_get_history_length()); in readline_get_current_history_length_impl() 1183 readlinestate_global->begidx = PyLong_FromLong((long) start); in flex_complete() 1184 readlinestate_global->endidx = PyLong_FromLong((long) end); in flex_complete() 1263 mod_state->begidx = PyLong_FromLong(0L); in setup_readline() 1264 mod_state->endidx = PyLong_FromLong(0L); in setup_readline()
|
D | testcapi_long.h | 84 one = PyLong_FromLong(1); in TESTNAME() 107 y = PyLong_FromLong((long)NBITS); in TESTNAME()
|
D | selectmodule.c | 458 key = PyLong_FromLong(fd); in select_poll_register_impl() 461 value = PyLong_FromLong(eventmask); in select_poll_register_impl() 499 key = PyLong_FromLong(fd); in select_poll_modify_impl() 513 value = PyLong_FromLong(eventmask); in select_poll_modify_impl() 546 key = PyLong_FromLong(fd); in select_poll_unregister_impl() 684 num = PyLong_FromLong(self->ufds[i].fd); in select_poll_poll_impl() 695 num = PyLong_FromLong(self->ufds[i].revents & 0xffff); in select_poll_poll_impl() 981 num1 = PyLong_FromLong(self->fds[i].fd); in select_devpoll_poll_impl() 982 num2 = PyLong_FromLong(self->fds[i].revents); in select_devpoll_poll_impl() 1059 return PyLong_FromLong(self->fd_devpoll); in select_devpoll_fileno_impl() [all …]
|
D | _testmultiphase.c | 243 return PyLong_FromLong(m_state->counter); in _testmultiphase_StateAccessType_get_count_impl() 288 return PyLong_FromLong(res); in testexport_foo() 454 three = PyLong_FromLong(3); in createfunc_nonmodule() 494 return PyLong_FromLong(res); in nonmodule_bar()
|
D | xxmodule.c | 162 return PyLong_FromLong(res); in xx_foo() 193 PyList_SetItem(list, 1, PyLong_FromLong(0L)); in xx_bug()
|
D | _cursesmodule.c | 1515 return PyLong_FromLong(rtn); in _curses_window_get_wch_impl() 2630 return PyLong_FromLong((long) X()); } 2775 return PyLong_FromLong(COLOR_PAIR(pair_number)); in _curses_color_pair_impl() 2804 return PyLong_FromLong((long) erg); in _curses_curs_set_impl() 3273 PyObject *o = PyLong_FromLong((long) (ch)); \ in _curses_initscr_impl() 3427 return PyLong_FromLong(ESCDELAY); in _curses_get_escdelay_impl() 3467 return PyLong_FromLong(TABSIZE); in _curses_get_tabsize_impl() 3902 return PyLong_FromLong(PAIR_NUMBER(attr)); in _curses_pair_number_impl() 3965 o = PyLong_FromLong(LINES); in update_lines_cols() 3982 o = PyLong_FromLong(COLS); in update_lines_cols() [all …]
|
D | _datetimemodule.c | 1757 x1 = PyLong_FromLong(GET_TD_DAYS(self)); in delta_to_microseconds() 1767 x1 = PyLong_FromLong(GET_TD_SECONDS(self)); /* seconds */ in delta_to_microseconds() 1785 x2 = PyLong_FromLong(GET_TD_MICROSECONDS(self)); in delta_to_microseconds() 2441 x = PyLong_FromLong(0); in delta_new() 2505 temp = PyLong_FromLong((long)whole_us); in delta_new() 2762 return PyLong_FromLong(GET_YEAR(self)); in date_year() 2768 return PyLong_FromLong(GET_MONTH(self)); in date_month() 2774 return PyLong_FromLong(GET_DAY(self)); in date_day() 3217 return PyLong_FromLong(dow + 1); in date_isoweekday() 3343 PyTuple_SET_ITEM(self, 0, PyLong_FromLong(year)); in iso_calendar_date_new_impl() [all …]
|
/third_party/python/Modules/_multiprocessing/ |
D | multiprocessing.c | 145 return PyLong_FromLong(ret); in _multiprocessing_send_impl() 205 py_sem_value_max = PyLong_FromLong(INT_MAX); in multiprocessing_exec() 207 py_sem_value_max = PyLong_FromLong(SEM_VALUE_MAX); in multiprocessing_exec() 230 PyObject *value = PyLong_FromLong(name); \ in multiprocessing_exec()
|
/third_party/python/Misc/ |
D | coverity_model.c | 49 PyObject *PyLong_FromLong(long ival) in PyLong_FromLong() function 67 return PyLong_FromLong((long)ival); in PyLong_FromLongLong() 72 return PyLong_FromLong((long)ival); in PyLong_FromSsize_t()
|
/third_party/python/Python/ |
D | structmember.c | 18 v = PyLong_FromLong(*(char*)addr); in PyMember_GetOne() 24 v = PyLong_FromLong(*(short*)addr); in PyMember_GetOne() 30 v = PyLong_FromLong(*(int*)addr); in PyMember_GetOne() 36 v = PyLong_FromLong(*(long*)addr); in PyMember_GetOne()
|
D | sysmodule.c | 1403 PyLong_FromLong(8*sizeof(Py_hash_t))); in get_hash_info() 1407 PyLong_FromLong(_PyHASH_INF)); in get_hash_info() 1409 PyLong_FromLong(0)); // This is no longer used in get_hash_info() 1411 PyLong_FromLong(_PyHASH_IMAG)); in get_hash_info() 1415 PyLong_FromLong(hashfunc->hash_bits)); in get_hash_info() 1417 PyLong_FromLong(hashfunc->seed_bits)); in get_hash_info() 1419 PyLong_FromLong(Py_HASH_CUTOFF)); in get_hash_info() 1440 return PyLong_FromLong(Py_GetRecursionLimit()); in sys_getrecursionlimit_impl() 1513 PyStructSequence_SET_ITEM(version, pos++, PyLong_FromLong(ver.dwMajorVersion)); in sys_getwindowsversion_impl() 1514 PyStructSequence_SET_ITEM(version, pos++, PyLong_FromLong(ver.dwMinorVersion)); in sys_getwindowsversion_impl() [all …]
|
D | modsupport.c | 311 return PyLong_FromLong((long)va_arg(*p_va, int)); in do_mkvalue() 314 return PyLong_FromLong((long)va_arg(*p_va, unsigned int)); in do_mkvalue() 329 return PyLong_FromLong(va_arg(*p_va, long)); in do_mkvalue() 682 PyObject *obj = PyLong_FromLong(value); in PyModule_AddIntConstant()
|
/third_party/python/Include/ |
D | longobject.h | 18 PyAPI_FUNC(PyObject *) PyLong_FromLong(long); 41 #define PyLong_FromPid PyLong_FromLong 45 #define PyLong_FromPid PyLong_FromLong
|
/third_party/python/PC/clinic/ |
D | msvcrtmodule.c.h | 114 return_value = PyLong_FromLong(_return_value); in msvcrt_setmode() 152 return_value = PyLong_FromLong(_return_value); in msvcrt_open_osfhandle() 215 return_value = PyLong_FromLong(_return_value); in msvcrt_kbhit() 546 return_value = PyLong_FromLong(_return_value); in msvcrt_CrtSetReportMode() 585 return_value = PyLong_FromLong(_return_value); in msvcrt_set_error_mode()
|
/third_party/python/Lib/ctypes/test/ |
D | test_python_api.py | 44 pythonapi.PyLong_FromLong.restype = py_object 45 self.assertEqual(pythonapi.PyLong_FromLong(42), 42)
|
/third_party/python/Objects/ |
D | longobject.c | 73 *x_p = (PyLongObject *)PyLong_FromLong(-MEDIUM_VALUE(x)); in _PyLong_Negate() 173 PyLong_FromLong(long ival) in PyLong_FromLong() function 307 return PyLong_FromLong((long)dval); in PyLong_FromDouble() 740 return PyLong_FromLong(0L); in _PyLong_FromByteArray() 2562 *prem = (PyLongObject *) PyLong_FromLong((long)rem); in long_divrem() 3032 return (PyLongObject *)PyLong_FromLong(0); in x_sub() 3071 return PyLong_FromLong(MEDIUM_VALUE(a) + MEDIUM_VALUE(b)); in long_add() 3105 return PyLong_FromLong(MEDIUM_VALUE(a) - MEDIUM_VALUE(b)); in long_sub() 3295 return (PyLongObject *)PyLong_FromLong(0); in k_mul() 3574 return PyLong_FromLong(mod * (sdigit)Py_SIZE(b)); in fast_mod() [all …]
|
D | rangeobject.c | 34 return PyLong_FromLong(1); in validate_step() 565 return PyLong_FromLong(result); in range_count() 781 return PyLong_FromLong((long)(r->start + in rangeiter_next() 789 return PyLong_FromLong(r->len - r->index); in rangeiter_len() 802 start = PyLong_FromLong(r->start); in rangeiter_reduce() 805 stop = PyLong_FromLong(r->start + r->len * r->step); in rangeiter_reduce() 808 step = PyLong_FromLong(r->step); in rangeiter_reduce()
|
/third_party/python/Modules/_ctypes/ |
D | cfield.c | 490 return PyLong_FromLong(val); in b_get() 509 return PyLong_FromLong(val); in B_get() 548 return PyLong_FromLong((long)val); in h_get() 558 return PyLong_FromLong(val); in h_get_sw() 597 return PyLong_FromLong(val); in H_get() 607 return PyLong_FromLong(val); in H_get_sw() 646 return PyLong_FromLong(val); in i_get() 656 return PyLong_FromLong(val); in i_get_sw() 792 return PyLong_FromLong(val); in l_get() 802 return PyLong_FromLong(val); in l_get_sw()
|