Home
last modified time | relevance | path

Searched refs:PyLong_AsLong (Results 1 – 25 of 85) sorted by relevance

1234

/third_party/python/Python/
Dstructmember.c144 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
155 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
164 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
173 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
182 long long_val = PyLong_AsLong(v); in PyMember_SetOne()
196 ulong_val = PyLong_AsLong(v); in PyMember_SetOne()
209 *(long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
221 *(unsigned long*)addr = PyLong_AsLong(v); in PyMember_SetOne()
285 *(unsigned long long*)addr = value = PyLong_AsLong(v); in PyMember_SetOne()
/third_party/python/Include/
Dlongobject.h23 PyAPI_FUNC(long) PyLong_AsLong(PyObject *);
36 #define PyLong_AS_LONG(op) PyLong_AsLong(op)
42 #define PyLong_AsPid PyLong_AsLong
46 #define PyLong_AsPid PyLong_AsLong
/third_party/python/Lib/ctypes/test/
Dtest_python_api.py49 pythonapi.PyLong_AsLong.argtypes = (py_object,)
50 pythonapi.PyLong_AsLong.restype = c_long
52 res = pythonapi.PyLong_AsLong(42)
/third_party/python/Modules/
Dtermios.c176 mode.c_iflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 0)); in termios_tcsetattr_impl()
177 mode.c_oflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 1)); in termios_tcsetattr_impl()
178 mode.c_cflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 2)); in termios_tcsetattr_impl()
179 mode.c_lflag = (tcflag_t) PyLong_AsLong(PyList_GetItem(term, 3)); in termios_tcsetattr_impl()
180 speed_t ispeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 4)); in termios_tcsetattr_impl()
181 speed_t ospeed = (speed_t) PyLong_AsLong(PyList_GetItem(term, 5)); in termios_tcsetattr_impl()
202 mode.c_cc[i] = (cc_t) PyLong_AsLong(v); in termios_tcsetattr_impl()
Dfcntlmodule.c403 l.l_start = PyLong_AsLong(startobj); in fcntl_lockf_impl()
407 PyLong_AsLong(startobj); in fcntl_lockf_impl()
414 l.l_len = PyLong_AsLong(lenobj); in fcntl_lockf_impl()
418 PyLong_AsLong(lenobj); in fcntl_lockf_impl()
D_opcode.c38 oparg_int = (int)PyLong_AsLong(oparg); in _opcode_stack_effect_impl()
D_posixsubprocess.c124 iter_fd = PyLong_AsLong(py_fd); in _sanity_check_python_fd_sequence()
146 long middle_fd = PyLong_AsLong(PyTuple_GET_ITEM(fd_sequence, middle)); in _is_fd_in_sorted_fd_sequence()
165 long fd = PyLong_AsLong(fdobj); in make_inheritable()
227 int keep_fd = PyLong_AsLong(py_keep_fd); in _close_fds_by_brute_force()
Dresource.c155 rl_out->rlim_cur = PyLong_AsLong(curobj); in py2rlimit()
158 rl_out->rlim_max = PyLong_AsLong(maxobj); in py2rlimit()
Dsocketmodule.h222 #define PyLong_AsSocket_t(fd) (SOCKET_T)PyLong_AsLong(fd)
D_zoneinfo.c962 utcoff[i] = PyLong_AsLong(num); in load_data()
2217 ord = PyLong_AsLong(num); in get_local_timestamp()
2227 hour = PyLong_AsLong(num); in get_local_timestamp()
2237 minute = PyLong_AsLong(num); in get_local_timestamp()
2247 second = PyLong_AsLong(num); in get_local_timestamp()
/third_party/alsa-lib/modules/mixer/simple/
Dpython.c77 *val = PyLong_AsLong(o); in get_long()
141 xres = PyLong_AsLong(res); in pcall()
207 *min = PyLong_AsLong(PyTuple_GetItem(res, 1)); in get_x_range_ops()
208 *max = PyLong_AsLong(PyTuple_GetItem(res, 2)); in get_x_range_ops()
261 *value = PyLong_AsLong(t1); in get_x_ops()
321 *dbValue = PyLong_AsLong(t1); in ask_dB_vol_ops()
457 *itemp = PyLong_AsLong(t1); in get_enum_item_ops()
544 pymelem->selem.caps = PyLong_AsLong(val); in pymelem_set_caps()
1007 res = PyLong_AsLong(r); in alsa_mixer_simple_event()
/third_party/python/Objects/
Drangeobject.c828 long index = PyLong_AsLong(state); in rangeiter_setstate()
1093 lstart = PyLong_AsLong(r->start); in range_iter()
1098 lstop = PyLong_AsLong(r->stop); in range_iter()
1103 lstep = PyLong_AsLong(r->step); in range_iter()
1162 lstart = PyLong_AsLong(range->start); in range_reverse()
1167 lstop = PyLong_AsLong(range->stop); in range_reverse()
1172 lstep = PyLong_AsLong(range->step); in range_reverse()
/third_party/python/Doc/includes/
Drun-func.c43 printf("Result of call: %ld\n", PyLong_AsLong(pValue)); in main()
/third_party/boost/libs/python/test/
Da_map_indexing_suite.cpp68 new (storage) A((int)PyLong_AsLong(obj_ptr)); in construct()
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc170 item_value = PyLong_AsLong(item.get()); in FindAllExtensionNumbers()
Drepeated_scalar_container.cc291 from = to = PyLong_AsLong(slice); in Subscript()
449 from = to = PyLong_AsLong(slice); in Subscript()
/third_party/python/Modules/_io/
D_iomodule.h122 # define PyLong_AsOff_t PyLong_AsLong
D_iomodule.c408 isatty = PyLong_AsLong(res); in _io_open_impl()
426 buffering = PyLong_AsLong(blksize_obj); in _io_open_impl()
Dfileio.c907 pos = PyLong_AsLong(posobj);
1026 pos = PyLong_AsLong(posobj);
/third_party/python/Tools/peg_generator/peg_extension/
Dpeg_extension.c140 long count = PyLong_AsLong(value); in dump_memo_stats()
/third_party/python/Modules/_ctypes/
Dcallbacks.c527 retval = PyLong_AsLong(result); in Call_GetClassObject()
582 retval = PyLong_AsLong(result); in Call_CanUnloadNow()
/third_party/python/Modules/clinic/
D_cursesmodule.c.h255 attr = PyLong_AsLong(args[1]); in _curses_window_bkgd()
284 attr = PyLong_AsLong(arg); in _curses_window_attroff()
312 attr = PyLong_AsLong(arg); in _curses_window_attron()
340 attr = PyLong_AsLong(arg); in _curses_window_attrset()
382 attr = PyLong_AsLong(args[1]); in _curses_window_bkgdset()
665 attr = PyLong_AsLong(args[1]); in _curses_window_echochar()
2342 long ival = PyLong_AsLong(args[0]); in _curses_ungetmouse()
2421 long ival = PyLong_AsLong(arg); in _curses_halfdelay()
D_hashopenssl.c.h929 iterations = PyLong_AsLong(args[3]); in pbkdf2_hmac()
1043 maxmem = PyLong_AsLong(args[5]); in _hashlib_scrypt()
1051 dklen = PyLong_AsLong(args[6]); in _hashlib_scrypt()
Dpyexpat.c.h358 code = PyLong_AsLong(arg); in pyexpat_ErrorString()
/third_party/boost/libs/python/src/object/
Denum.cpp53 … PyUnicode_FromFormat("%S.%s(%ld)", mod, self_->ob_type->tp_name, PyLong_AsLong(self_)); in enum_repr()

1234