From 07209f8592f15435d6abbccaad5347cea2c7722e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 18 Jun 2016 18:19:24 +0300 Subject: all: Rename mp_obj_type_t::stream_p to protocol. It's now used for more than just stream protocol (e.g. pin protocol), so don't use false names. --- unix/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unix/file.c') diff --git a/unix/file.c b/unix/file.c index 33acdccd0..7a23572e1 100644 --- a/unix/file.c +++ b/unix/file.c @@ -242,7 +242,7 @@ const mp_obj_type_t mp_type_fileio = { .make_new = fdfile_make_new, .getiter = mp_identity, .iternext = mp_stream_unbuffered_iter, - .stream_p = &fileio_stream_p, + .protocol = &fileio_stream_p, .locals_dict = (mp_obj_dict_t*)&rawfile_locals_dict, }; #endif @@ -261,7 +261,7 @@ const mp_obj_type_t mp_type_textio = { .make_new = fdfile_make_new, .getiter = mp_identity, .iternext = mp_stream_unbuffered_iter, - .stream_p = &textio_stream_p, + .protocol = &textio_stream_p, .locals_dict = (mp_obj_dict_t*)&rawfile_locals_dict, }; -- cgit v1.2.3