mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
Update MicroPython from 1.12 to 1.17
This commit is contained in:
@@ -91,7 +91,7 @@ typedef struct _mp_fun_table_t {
|
||||
mp_const_obj_t const_true;
|
||||
mp_uint_t (*native_from_obj)(mp_obj_t obj, mp_uint_t type);
|
||||
mp_obj_t (*native_to_obj)(mp_uint_t val, mp_uint_t type);
|
||||
mp_obj_dict_t *(*swap_globals)(mp_obj_dict_t *new_globals);
|
||||
mp_obj_dict_t *(*swap_globals)(mp_obj_dict_t * new_globals);
|
||||
mp_obj_t (*load_name)(qstr qst);
|
||||
mp_obj_t (*load_global)(qstr qst);
|
||||
mp_obj_t (*load_build_class)(void);
|
||||
@@ -135,7 +135,7 @@ typedef struct _mp_fun_table_t {
|
||||
mp_int_t (*small_int_floor_divide)(mp_int_t num, mp_int_t denom);
|
||||
mp_int_t (*small_int_modulo)(mp_int_t dividend, mp_int_t divisor);
|
||||
bool (*yield_from)(mp_obj_t gen, mp_obj_t send_value, mp_obj_t *ret_value);
|
||||
void *setjmp;
|
||||
void *setjmp_;
|
||||
// Additional entries for dynamic runtime, starts at index 50
|
||||
void *(*memset_)(void *s, int c, size_t n);
|
||||
void *(*memmove_)(void *dest, const void *src, size_t n);
|
||||
@@ -145,10 +145,10 @@ typedef struct _mp_fun_table_t {
|
||||
#if defined(__GNUC__)
|
||||
NORETURN // Only certain compilers support no-return attributes in function pointer declarations
|
||||
#endif
|
||||
void (*raise_msg)(const mp_obj_type_t *exc_type, const char *msg);
|
||||
mp_obj_type_t *(*obj_get_type)(mp_const_obj_t o_in);
|
||||
mp_obj_t (*obj_new_str)(const char* data, size_t len);
|
||||
mp_obj_t (*obj_new_bytes)(const byte* data, size_t len);
|
||||
void (*raise_msg)(const mp_obj_type_t *exc_type, mp_rom_error_text_t msg);
|
||||
const mp_obj_type_t *(*obj_get_type)(mp_const_obj_t o_in);
|
||||
mp_obj_t (*obj_new_str)(const char *data, size_t len);
|
||||
mp_obj_t (*obj_new_bytes)(const byte *data, size_t len);
|
||||
mp_obj_t (*obj_new_bytearray_by_ref)(size_t n, void *items);
|
||||
mp_obj_t (*obj_new_float_from_f)(float f);
|
||||
mp_obj_t (*obj_new_float_from_d)(double d);
|
||||
|
||||
Reference in New Issue
Block a user