diff options
author | Damien <damien.p.george@gmail.com> | 2013-12-21 18:17:45 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-12-21 18:17:45 +0000 |
commit | d99b05282d14ceb0163cbcd059aa37bdb415af43 (patch) | |
tree | 978135f9fe83d3c4d5b3c95f84cb104c0092936a /py/compile.h | |
parent | e2880aa2fdc75298df487df7519d483acb03959c (diff) |
Change object representation from 1 big union to individual structs.
A big change. Micro Python objects are allocated as individual structs
with the first element being a pointer to the type information (which
is itself an object). This scheme follows CPython. Much more flexible,
not necessarily slower, uses same heap memory, and can allocate objects
statically.
Also change name prefix, from py_ to mp_ (mp for Micro Python).
Diffstat (limited to 'py/compile.h')
-rw-r--r-- | py/compile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.h b/py/compile.h index c15b40aa6..e283442bb 100644 --- a/py/compile.h +++ b/py/compile.h @@ -1 +1 @@ -bool py_compile(py_parse_node_t pn, bool is_repl); +bool mp_compile(mp_parse_node_t pn, bool is_repl); |