summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-02 17:31:27 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-02 17:31:27 +0100
commit094d450003185e64f14560ba3c107e02621c056c (patch)
tree4362bfbca7d282bcdab836fc8b31c75a9d87171e /py
parent70f33cde48524f12f2110c7daa4a874a6828314a (diff)
downloadmicropython-094d450003185e64f14560ba3c107e02621c056c.tar.gz
micropython-094d450003185e64f14560ba3c107e02621c056c.zip
py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h.
Diffstat (limited to 'py')
-rw-r--r--py/compile.c2
-rw-r--r--py/misc.h6
2 files changed, 2 insertions, 6 deletions
diff --git a/py/compile.c b/py/compile.c
index 08125b716b..3273abe40e 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -2994,6 +2994,7 @@ void compile_scope(compiler_t *comp, scope_t *scope, pass_kind_t pass) {
assert(comp->cur_except_level == 0);
}
+#if MICROPY_EMIT_INLINE_THUMB
void compile_scope_inline_asm(compiler_t *comp, scope_t *scope, pass_kind_t pass) {
comp->pass = pass;
comp->scope_cur = scope;
@@ -3072,6 +3073,7 @@ void compile_scope_inline_asm(compiler_t *comp, scope_t *scope, pass_kind_t pass
EMIT_INLINE_ASM(end_pass);
}
}
+#endif
void compile_scope_compute_things(compiler_t *comp, scope_t *scope) {
// in functions, turn implicit globals into explicit globals
diff --git a/py/misc.h b/py/misc.h
index 19a21d52e7..35081f18e9 100644
--- a/py/misc.h
+++ b/py/misc.h
@@ -54,12 +54,6 @@ bool unichar_isprint(unichar c);
bool unichar_isdigit(unichar c);
bool unichar_isxdigit(unichar c);
-/** string ******************************************************/
-
-/*
-#define streq(s1, s2) (strcmp((s1), (s2)) == 0)
-*/
-
/** variable string *********************************************/
typedef struct _vstr_t {