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/repl.c | |
parent | e2880aa2fdc75298df487df7519d483acb03959c (diff) | |
download | micropython-d99b05282d14ceb0163cbcd059aa37bdb415af43.tar.gz micropython-d99b05282d14ceb0163cbcd059aa37bdb415af43.zip |
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/repl.c')
-rw-r--r-- | py/repl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ bool str_startswith_word(const char *str, const char *head) { return head[i] == '\0' && (str[i] == '\0' || !g_unichar_isalpha(str[i])); } -bool py_repl_is_compound_stmt(const char *line) { +bool mp_repl_is_compound_stmt(const char *line) { // compound if line starts with a certain keyword if ( str_startswith_word(line, "if") |