diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-18 18:19:24 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-18 18:44:57 +0300 |
commit | 07209f8592f15435d6abbccaad5347cea2c7722e (patch) | |
tree | a009978926973dc9bb1365872f4313435df57259 /unix | |
parent | 080137961daef9a1b0fe1f37f54a820842728442 (diff) | |
download | micropython-07209f8592f15435d6abbccaad5347cea2c7722e.tar.gz micropython-07209f8592f15435d6abbccaad5347cea2c7722e.zip |
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.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/file.c | 4 | ||||
-rw-r--r-- | unix/modsocket.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unix/file.c b/unix/file.c index 33acdccd06..7a23572e13 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, }; diff --git a/unix/modsocket.c b/unix/modsocket.c index 8e0d86fc79..cd68b20a45 100644 --- a/unix/modsocket.c +++ b/unix/modsocket.c @@ -381,7 +381,7 @@ STATIC const mp_obj_type_t usocket_type = { .make_new = socket_make_new, .getiter = NULL, .iternext = NULL, - .stream_p = &usocket_stream_p, + .protocol = &usocket_stream_p, .locals_dict = (mp_obj_dict_t*)&usocket_locals_dict, }; |