From fc926082373970824fc1be2ccef7d4edcfc8af9d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 18 Jan 2014 23:47:44 +0200 Subject: Add lean ("raw") socket module. --- unix/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unix/main.c') diff --git a/unix/main.c b/unix/main.c index d89f39da70..ba0e09d242 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 rawsocket_init(); static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind, bool is_repl) { if (lex == NULL) { @@ -215,6 +216,7 @@ int main(int argc, char **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); + rawsocket_init(); // Here is some example code to create a class and instance of that class. // First is the Python, then the C code. -- cgit v1.2.3