diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-13 23:07:42 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-19 21:27:22 +0300 |
commit | cb66f41ebc4980f4e6b7543bece19e3b9daac25c (patch) | |
tree | f16cd4ce92d787b9ceb0bb9015c9636fbfe58dea /py/builtin.h | |
parent | 04c9fec7d1b8666fc3210f41619dff2465b42227 (diff) |
py: Make print() accept "file" argument, and actually print to stream.
And not system printf(), like it was before. For this, move pfenv_printf()
from stmhal port to py/.
Diffstat (limited to 'py/builtin.h')
-rw-r--r-- | py/builtin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/builtin.h b/py/builtin.h index 361cef604..425cfec09 100644 --- a/py/builtin.h +++ b/py/builtin.h @@ -81,5 +81,10 @@ extern const mp_obj_module_t mp_module_struct; extern const mp_obj_module_t mp_module_sys; extern const mp_obj_module_t mp_module_gc; +struct _dummy_t; +extern struct _dummy_t mp_sys_stdin_obj; +extern struct _dummy_t mp_sys_stdout_obj; +extern struct _dummy_t mp_sys_stderr_obj; + // extmod modules extern const mp_obj_module_t mp_module_uctypes; |