py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h.
This commit is contained in:
parent
70f33cde48
commit
094d450003
|
@ -2994,6 +2994,7 @@ void compile_scope(compiler_t *comp, scope_t *scope, pass_kind_t pass) {
|
||||||
assert(comp->cur_except_level == 0);
|
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) {
|
void compile_scope_inline_asm(compiler_t *comp, scope_t *scope, pass_kind_t pass) {
|
||||||
comp->pass = pass;
|
comp->pass = pass;
|
||||||
comp->scope_cur = scope;
|
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);
|
EMIT_INLINE_ASM(end_pass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void compile_scope_compute_things(compiler_t *comp, scope_t *scope) {
|
void compile_scope_compute_things(compiler_t *comp, scope_t *scope) {
|
||||||
// in functions, turn implicit globals into explicit globals
|
// in functions, turn implicit globals into explicit globals
|
||||||
|
|
|
@ -54,12 +54,6 @@ bool unichar_isprint(unichar c);
|
||||||
bool unichar_isdigit(unichar c);
|
bool unichar_isdigit(unichar c);
|
||||||
bool unichar_isxdigit(unichar c);
|
bool unichar_isxdigit(unichar c);
|
||||||
|
|
||||||
/** string ******************************************************/
|
|
||||||
|
|
||||||
/*
|
|
||||||
#define streq(s1, s2) (strcmp((s1), (s2)) == 0)
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** variable string *********************************************/
|
/** variable string *********************************************/
|
||||||
|
|
||||||
typedef struct _vstr_t {
|
typedef struct _vstr_t {
|
||||||
|
|
Loading…
Reference in New Issue