|
#define | MP_OBJ_NULL (MP_OBJ_FROM_PTR((void*)0)) |
|
#define | MP_OBJ_STOP_ITERATION (MP_OBJ_FROM_PTR((void*)4)) |
|
#define | MP_OBJ_SENTINEL (MP_OBJ_FROM_PTR((void*)8)) |
|
#define | MP_OBJ_SMALL_INT_VALUE(o) (((mp_int_t)(o)) >> 1) |
|
#define | MP_OBJ_NEW_SMALL_INT(small_int) ((mp_obj_t)((((mp_uint_t)(small_int)) << 1) | 1)) |
|
#define | MP_OBJ_QSTR_VALUE(o) (((mp_uint_t)(o)) >> 2) |
|
#define | MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 2) | 2)) |
|
#define | MP_OBJ_TO_PTR(o) ((void*)o) |
|
#define | MP_OBJ_FROM_PTR(p) ((mp_obj_t)p) |
|
#define | MP_ROM_INT(i) MP_OBJ_NEW_SMALL_INT(i) |
|
#define | MP_ROM_QSTR(q) MP_OBJ_NEW_QSTR(q) |
|
#define | MP_ROM_PTR(p) (p) |
|
#define | MP_OBJ_IS_TYPE(o, t) (MP_OBJ_IS_OBJ(o) && (((mp_obj_base_t*)MP_OBJ_TO_PTR(o))->type == (t))) |
|
#define | MP_OBJ_IS_INT(o) (MP_OBJ_IS_SMALL_INT(o) || MP_OBJ_IS_TYPE(o, &mp_type_int)) |
|
#define | MP_OBJ_IS_STR(o) (MP_OBJ_IS_QSTR(o) || MP_OBJ_IS_TYPE(o, &mp_type_str)) |
|
#define | MP_OBJ_IS_STR_OR_BYTES(o) (MP_OBJ_IS_QSTR(o) || (MP_OBJ_IS_OBJ(o) && ((mp_obj_base_t*)MP_OBJ_TO_PTR(o))->type->binary_op == mp_obj_str_binary_op)) |
|
#define | MP_OBJ_IS_FUN(o) (MP_OBJ_IS_OBJ(o) && (((mp_obj_base_t*)MP_OBJ_TO_PTR(o))->type->name == MP_QSTR_function)) |
|
#define | MP_DECLARE_CONST_FUN_OBJ_0(obj_name) extern const mp_obj_fun_builtin_fixed_t obj_name |
|
#define | MP_DECLARE_CONST_FUN_OBJ_1(obj_name) extern const mp_obj_fun_builtin_fixed_t obj_name |
|
#define | MP_DECLARE_CONST_FUN_OBJ_2(obj_name) extern const mp_obj_fun_builtin_fixed_t obj_name |
|
#define | MP_DECLARE_CONST_FUN_OBJ_3(obj_name) extern const mp_obj_fun_builtin_fixed_t obj_name |
|
#define | MP_DECLARE_CONST_FUN_OBJ_VAR(obj_name) extern const mp_obj_fun_builtin_var_t obj_name |
|
#define | MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(obj_name) extern const mp_obj_fun_builtin_var_t obj_name |
|
#define | MP_DECLARE_CONST_FUN_OBJ_KW(obj_name) extern const mp_obj_fun_builtin_var_t obj_name |
|
#define | MP_DEFINE_CONST_FUN_OBJ_0(obj_name, fun_name) |
|
#define | MP_DEFINE_CONST_FUN_OBJ_1(obj_name, fun_name) |
|
#define | MP_DEFINE_CONST_FUN_OBJ_2(obj_name, fun_name) |
|
#define | MP_DEFINE_CONST_FUN_OBJ_3(obj_name, fun_name) |
|
#define | MP_DEFINE_CONST_FUN_OBJ_VAR(obj_name, n_args_min, fun_name) |
|
#define | MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(obj_name, n_args_min, n_args_max, fun_name) |
|
#define | MP_DEFINE_CONST_FUN_OBJ_KW(obj_name, n_args_min, fun_name) |
|
#define | MP_DEFINE_CONST_MAP(map_name, table_name) |
|
#define | MP_DEFINE_CONST_DICT(dict_name, table_name) |
|
#define | MP_DECLARE_CONST_STATICMETHOD_OBJ(obj_name) extern const mp_rom_obj_static_class_method_t obj_name |
|
#define | MP_DECLARE_CONST_CLASSMETHOD_OBJ(obj_name) extern const mp_rom_obj_static_class_method_t obj_name |
|
#define | MP_DEFINE_CONST_STATICMETHOD_OBJ(obj_name, fun_name) const mp_rom_obj_static_class_method_t obj_name = {{&mp_type_staticmethod}, fun_name} |
|
#define | MP_DEFINE_CONST_CLASSMETHOD_OBJ(obj_name, fun_name) const mp_rom_obj_static_class_method_t obj_name = {{&mp_type_classmethod}, fun_name} |
|
#define | MP_OBJ_ITER_BUF_NSLOTS ((sizeof(mp_obj_iter_buf_t) + sizeof(mp_obj_t) - 1) / sizeof(mp_obj_t)) |
|
#define | MP_BUFFER_READ (1) |
|
#define | MP_BUFFER_WRITE (2) |
|
#define | MP_BUFFER_RW (MP_BUFFER_READ | MP_BUFFER_WRITE) |
|
#define | mp_const_none (MP_OBJ_FROM_PTR(&mp_const_none_obj)) |
|
#define | mp_const_false (MP_OBJ_FROM_PTR(&mp_const_false_obj)) |
|
#define | mp_const_true (MP_OBJ_FROM_PTR(&mp_const_true_obj)) |
|
#define | mp_const_empty_bytes (MP_OBJ_FROM_PTR(&mp_const_empty_bytes_obj)) |
|
#define | mp_const_empty_tuple (MP_OBJ_FROM_PTR(&mp_const_empty_tuple_obj)) |
|
#define | mp_const_notimplemented (MP_OBJ_FROM_PTR(&mp_const_notimplemented_obj)) |
|
#define | mp_obj_is_native_exception_instance(o) (mp_obj_get_type(o)->make_new == mp_obj_exception_make_new) |
|
#define | mp_obj_is_float(o) (false) |
|
#define | MP_OBJ_FUN_ARGS_MAX (0xffff) |
|
#define | mp_seq_copy(dest, src, len, item_t) memcpy(dest, src, len * sizeof(item_t)) |
|
#define | mp_seq_cat(dest, src1, len1, src2, len2, item_t) { memcpy(dest, src1, (len1) * sizeof(item_t)); memcpy(dest + (len1), src2, (len2) * sizeof(item_t)); } |
|
#define | mp_seq_clear(start, len, alloc_len, item_sz) memset((byte*)(start) + (len) * (item_sz), 0, ((alloc_len) - (len)) * (item_sz)) |
|
#define | mp_seq_replace_slice_no_grow(dest, dest_len, beg, end, slice, slice_len, item_sz) |
|
#define | mp_seq_replace_slice_grow_inplace(dest, dest_len, beg, end, slice, slice_len, len_adj, item_sz) |
|
|
typedef uint64_t | mp_obj_t |
|
typedef uint64_t | mp_const_obj_t |
|
typedef struct _mp_obj_type_t | mp_obj_type_t |
|
typedef struct _mp_obj_base_t | mp_obj_base_t |
|
typedef mp_const_obj_t | mp_rom_obj_t |
|
typedef struct _mp_map_elem_t | mp_map_elem_t |
|
typedef struct _mp_rom_map_elem_t | mp_rom_map_elem_t |
|
typedef struct _mp_map_t | mp_map_t |
|
typedef enum _mp_map_lookup_kind_t | mp_map_lookup_kind_t |
|
typedef struct _mp_set_t | mp_set_t |
|
typedef mp_obj_t(* | mp_fun_0_t) (void) |
|
typedef mp_obj_t(* | mp_fun_1_t) (mp_obj_t) |
|
typedef mp_obj_t(* | mp_fun_2_t) (mp_obj_t, mp_obj_t) |
|
typedef mp_obj_t(* | mp_fun_3_t) (mp_obj_t, mp_obj_t, mp_obj_t) |
|
typedef mp_obj_t(* | mp_fun_var_t) (size_t n, const mp_obj_t *) |
|
typedef mp_obj_t(* | mp_fun_kw_t) (size_t n, const mp_obj_t *, mp_map_t *) |
|
typedef struct _mp_obj_iter_buf_t | mp_obj_iter_buf_t |
|
typedef void(* | mp_print_fun_t) (const mp_print_t *print, mp_obj_t o, mp_print_kind_t kind) |
|
typedef mp_obj_t(* | mp_make_new_fun_t) (const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) |
|
typedef mp_obj_t(* | mp_call_fun_t) (mp_obj_t fun, size_t n_args, size_t n_kw, const mp_obj_t *args) |
|
typedef mp_obj_t(* | mp_unary_op_fun_t) (mp_unary_op_t op, mp_obj_t) |
|
typedef mp_obj_t(* | mp_binary_op_fun_t) (mp_binary_op_t op, mp_obj_t, mp_obj_t) |
|
typedef void(* | mp_attr_fun_t) (mp_obj_t self_in, qstr attr, mp_obj_t *dest) |
|
typedef mp_obj_t(* | mp_subscr_fun_t) (mp_obj_t self_in, mp_obj_t index, mp_obj_t value) |
|
typedef mp_obj_t(* | mp_getiter_fun_t) (mp_obj_t self_in, mp_obj_iter_buf_t *iter_buf) |
|
typedef struct _mp_buffer_info_t | mp_buffer_info_t |
|
typedef struct _mp_buffer_p_t | mp_buffer_p_t |
|
typedef struct _mp_stream_p_t | mp_stream_p_t |
|
typedef struct _mp_obj_dict_t | mp_obj_dict_t |
|
typedef struct _mp_obj_fun_builtin_fixed_t | mp_obj_fun_builtin_fixed_t |
|
typedef struct _mp_obj_fun_builtin_var_t | mp_obj_fun_builtin_var_t |
|
typedef struct _mp_obj_module_t | mp_obj_module_t |
|
typedef struct _mp_obj_static_class_method_t | mp_obj_static_class_method_t |
|
typedef struct _mp_rom_obj_static_class_method_t | mp_rom_obj_static_class_method_t |
|
|
void | mp_map_init (mp_map_t *map, size_t n) |
|
void | mp_map_init_fixed_table (mp_map_t *map, size_t n, const mp_obj_t *table) |
|
mp_map_t * | mp_map_new (size_t n) |
|
void | mp_map_deinit (mp_map_t *map) |
|
void | mp_map_free (mp_map_t *map) |
|
mp_map_elem_t * | mp_map_lookup (mp_map_t *map, mp_obj_t index, mp_map_lookup_kind_t lookup_kind) |
|
void | mp_map_clear (mp_map_t *map) |
|
void | mp_map_dump (mp_map_t *map) |
|
void | mp_set_init (mp_set_t *set, size_t n) |
|
mp_obj_t | mp_set_lookup (mp_set_t *set, mp_obj_t index, mp_map_lookup_kind_t lookup_kind) |
|
mp_obj_t | mp_set_remove_first (mp_set_t *set) |
|
void | mp_set_clear (mp_set_t *set) |
|
bool | mp_get_buffer (mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flags) |
|
void | mp_get_buffer_raise (mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flags) |
|
mp_obj_t | mp_obj_new_type (qstr name, mp_obj_t bases_tuple, mp_obj_t locals_dict) |
|
mp_obj_t | mp_obj_new_cell (mp_obj_t obj) |
|
mp_obj_t | mp_obj_new_int (mp_int_t value) |
|
mp_obj_t | mp_obj_new_int_from_uint (mp_uint_t value) |
|
mp_obj_t | mp_obj_new_int_from_str_len (const char **str, size_t len, bool neg, unsigned int base) |
|
mp_obj_t | mp_obj_new_int_from_ll (long long val) |
|
mp_obj_t | mp_obj_new_int_from_ull (unsigned long long val) |
|
mp_obj_t | mp_obj_new_str (const char *data, size_t len, bool make_qstr_if_not_already) |
|
mp_obj_t | mp_obj_new_str_from_vstr (const mp_obj_type_t *type, vstr_t *vstr) |
|
mp_obj_t | mp_obj_new_bytes (const byte *data, size_t len) |
|
mp_obj_t | mp_obj_new_bytearray (size_t n, void *items) |
|
mp_obj_t | mp_obj_new_bytearray_by_ref (size_t n, void *items) |
|
mp_obj_t | mp_obj_new_exception (const mp_obj_type_t *exc_type) |
|
mp_obj_t | mp_obj_new_exception_arg1 (const mp_obj_type_t *exc_type, mp_obj_t arg) |
|
mp_obj_t | mp_obj_new_exception_args (const mp_obj_type_t *exc_type, size_t n_args, const mp_obj_t *args) |
|
mp_obj_t | mp_obj_new_exception_msg (const mp_obj_type_t *exc_type, const char *msg) |
|
mp_obj_t | mp_obj_new_exception_msg_varg (const mp_obj_type_t *exc_type, const char *fmt,...) |
|
mp_obj_t | mp_obj_new_fun_bc (mp_obj_t def_args, mp_obj_t def_kw_args, const byte *code, const mp_uint_t *const_table) |
|
mp_obj_t | mp_obj_new_fun_native (mp_obj_t def_args_in, mp_obj_t def_kw_args, const void *fun_data, const mp_uint_t *const_table) |
|
mp_obj_t | mp_obj_new_fun_viper (size_t n_args, void *fun_data, mp_uint_t type_sig) |
|
mp_obj_t | mp_obj_new_fun_asm (size_t n_args, void *fun_data, mp_uint_t type_sig) |
|
mp_obj_t | mp_obj_new_gen_wrap (mp_obj_t fun) |
|
mp_obj_t | mp_obj_new_closure (mp_obj_t fun, size_t n_closed, const mp_obj_t *closed) |
|
mp_obj_t | mp_obj_new_tuple (size_t n, const mp_obj_t *items) |
|
mp_obj_t | mp_obj_new_list (size_t n, mp_obj_t *items) |
|
mp_obj_t | mp_obj_new_dict (size_t n_args) |
|
mp_obj_t | mp_obj_new_set (size_t n_args, mp_obj_t *items) |
|
mp_obj_t | mp_obj_new_slice (mp_obj_t start, mp_obj_t stop, mp_obj_t step) |
|
mp_obj_t | mp_obj_new_bound_meth (mp_obj_t meth, mp_obj_t self) |
|
mp_obj_t | mp_obj_new_getitem_iter (mp_obj_t *args, mp_obj_iter_buf_t *iter_buf) |
|
mp_obj_t | mp_obj_new_module (qstr module_name) |
|
mp_obj_t | mp_obj_new_memoryview (byte typecode, size_t nitems, void *items) |
|
mp_obj_type_t * | mp_obj_get_type (mp_const_obj_t o_in) |
|
const char * | mp_obj_get_type_str (mp_const_obj_t o_in) |
|
bool | mp_obj_is_subclass_fast (mp_const_obj_t object, mp_const_obj_t classinfo) |
|
mp_obj_t | mp_instance_cast_to_native_base (mp_const_obj_t self_in, mp_const_obj_t native_type) |
|
void | mp_obj_print_helper (const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) |
|
void | mp_obj_print (mp_obj_t o, mp_print_kind_t kind) |
|
void | mp_obj_print_exception (const mp_print_t *print, mp_obj_t exc) |
|
bool | mp_obj_is_true (mp_obj_t arg) |
|
bool | mp_obj_is_callable (mp_obj_t o_in) |
|
bool | mp_obj_equal (mp_obj_t o1, mp_obj_t o2) |
|
mp_int_t | mp_obj_get_int (mp_const_obj_t arg) |
|
mp_int_t | mp_obj_get_int_truncated (mp_const_obj_t arg) |
|
bool | mp_obj_get_int_maybe (mp_const_obj_t arg, mp_int_t *value) |
|
void | mp_obj_get_array (mp_obj_t o, size_t *len, mp_obj_t **items) |
|
void | mp_obj_get_array_fixed_n (mp_obj_t o, size_t len, mp_obj_t **items) |
|
size_t | mp_get_index (const mp_obj_type_t *type, size_t len, mp_obj_t index, bool is_slice) |
|
mp_obj_t | mp_obj_id (mp_obj_t o_in) |
|
mp_obj_t | mp_obj_len (mp_obj_t o_in) |
|
mp_obj_t | mp_obj_len_maybe (mp_obj_t o_in) |
|
mp_obj_t | mp_obj_subscr (mp_obj_t base, mp_obj_t index, mp_obj_t val) |
|
mp_obj_t | mp_generic_unary_op (mp_unary_op_t op, mp_obj_t o_in) |
|
mp_obj_t | mp_obj_cell_get (mp_obj_t self_in) |
|
void | mp_obj_cell_set (mp_obj_t self_in, mp_obj_t obj) |
|
mp_int_t | mp_obj_int_get_truncated (mp_const_obj_t self_in) |
|
mp_int_t | mp_obj_int_get_checked (mp_const_obj_t self_in) |
|
bool | mp_obj_is_exception_type (mp_obj_t self_in) |
|
bool | mp_obj_is_exception_instance (mp_obj_t self_in) |
|
bool | mp_obj_exception_match (mp_obj_t exc, mp_const_obj_t exc_type) |
|
void | mp_obj_exception_clear_traceback (mp_obj_t self_in) |
|
void | mp_obj_exception_add_traceback (mp_obj_t self_in, qstr file, size_t line, qstr block) |
|
void | mp_obj_exception_get_traceback (mp_obj_t self_in, size_t *n, size_t **values) |
|
mp_obj_t | mp_obj_exception_get_value (mp_obj_t self_in) |
|
mp_obj_t | mp_obj_exception_make_new (const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args) |
|
mp_obj_t | mp_alloc_emergency_exception_buf (mp_obj_t size_in) |
|
void | mp_init_emergency_exception_buf (void) |
|
bool | mp_obj_str_equal (mp_obj_t s1, mp_obj_t s2) |
|
qstr | mp_obj_str_get_qstr (mp_obj_t self_in) |
|
const char * | mp_obj_str_get_str (mp_obj_t self_in) |
|
const char * | mp_obj_str_get_data (mp_obj_t self_in, size_t *len) |
|
mp_obj_t | mp_obj_str_intern (mp_obj_t str) |
|
void | mp_str_print_quoted (const mp_print_t *print, const byte *str_data, size_t str_len, bool is_bytes) |
|
void | mp_obj_tuple_get (mp_obj_t self_in, size_t *len, mp_obj_t **items) |
|
void | mp_obj_tuple_del (mp_obj_t self_in) |
|
mp_int_t | mp_obj_tuple_hash (mp_obj_t self_in) |
|
void | mp_obj_list_init (struct _mp_obj_list_t *o, size_t n) |
|
mp_obj_t | mp_obj_list_append (mp_obj_t self_in, mp_obj_t arg) |
|
mp_obj_t | mp_obj_list_remove (mp_obj_t self_in, mp_obj_t value) |
|
void | mp_obj_list_get (mp_obj_t self_in, size_t *len, mp_obj_t **items) |
|
void | mp_obj_list_set_len (mp_obj_t self_in, size_t len) |
|
void | mp_obj_list_store (mp_obj_t self_in, mp_obj_t index, mp_obj_t value) |
|
mp_obj_t | mp_obj_list_sort (size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) |
|
void | mp_obj_dict_init (mp_obj_dict_t *dict, size_t n_args) |
|
size_t | mp_obj_dict_len (mp_obj_t self_in) |
|
mp_obj_t | mp_obj_dict_get (mp_obj_t self_in, mp_obj_t index) |
|
mp_obj_t | mp_obj_dict_store (mp_obj_t self_in, mp_obj_t key, mp_obj_t value) |
|
mp_obj_t | mp_obj_dict_delete (mp_obj_t self_in, mp_obj_t key) |
|
mp_map_t * | mp_obj_dict_get_map (mp_obj_t self_in) |
|
void | mp_obj_set_store (mp_obj_t self_in, mp_obj_t item) |
|
void | mp_obj_slice_get (mp_obj_t self_in, mp_obj_t *start, mp_obj_t *stop, mp_obj_t *step) |
|
qstr | mp_obj_fun_get_name (mp_const_obj_t fun) |
|
qstr | mp_obj_code_get_name (const byte *code_info) |
|
mp_obj_t | mp_identity (mp_obj_t self) |
|
| MP_DECLARE_CONST_FUN_OBJ_1 (mp_identity_obj) |
|
mp_obj_t | mp_identity_getiter (mp_obj_t self, mp_obj_iter_buf_t *iter_buf) |
|
mp_obj_dict_t * | mp_obj_module_get_globals (mp_obj_t self_in) |
|
bool | mp_obj_is_package (mp_obj_t module) |
|
const mp_obj_t * | mp_obj_property_get (mp_obj_t self_in) |
|
void | mp_seq_multiply (const void *items, size_t item_sz, size_t len, size_t times, void *dest) |
|
bool | mp_seq_cmp_bytes (mp_uint_t op, const byte *data1, size_t len1, const byte *data2, size_t len2) |
|
bool | mp_seq_cmp_objs (mp_uint_t op, const mp_obj_t *items1, size_t len1, const mp_obj_t *items2, size_t len2) |
|
mp_obj_t | mp_seq_index_obj (const mp_obj_t *items, size_t len, size_t n_args, const mp_obj_t *args) |
|
mp_obj_t | mp_seq_count_obj (const mp_obj_t *items, size_t len, mp_obj_t value) |
|
mp_obj_t | mp_seq_extract_slice (size_t len, const mp_obj_t *seq, mp_bound_slice_t *indexes) |
|