diff options
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/py/objfun.c b/py/objfun.c index 7c89c47000..6cdc97cc6d 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -143,12 +143,10 @@ mp_obj_t rt_make_function_var_between(int n_args_min, int n_args_max, mp_fun_var typedef struct _mp_obj_fun_bc_t { mp_obj_base_t base; mp_map_t *globals; // the context within which this function was defined - struct { - machine_uint_t n_args : 15; // number of arguments this function takes - machine_uint_t n_def_args : 15; // number of default arguments - machine_uint_t takes_var_args : 1; // set if this function takes variable args - machine_uint_t takes_kw_args : 1; // set if this function takes keyword args - }; + machine_uint_t n_args : 15; // number of arguments this function takes + machine_uint_t n_def_args : 15; // number of default arguments + machine_uint_t takes_var_args : 1; // set if this function takes variable args + machine_uint_t takes_kw_args : 1; // set if this function takes keyword args uint n_state; // total state size for the executing function (incl args, locals, stack) const byte *bytecode; // bytecode for the function qstr *args; // argument names (needed to resolve positional args passed as keywords) |