Allow ports to define statically builtin functions.

Convert unix open() to such.
This commit is contained in:
Paul Sokolovsky
2014-02-14 12:02:34 +02:00
parent 70d7a83c74
commit 910843e86d
5 changed files with 12 additions and 3 deletions

View File

@@ -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
};