summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-31 11:30:17 +0100
committerDamien George <damien.p.george@gmail.com>2014-03-31 11:30:17 +0100
commit3056509e00c02e4faef44d90bf3953dcf0b0d4a0 (patch)
treef188e15e19a8ae43d777215a3e05807b1ef2c21a /py/emitnative.c
parente0f2979aed58499e791b01a77190d7f266cc88ea (diff)
downloadmicropython-3056509e00c02e4faef44d90bf3953dcf0b0d4a0.tar.gz
micropython-3056509e00c02e4faef44d90bf3953dcf0b0d4a0.zip
py: Rename and reorder parameters in emit_make_function/closure.
In preparation for implementing default keyword arguments.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index 5e61c45b5c..73851120ad 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -1142,15 +1142,15 @@ STATIC void emit_native_unpack_ex(emit_t *emit, int n_left, int n_right) {
assert(0);
}
-STATIC void emit_native_make_function(emit_t *emit, scope_t *scope, int n_dict_params, int n_default_params) {
+STATIC void emit_native_make_function(emit_t *emit, scope_t *scope, uint n_pos_defaults, uint n_kw_defaults) {
// call runtime, with type info for args, or don't support dict/default params, or only support Python objects for them
- assert(n_default_params == 0 && n_dict_params == 0);
+ assert(n_pos_defaults == 0 && n_kw_defaults == 0);
emit_native_pre(emit);
emit_call_with_imm_arg(emit, MP_F_MAKE_FUNCTION_FROM_ID, mp_make_function_from_id, scope->unique_code_id, REG_ARG_1);
emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET);
}
-STATIC void emit_native_make_closure(emit_t *emit, scope_t *scope, int n_dict_params, int n_default_params) {
+STATIC void emit_native_make_closure(emit_t *emit, scope_t *scope, uint n_pos_defaults, uint n_kw_defaults) {
assert(0);
}