summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-14 12:02:34 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-14 12:13:34 +0200
commit910843e86ddd4fb9bb482d6ca2f03700cc5cef9e (patch)
tree6a75652ab0abb6021096de22181125ed543b0b04 /py/runtime.c
parent70d7a83c74812a517ef0489877becb075d164630 (diff)
downloadmicropython-910843e86ddd4fb9bb482d6ca2f03700cc5cef9e.tar.gz
micropython-910843e86ddd4fb9bb482d6ca2f03700cc5cef9e.zip
Allow ports to define statically builtin functions.
Convert unix open() to such.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index f12b3e6125..01a015340d 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -144,6 +144,9 @@ STATIC const mp_builtin_elem_t builtin_table[] = {
{ MP_QSTR_str, (mp_obj_t)&mp_builtin_str_obj },
{ MP_QSTR_bytearray, (mp_obj_t)&mp_builtin_bytearray_obj },
+ // Extra builtins as defined by a port
+ MICROPY_EXTRA_BUILTINS
+
{ MP_QSTR_, MP_OBJ_NULL }, // end of list sentinel
};