/third_party/python/Modules/_io/ |
D | bufferedio.c | 344 if (IS_CLOSED(self) & (Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t) == 0)) { \ 932 have = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _io__Buffered_read1_impl() 969 n = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _buffered_readinto_generic() 1083 n = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _buffered_readline() 1513 start = Py_SAFE_DOWNCAST(self->read_end, Py_off_t, Py_ssize_t); in _bufferedreader_fill_buffer() 1532 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_all() 1622 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_fast() 1643 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_generic() 1738 have = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_peek_unlocked() 1880 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _bufferedwriter_flush_unlocked() [all …]
|
D | textio.c | 2798 cookie.chars_to_skip = Py_SAFE_DOWNCAST(chars_to_skip, Py_ssize_t, int); in _io_TextIOWrapper_tell_impl() 2858 cookie.chars_to_skip = Py_SAFE_DOWNCAST(chars_to_skip, Py_ssize_t, int); in _io_TextIOWrapper_tell_impl()
|
/third_party/python/Include/ |
D | pyport.h | 317 #define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) \ macro 320 #define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) (NARROW)(VALUE)
|
/third_party/python/PC/ |
D | winreg.c | 613 *retDataSize = Py_SAFE_DOWNCAST( in Py2Reg() 661 size += Py_SAFE_DOWNCAST(len * sizeof(wchar_t), in Py2Reg() 719 *retDataSize = Py_SAFE_DOWNCAST(view.len, Py_ssize_t, DWORD); in Py2Reg() 788 len -= Py_SAFE_DOWNCAST(slen + 1, size_t, int); in Reg2Py()
|
/third_party/python/Python/ |
D | pystrtod.c | 616 digit_count = Py_SAFE_DOWNCAST(p - digits_start, Py_ssize_t, int); in ensure_decimal_point() 683 written < Py_SAFE_DOWNCAST(buf_avail, size_t, int))) in ensure_decimal_point()
|
D | thread_nt.h | 207 Py_SAFE_DOWNCAST(stacksize, Py_ssize_t, unsigned int), in PyThread_start_new_thread()
|
D | fileutils.c | 1046 *time_out = Py_SAFE_DOWNCAST((in / 10000000) - secs_between_epochs, __int64, time_t); in FILE_TIME_to_time_t_nsec()
|
D | compile.c | 1480 i->i_oparg = Py_SAFE_DOWNCAST(oparg, Py_ssize_t, int); in compiler_addop_i_line() 6904 nlocals_int = Py_SAFE_DOWNCAST(nlocals, Py_ssize_t, int); in makecode() 6919 posonlyargcount = Py_SAFE_DOWNCAST(c->u->u_posonlyargcount, Py_ssize_t, int); in makecode() 6920 posorkeywordargcount = Py_SAFE_DOWNCAST(c->u->u_argcount, Py_ssize_t, int); in makecode() 6921 kwonlyargcount = Py_SAFE_DOWNCAST(c->u->u_kwonlyargcount, Py_ssize_t, int); in makecode()
|
D | marshal.c | 206 w_byte(Py_SAFE_DOWNCAST(n, Py_ssize_t, unsigned char), p); in w_short_pstring()
|
/third_party/python/Modules/_ctypes/ |
D | callproc.c | 735 Py_SAFE_DOWNCAST(index, Py_ssize_t, int)); in ConvParam() 1261 Py_SAFE_DOWNCAST(argcount, Py_ssize_t, int), in _ctypes_callproc() 1262 Py_SAFE_DOWNCAST(argtype_count, Py_ssize_t, int))) in _ctypes_callproc()
|
D | callbacks.c | 405 Py_SAFE_DOWNCAST(nArgs, Py_ssize_t, int), in _ctypes_alloc_callback()
|
D | stgdict.c | 645 stgdict->ffi_type_pointer.alignment = Py_SAFE_DOWNCAST(total_align, in PyCStructUnionType_update_stgdict()
|
D | _ctypes.c | 2689 cp += sprintf(cp, "%x", Py_SAFE_DOWNCAST(index, Py_ssize_t, int)); in unique_key() 2698 cp += sprintf(cp, ":%x", Py_SAFE_DOWNCAST(target->b_index, Py_ssize_t, int)); in unique_key() 3442 Py_SAFE_DOWNCAST(index, Py_ssize_t, int), in _check_outarg_type() 4172 int required = Py_SAFE_DOWNCAST(PyTuple_GET_SIZE(converters), in PyCFuncPtr_call() 4174 int actual = Py_SAFE_DOWNCAST(PyTuple_GET_SIZE(callargs), in PyCFuncPtr_call()
|
/third_party/python/Parser/ |
D | pegen_errors.c | 223 col_offset = Py_SAFE_DOWNCAST(p->tok->cur - start, intptr_t, int); in _PyPegen_raise_error()
|
D | pegen.c | 410 col_offset = Py_SAFE_DOWNCAST(p->tok->cur - start, intptr_t, int); in _PyPegen_raise_error()
|
/third_party/python/Modules/ |
D | signalmodule.c | 319 fd = Py_SAFE_DOWNCAST(wakeup.fd, SOCKET_T, int); in trip_signal() 855 int old_fd = Py_SAFE_DOWNCAST(wakeup.fd, SOCKET_T, int);
|
D | unicodedata.c | 1193 len1 = Py_SAFE_DOWNCAST(strlen(s), size_t, int); in find_syllable()
|
D | _hashopenssl.c | 439 process = Py_SAFE_DOWNCAST(len, Py_ssize_t, unsigned int); in EVP_hash()
|
D | _struct.c | 1856 *res = Py_SAFE_DOWNCAST(n, Py_ssize_t, unsigned char); in s_pack_internal()
|
D | _ssl.c | 840 SSL_set_fd(self->ssl, Py_SAFE_DOWNCAST(sock->sock_fd, SOCKET_T, int)); in newPySSLSocket() 2274 nfds = Py_SAFE_DOWNCAST(s->sock_fd+1, SOCKET_T, int); in PySSL_select()
|
/third_party/python/Objects/stringlib/ |
D | fastsearch.h | 335 p->table[needle[i] & TABLE_MASK] = Py_SAFE_DOWNCAST(shift, in STRINGLIB()
|
/third_party/python/Objects/ |
D | longobject.c | 201 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong() 213 v->ob_digit[0] = Py_SAFE_DOWNCAST( in PyLong_FromLong() 215 v->ob_digit[1] = Py_SAFE_DOWNCAST( in PyLong_FromLong() 234 *p++ = Py_SAFE_DOWNCAST( in PyLong_FromLong() 1363 *(unsigned short *)ptr = Py_SAFE_DOWNCAST(uval, unsigned long, unsigned short); in _PyLong_UnsignedShort_Converter() 1385 *(unsigned int *)ptr = Py_SAFE_DOWNCAST(uval, unsigned long, unsigned int); in _PyLong_UnsignedInt_Converter()
|
D | object.c | 1456 return (res > 0) ? 1 : Py_SAFE_DOWNCAST(res, Py_ssize_t, int); in PyObject_IsTrue()
|
D | abstract.c | 2290 return Py_SAFE_DOWNCAST(result, Py_ssize_t, int); in PySequence_Contains()
|
/third_party/python/Doc/using/ |
D | configure.rst | 242 * The :c:macro:`Py_SAFE_DOWNCAST()` macro checks for integer underflow and
|