summaryrefslogtreecommitdiffstatshomepage
path: root/py/nativeglue.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-10-07 11:56:24 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-12 20:15:28 +1100
commit360d972c16dd818462be7699badb6478639924c1 (patch)
tree205c5021c69ce41b4b3b8b5101bcd9975709824c /py/nativeglue.c
parentb47e155bd07e5765b804c404411825b15378c0b6 (diff)
downloadmicropython-360d972c16dd818462be7699badb6478639924c1.tar.gz
micropython-360d972c16dd818462be7699badb6478639924c1.zip
py/nativeglue: Add new header file with native function table typedef.
Diffstat (limited to 'py/nativeglue.c')
-rw-r--r--py/nativeglue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/py/nativeglue.c b/py/nativeglue.c
index 08fbd3c309..9991151a34 100644
--- a/py/nativeglue.c
+++ b/py/nativeglue.c
@@ -30,8 +30,7 @@
#include "py/runtime.h"
#include "py/smallint.h"
-#include "py/emitglue.h"
-#include "py/bc.h"
+#include "py/nativeglue.h"
#if MICROPY_DEBUG_VERBOSE // print debugging info
#define DEBUG_printf DEBUG_printf
@@ -211,7 +210,7 @@ STATIC bool mp_native_yield_from(mp_obj_t gen, mp_obj_t send_value, mp_obj_t *re
}
// these must correspond to the respective enum in runtime0.h
-const void *const mp_fun_table[MP_F_NUMBER_OF] = {
+const mp_fun_table_t mp_fun_table = {
&mp_const_none_obj,
&mp_const_false_obj,
&mp_const_true_obj,