Home
last modified time | relevance | path

Searched refs:posobj (Results 1 - 4 of 4) sorted by relevance

/third_party/python/Modules/_io/
H A Dfileio.c78 static PyObject* portable_lseek(fileio *self, PyObject *posobj, int whence, bool suppress_pipe_error);
882 portable_lseek(fileio *self, PyObject *posobj, int whence, bool suppress_pipe_error) argument
902 if (posobj == NULL) {
907 pos = PyLong_AsLongLong(posobj);
909 pos = PyLong_AsLong(posobj);
992 size as posobj: object = None
1002 _io_FileIO_truncate_impl(fileio *self, PyObject *posobj) argument
1015 if (posobj == Py_None) {
1017 posobj = portable_lseek(self, NULL, 1, false);
1018 if (posobj
[all...]
H A Dtextio.c2426 PyObject *posobj; in _io_TextIOWrapper_seek_impl() local
2536 posobj = PyLong_FromOff_t(cookie.start_pos); in _io_TextIOWrapper_seek_impl()
2537 if (posobj == NULL) in _io_TextIOWrapper_seek_impl()
2539 res = PyObject_CallMethodOneArg(self->buffer, &_Py_ID(seek), posobj); in _io_TextIOWrapper_seek_impl()
2540 Py_DECREF(posobj); in _io_TextIOWrapper_seek_impl()
2621 PyObject *posobj = NULL; in _io_TextIOWrapper_tell_impl() local
2651 posobj = PyObject_CallMethodNoArgs(self->buffer, &_Py_ID(tell)); in _io_TextIOWrapper_tell_impl()
2652 if (posobj == NULL) in _io_TextIOWrapper_tell_impl()
2657 return posobj; in _io_TextIOWrapper_tell_impl()
2661 cookie.start_pos = PyLong_AsLongLong(posobj); in _io_TextIOWrapper_tell_impl()
[all...]
H A Dbufferedio.c677 PyObject *res, *posobj, *whenceobj; in _buffered_raw_seek() local
680 posobj = PyLong_FromOff_t(target); in _buffered_raw_seek()
681 if (posobj == NULL) in _buffered_raw_seek()
685 Py_DECREF(posobj); in _buffered_raw_seek()
689 posobj, whenceobj, NULL); in _buffered_raw_seek()
690 Py_DECREF(posobj); in _buffered_raw_seek()
/third_party/python/Modules/_io/clinic/
H A Dfileio.c.h395 _io_FileIO_truncate_impl(fileio *self, PyObject *posobj);
401 PyObject *posobj = Py_None; in _io_FileIO_truncate() local
409 posobj = args[0]; in _io_FileIO_truncate()
411 return_value = _io_FileIO_truncate_impl(self, posobj); in _io_FileIO_truncate()

Completed in 9 milliseconds