Skip to content

Commit 51898a4

Browse files
committed
【更新】至 V1.10 版本。
Signed-off-by: armink <[email protected]>
1 parent f8cc8ae commit 51898a4

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

port/genhdr/mpversion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// This file was generated by py/makeversionhdr.py
2-
#define MICROPY_GIT_TAG "v1.9.4-773-gafecc12-dirty"
3-
#define MICROPY_GIT_HASH "afecc12-dirty"
4-
#define MICROPY_BUILD_DATE "2019-01-09"
2+
#define MICROPY_GIT_TAG "v1.10"
3+
#define MICROPY_GIT_HASH "3e25d61"
4+
#define MICROPY_BUILD_DATE "2019-02-13"

py/modio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern const mp_obj_type_t mp_type_textio;
4444

4545
STATIC const mp_obj_type_t mp_type_iobase;
4646

47-
STATIC mp_obj_base_t iobase_singleton = {&mp_type_iobase};
47+
STATIC const mp_obj_base_t iobase_singleton = {&mp_type_iobase};
4848

4949
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) {
5050
(void)type;

py/mpconfig.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
#define MICROPY_INCLUDED_PY_MPCONFIG_H
2828

2929
// Current version of MicroPython
30-
#define MICROPY_VERSION_MAJOR (1)
31-
#define MICROPY_VERSION_MINOR (9)
32-
#define MICROPY_VERSION_MICRO (4)
30+
#define MICROPY_VERSION_MAJOR 1
31+
#define MICROPY_VERSION_MINOR 10
32+
#define MICROPY_VERSION_MICRO 0
3333

3434
// Combined version as a 32-bit number for convenience
3535
#define MICROPY_VERSION ( \

py/obj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
278278
#define MP_DECLARE_CONST_FUN_OBJ_KW(obj_name) extern const mp_obj_fun_builtin_var_t obj_name
279279

280280
#define MP_OBJ_FUN_ARGS_MAX (0xffff) // to set maximum value in n_args_max below
281-
#define MP_OBJ_FUN_MAKE_SIG(n_args_min, n_args_max, takes_kw) (((n_args_min) << 17) | ((n_args_max) << 1) | ((takes_kw) ? 1 : 0))
281+
#define MP_OBJ_FUN_MAKE_SIG(n_args_min, n_args_max, takes_kw) ((uint32_t)((((uint32_t)(n_args_min)) << 17) | (((uint32_t)(n_args_max)) << 1) | ((takes_kw) ? 1 : 0)))
282282

283283
#define MP_DEFINE_CONST_FUN_OBJ_0(obj_name, fun_name) \
284284
const mp_obj_fun_builtin_fixed_t obj_name = \

py/runtime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int mp_print_mp_int(const mp_print_t *print, mp_obj_t x, int base, int base_char
7979

8080
void mp_arg_check_num_sig(size_t n_args, size_t n_kw, uint32_t sig);
8181
static inline void mp_arg_check_num(size_t n_args, size_t n_kw, size_t n_args_min, size_t n_args_max, bool takes_kw) {
82-
mp_arg_check_num_sig(n_args, n_kw, (uint32_t)MP_OBJ_FUN_MAKE_SIG(n_args_min, n_args_max, takes_kw));
82+
mp_arg_check_num_sig(n_args, n_kw, MP_OBJ_FUN_MAKE_SIG(n_args_min, n_args_max, takes_kw));
8383
}
8484
void mp_arg_parse_all(size_t n_pos, const mp_obj_t *pos, mp_map_t *kws, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals);
8585
void mp_arg_parse_all_kw_array(size_t n_pos, size_t n_kw, const mp_obj_t *args, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals);

0 commit comments

Comments
 (0)