diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-30 13:35:08 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-30 13:35:08 +0100 |
commit | d17926db710189db97a49e9b2e72d782fc404231 (patch) | |
tree | 406396ee6f3010511a606dd4ea3ed5a817d959eb /py/emitbc.c | |
parent | 09d207785c77c85c957471b064ceebe0d2ee0a23 (diff) | |
download | micropython-d17926db710189db97a49e9b2e72d782fc404231.tar.gz micropython-d17926db710189db97a49e9b2e72d782fc404231.zip |
Rename rt_* to mp_*.
Mostly just a global search and replace. Except rt_is_true which
becomes mp_obj_is_true.
Still would like to tidy up some of the names, but this will do for now.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r-- | py/emitbc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index 43b2d36d44..0db1aaad88 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -632,10 +632,10 @@ STATIC void emit_bc_pop_except(emit_t *emit) { emit_write_byte_code_byte(emit, MP_BC_POP_EXCEPT); } -STATIC void emit_bc_unary_op(emit_t *emit, rt_unary_op_t op) { - if (op == RT_UNARY_OP_NOT) { +STATIC void emit_bc_unary_op(emit_t *emit, mp_unary_op_t op) { + if (op == MP_UNARY_OP_NOT) { emit_bc_pre(emit, 0); - emit_write_byte_code_byte_byte(emit, MP_BC_UNARY_OP, RT_UNARY_OP_BOOL); + emit_write_byte_code_byte_byte(emit, MP_BC_UNARY_OP, MP_UNARY_OP_BOOL); emit_bc_pre(emit, 0); emit_write_byte_code_byte(emit, MP_BC_NOT); } else { @@ -644,14 +644,14 @@ STATIC void emit_bc_unary_op(emit_t *emit, rt_unary_op_t op) { } } -STATIC void emit_bc_binary_op(emit_t *emit, rt_binary_op_t op) { +STATIC void emit_bc_binary_op(emit_t *emit, mp_binary_op_t op) { bool invert = false; - if (op == RT_BINARY_OP_NOT_IN) { + if (op == MP_BINARY_OP_NOT_IN) { invert = true; - op = RT_BINARY_OP_IN; - } else if (op == RT_BINARY_OP_IS_NOT) { + op = MP_BINARY_OP_IN; + } else if (op == MP_BINARY_OP_IS_NOT) { invert = true; - op = RT_BINARY_OP_IS; + op = MP_BINARY_OP_IS; } emit_bc_pre(emit, -1); emit_write_byte_code_byte_byte(emit, MP_BC_BINARY_OP, op); |