summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-01-18 11:53:09 -0800
committerScott Shawcroft <scott@tannewt.org>2019-01-18 11:53:09 -0800
commit0318a9a9bcbceab308323788cb9e579da166710e (patch)
tree0e7fbc8a79e01237d430a51e8a15fbd71e94eeee /py
parent427766ac6913ae3b838e29f5cd1dc9b782c7d56a (diff)
More make_new fixes for unix build
Diffstat (limited to 'py')
-rw-r--r--py/modio.c4
-rw-r--r--py/objdeque.c4
-rw-r--r--py/objfun.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/py/modio.c b/py/modio.c
index 9b09de96e..9918159cb 100644
--- a/py/modio.c
+++ b/py/modio.c
@@ -46,11 +46,11 @@ STATIC const mp_obj_type_t mp_type_iobase;
STATIC mp_obj_base_t iobase_singleton = {&mp_type_iobase};
-STATIC mp_obj_t iobase_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
+STATIC mp_obj_t iobase_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) {
(void)type;
(void)n_args;
- (void)n_kw;
(void)args;
+ (void)kw_args;
return MP_OBJ_FROM_PTR(&iobase_singleton);
}
diff --git a/py/objdeque.c b/py/objdeque.c
index dd0141831..b2785b5b6 100644
--- a/py/objdeque.c
+++ b/py/objdeque.c
@@ -44,8 +44,8 @@ typedef struct _mp_obj_deque_t {
#define FLAG_CHECK_OVERFLOW 1
} mp_obj_deque_t;
-STATIC mp_obj_t deque_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
- mp_arg_check_num(n_args, n_kw, 2, 3, false);
+STATIC mp_obj_t deque_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) {
+ mp_arg_check_num(n_args, kw_args, 2, 3, false);
/* Initialization from existing sequence is not supported, so an empty
tuple must be passed as such. */
diff --git a/py/objfun.c b/py/objfun.c
index 2ada0b3f1..b8364815b 100644
--- a/py/objfun.c
+++ b/py/objfun.c
@@ -436,7 +436,7 @@ typedef mp_uint_t (*viper_fun_4_t)(mp_uint_t, mp_uint_t, mp_uint_t, mp_uint_t);
STATIC mp_obj_t fun_viper_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) {
mp_obj_fun_viper_t *self = self_in;
- mp_arg_check_num(n_args, n_kw, self->n_args, self->n_args, false);
+ mp_arg_check_num_kw_array(n_args, n_kw, self->n_args, self->n_args, false);
void *fun = MICROPY_MAKE_POINTER_CALLABLE(self->fun_data);