diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-20 23:49:56 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-20 23:50:55 +0200 |
commit | 51ee44a718668964f2986096b3cb5ac45fb85439 (patch) | |
tree | da123108a7c91e58fd7db33f49ebc1ef28392f74 /unix/main.c | |
parent | 8965a5eb1e9d7df9018fc9537169f7bb9a523d9c (diff) |
unix file: Refactor and add sys.stdout/stdin/stderr.
Diffstat (limited to 'unix/main.c')
-rw-r--r-- | unix/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c index 08567c04d..7f92814aa 100644 --- a/unix/main.c +++ b/unix/main.c @@ -21,6 +21,7 @@ #endif extern const mp_obj_fun_native_t mp_builtin_open_obj; +void file_init(); void rawsocket_init(); static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind, bool is_repl) { @@ -221,7 +222,7 @@ int main(int argc, char **argv) { rt_store_attr(m_sys, qstr_from_str_static("argv"), py_argv); rt_store_name(qstr_from_str_static("test"), test_obj_new(42)); - rt_store_name(qstr_from_str_static("open"), (mp_obj_t)&mp_builtin_open_obj); + file_init(); rawsocket_init(); // Here is some example code to create a class and instance of that class. |