summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtintables.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-05 22:36:42 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-05 22:36:42 +0100
commit7efc5b3f346869cd4177760e6a6b2bb863b425da (patch)
tree04fbe840f20ab84bee79d28882601812279c8718 /py/builtintables.h
parent8b0535e23fb1c646103a060a4ae17e9ee6d5e887 (diff)
downloadmicropython-7efc5b3f346869cd4177760e6a6b2bb863b425da.tar.gz
micropython-7efc5b3f346869cd4177760e6a6b2bb863b425da.zip
py: Make globals and locals proper dictionary objects.
Finishes addressing issue #424. In the end this was a very neat refactor that now makes things a lot more consistent across the py code base. It allowed some simplifications in certain places, now that everything is a dict object. Also converted builtins tables to dictionaries. This will be useful when we need to turn builtins into a proper module.
Diffstat (limited to 'py/builtintables.h')
-rw-r--r--py/builtintables.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtintables.h b/py/builtintables.h
index 9b22b66e03..caea79f31c 100644
--- a/py/builtintables.h
+++ b/py/builtintables.h
@@ -1,2 +1,2 @@
-mp_obj_t mp_builtin_tables_lookup_object(qstr q);
-mp_obj_t mp_builtin_tables_lookup_module(qstr q);
+extern const mp_obj_dict_t mp_builtin_object_dict_obj;
+extern const mp_obj_dict_t mp_builtin_module_dict_obj;