From 96f137b24a6c0b2e1e3c6f5fb8617b8a7f7896d6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 12 May 2014 22:35:37 +0100 Subject: [PATCH] py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename). --- py/compile.c | 2 +- py/compile.h | 2 +- unix/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/py/compile.c b/py/compile.c index 36ffa928ee..cdd3a5b030 100644 --- a/py/compile.c +++ b/py/compile.c @@ -1147,7 +1147,7 @@ STATIC bool compile_built_in_decorator(compiler_t *comp, int name_len, mp_parse_ qstr attr = MP_PARSE_NODE_LEAF_ARG(name_nodes[1]); if (attr == MP_QSTR_bytecode) { - *emit_options = MP_EMIT_OPT_BYTE_CODE; + *emit_options = MP_EMIT_OPT_BYTECODE; #if MICROPY_EMIT_NATIVE } else if (attr == MP_QSTR_native) { *emit_options = MP_EMIT_OPT_NATIVE_PYTHON; diff --git a/py/compile.h b/py/compile.h index 4606378976..52c42aff4f 100644 --- a/py/compile.h +++ b/py/compile.h @@ -27,7 +27,7 @@ // These must fit in 8 bits; see scope.h enum { MP_EMIT_OPT_NONE, - MP_EMIT_OPT_BYTE_CODE, + MP_EMIT_OPT_BYTECODE, MP_EMIT_OPT_NATIVE_PYTHON, MP_EMIT_OPT_VIPER, MP_EMIT_OPT_ASM_THUMB, diff --git a/unix/main.c b/unix/main.c index de296142b3..8678a1a4d5 100644 --- a/unix/main.c +++ b/unix/main.c @@ -230,7 +230,7 @@ void pre_process_options(int argc, char **argv) { } else if (strcmp(argv[a + 1], "compile-only") == 0) { compile_only = true; } else if (strcmp(argv[a + 1], "emit=bytecode") == 0) { - emit_opt = MP_EMIT_OPT_BYTE_CODE; + emit_opt = MP_EMIT_OPT_BYTECODE; } else if (strcmp(argv[a + 1], "emit=native") == 0) { emit_opt = MP_EMIT_OPT_NATIVE_PYTHON; } else if (strcmp(argv[a + 1], "emit=viper") == 0) {