summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-07 15:30:15 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-07 15:30:15 +0100
commitc35e53436b9adb3c49a8980d018b2f8198db8077 (patch)
tree1227049154a3e1facd757eec090e851def039c35 /unix/mpconfigport.h
parent1dd46fafbd11941f7aa5b3b3c1f3d63e102e85cf (diff)
parent117c46d9eb00e8ffaabc1002a4946440cb1eb5b0 (diff)
downloadmicropython-c35e53436b9adb3c49a8980d018b2f8198db8077.tar.gz
micropython-c35e53436b9adb3c49a8980d018b2f8198db8077.zip
Merge pull request #582 from dhylands/unix-input
Add input command for unix
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 41bc6a3937..ca470d9c29 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -72,6 +72,8 @@ typedef unsigned int machine_uint_t; // must be pointer size
typedef void *machine_ptr_t; // must be of pointer size
typedef const void *machine_const_ptr_t; // must be of pointer size
+extern const struct _mp_obj_fun_native_t mp_builtin_input_obj;
extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
#define MICROPY_EXTRA_BUILTINS \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_input), (mp_obj_t)&mp_builtin_input_obj }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },