2022-08-18 06:01:26 +01:00
|
|
|
#define MICROPY_PY_HEAPQ (1)
|
2019-11-05 00:41:39 +00:00
|
|
|
|
|
|
|
#include "py/dynruntime.h"
|
|
|
|
|
2022-08-18 07:24:27 +01:00
|
|
|
#include "extmod/modheapq.c"
|
2019-11-05 00:41:39 +00:00
|
|
|
|
|
|
|
mp_obj_t mpy_init(mp_obj_fun_bc_t *self, size_t n_args, size_t n_kw, mp_obj_t *args) {
|
|
|
|
MP_DYNRUNTIME_INIT_ENTRY
|
|
|
|
|
2022-08-17 07:18:31 +01:00
|
|
|
mp_store_global(MP_QSTR___name__, MP_OBJ_NEW_QSTR(MP_QSTR_heapq));
|
2022-08-18 05:49:57 +01:00
|
|
|
mp_store_global(MP_QSTR_heappush, MP_OBJ_FROM_PTR(&mod_heapq_heappush_obj));
|
|
|
|
mp_store_global(MP_QSTR_heappop, MP_OBJ_FROM_PTR(&mod_heapq_heappop_obj));
|
|
|
|
mp_store_global(MP_QSTR_heapify, MP_OBJ_FROM_PTR(&mod_heapq_heapify_obj));
|
2019-11-05 00:41:39 +00:00
|
|
|
|
|
|
|
MP_DYNRUNTIME_INIT_EXIT
|
|
|
|
}
|