Home
last modified time | relevance | path

Searched refs:readnl (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Modules/_io/
Dstringio.c41 PyObject *readnl; member
363 self->readtranslate, self->readuniversal, self->readnl, in _stringio_readline()
575 Py_CLEAR(self->readnl); in _io_StringIO_close_impl()
605 Py_CLEAR(self->readnl); in stringio_dealloc()
690 Py_CLEAR(self->readnl); in _io_StringIO___init___impl()
698 self->readnl = PyUnicode_FromString(newline); in _io_StringIO___init___impl()
699 if (self->readnl == NULL) in _io_StringIO___init___impl()
711 self->writenl = self->readnl; in _io_StringIO___init___impl()
836 self->readnl ? self->readnl : Py_None, in stringio_getstate()
Dtextio.c648 PyObject *readnl; member
816 PyObject *old = self->readnl; in set_newline()
818 self->readnl = NULL; in set_newline()
821 self->readnl = PyUnicode_FromString(newline); in set_newline()
822 if (self->readnl == NULL) { in set_newline()
823 self->readnl = old; in set_newline()
830 if (!self->readuniversal && self->readnl != NULL) { in set_newline()
832 assert(PyUnicode_KIND(self->readnl) == PyUnicode_1BYTE_KIND); in set_newline()
833 self->writenl = (const char *)PyUnicode_1BYTE_DATA(self->readnl); in set_newline()
1060 Py_CLEAR(self->readnl); in _io_TextIOWrapper___init___impl()
[all …]
D_iomodule.h67 int translated, int universal, PyObject *readnl,
/external/python/cpython2/Modules/_io/
Dstringio.c22 PyObject *readnl; member
272 self->readtranslate, self->readuniversal, self->readnl, in _stringio_readline()
493 Py_CLEAR(self->readnl); in stringio_close()
522 Py_CLEAR(self->readnl); in stringio_dealloc()
581 Py_CLEAR(self->readnl); in stringio_init()
586 self->readnl = PyString_FromString(newline); in stringio_init()
587 if (self->readnl == NULL) in stringio_init()
701 self->readnl ? self->readnl : Py_None, in stringio_getstate()
Dtextio.c668 PyObject *readnl; member
860 Py_CLEAR(self->readnl); in textiowrapper_init()
937 self->readnl = PyString_FromString(newline); in textiowrapper_init()
938 if (self->readnl == NULL) in textiowrapper_init()
943 self->writenl = PyString_AsString(self->readnl); in textiowrapper_init()
1085 Py_CLEAR(self->readnl); in _textiowrapper_clear()
1114 Py_VISIT(self->readnl); in textiowrapper_traverse()
1616 int translated, int universal, PyObject *readnl, in _PyIO_find_line_ending() argument
1659 Py_ssize_t readnl_len = PyString_GET_SIZE(readnl); in _PyIO_find_line_ending()
1660 unsigned char *nl = (unsigned char *) PyString_AS_STRING(readnl); in _PyIO_find_line_ending()
[all …]
D_iomodule.h62 int translated, int universal, PyObject *readnl,