summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-28 03:03:47 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-07-09 19:28:24 +0300
commit8215847b4d3bbbf859893db44f6de8a9fdea9f35 (patch)
tree7d8bbf9f219e5ccbda0693b03f335b58d6bd0cf8 /py/compile.c
parent42b6419056a67a0ea8e28eaf27e51f53bc65eec2 (diff)
moductypes: Foreign data interface module, roughly based on ctype ideas.
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/compile.c b/py/compile.c
index c5f216600..e89554a4f 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -104,6 +104,9 @@ STATIC void compile_syntax_error(compiler_t *comp, mp_parse_node_t pn, const cha
}
STATIC const mp_map_elem_t mp_constants_table[] = {
+ #if MICROPY_PY_UCTYPES
+ { MP_OBJ_NEW_QSTR(MP_QSTR_uctypes), (mp_obj_t)&mp_module_uctypes },
+ #endif
// Extra constants as defined by a port
MICROPY_PORT_CONSTANTS
};