summaryrefslogtreecommitdiff
path: root/py/objfun.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-26 17:40:52 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-26 17:40:52 +0000
commit510477557d1cd13dc3cfdebf32338aa1b75180cb (patch)
tree3ea84ff43ecf5780cd357c1cd45bb3c51594d21f /py/objfun.c
parent98fb8935bc54085989cb271eb1a75fe2a6214c43 (diff)
py: Take out bitfield entries from their own structure.
Don't need to wrap bitfields in their own struct. Compiler does the correct thing without it.
Diffstat (limited to 'py/objfun.c')
-rw-r--r--py/objfun.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/py/objfun.c b/py/objfun.c
index 7c89c4700..6cdc97cc6 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)