Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
96f137b2
Commit
96f137b2
authored
May 12, 2014
by
Damien George
Browse files
py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename).
parent
f42dbb98
Changes
3
Hide whitespace changes
Inline
Side-by-side
py/compile.c
View file @
96f137b2
...
...
@@ -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
;
...
...
py/compile.h
View file @
96f137b2
...
...
@@ -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
,
...
...
unix/main.c
View file @
96f137b2
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment