summaryrefslogtreecommitdiff
path: root/py/emit.h
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/emit.h
parente0f2979aed58499e791b01a77190d7f266cc88ea (diff)
py: Rename and reorder parameters in emit_make_function/closure.
In preparation for implementing default keyword arguments.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emit.h b/py/emit.h
index 26672ab68..0d95b699e 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -97,8 +97,8 @@ typedef struct _emit_method_table_t {
void (*build_slice)(emit_t *emit, int n_args);
void (*unpack_sequence)(emit_t *emit, int n_args);
void (*unpack_ex)(emit_t *emit, int n_left, int n_right);
- void (*make_function)(emit_t *emit, scope_t *scope, int n_dict_params, int n_default_params);
- void (*make_closure)(emit_t *emit, scope_t *scope, int n_dict_params, int n_default_params);
+ void (*make_function)(emit_t *emit, scope_t *scope, uint n_pos_defaults, uint n_kw_defaults);
+ void (*make_closure)(emit_t *emit, scope_t *scope, uint n_pos_defaults, uint n_kw_defaults);
void (*call_function)(emit_t *emit, int n_positional, int n_keyword, bool have_star_arg, bool have_dbl_star_arg);
void (*call_method)(emit_t *emit, int n_positional, int n_keyword, bool have_star_arg, bool have_dbl_star_arg);
void (*return_value)(emit_t *emit);