all: Rename mp_umodule*, mp_module_umodule* to remove the "u" prefix.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
@@ -864,7 +864,7 @@ STATIC const mp_rom_map_elem_t mp_module_socket_globals_table[] = {
|
||||
|
||||
STATIC MP_DEFINE_CONST_DICT(mp_module_socket_globals, mp_module_socket_globals_table);
|
||||
|
||||
const mp_obj_module_t mp_module_usocket = {
|
||||
const mp_obj_module_t mp_module_socket = {
|
||||
.base = { &mp_type_module },
|
||||
.globals = (mp_obj_dict_t *)&mp_module_socket_globals,
|
||||
};
|
||||
@@ -872,4 +872,4 @@ const mp_obj_module_t mp_module_usocket = {
|
||||
// Note: This port doesn't define MICROPY_PY_USOCKET or MICROPY_PY_LWIP so
|
||||
// this will not conflict with the common implementation provided by
|
||||
// extmod/mod{lwip,usocket}.c.
|
||||
MP_REGISTER_MODULE(MP_QSTR_socket, mp_module_usocket);
|
||||
MP_REGISTER_MODULE(MP_QSTR_socket, mp_module_socket);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "py/mphal.h"
|
||||
#include "extmod/misc.h"
|
||||
|
||||
STATIC mp_obj_t mp_uos_urandom(mp_obj_t num) {
|
||||
STATIC mp_obj_t mp_os_urandom(mp_obj_t num) {
|
||||
mp_int_t n = mp_obj_get_int(num);
|
||||
vstr_t vstr;
|
||||
vstr_init_len(&vstr, n);
|
||||
@@ -47,13 +47,13 @@ STATIC mp_obj_t mp_uos_urandom(mp_obj_t num) {
|
||||
}
|
||||
return mp_obj_new_bytes_from_vstr(&vstr);
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mp_uos_urandom_obj, mp_uos_urandom);
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mp_os_urandom_obj, mp_os_urandom);
|
||||
|
||||
#if MICROPY_PY_UOS_DUPTERM_NOTIFY
|
||||
STATIC mp_obj_t mp_uos_dupterm_notify(mp_obj_t obj_in) {
|
||||
STATIC mp_obj_t mp_os_dupterm_notify(mp_obj_t obj_in) {
|
||||
(void)obj_in;
|
||||
for (;;) {
|
||||
int c = mp_uos_dupterm_rx_chr();
|
||||
int c = mp_os_dupterm_rx_chr();
|
||||
if (c < 0) {
|
||||
break;
|
||||
}
|
||||
@@ -61,5 +61,5 @@ STATIC mp_obj_t mp_uos_dupterm_notify(mp_obj_t obj_in) {
|
||||
}
|
||||
return mp_const_none;
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mp_uos_dupterm_notify_obj, mp_uos_dupterm_notify);
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mp_os_dupterm_notify_obj, mp_os_dupterm_notify);
|
||||
#endif
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "shared/timeutils/timeutils.h"
|
||||
|
||||
// Return the localtime as an 8-tuple.
|
||||
STATIC mp_obj_t mp_utime_localtime_get(void) {
|
||||
STATIC mp_obj_t mp_time_localtime_get(void) {
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
timeutils_struct_time_t tm;
|
||||
@@ -51,7 +51,7 @@ STATIC mp_obj_t mp_utime_localtime_get(void) {
|
||||
}
|
||||
|
||||
// Return the number of seconds since the Epoch.
|
||||
STATIC mp_obj_t mp_utime_time_get(void) {
|
||||
STATIC mp_obj_t mp_time_time_get(void) {
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
return mp_obj_new_int(tv.tv_sec);
|
||||
|
||||
@@ -121,7 +121,7 @@ void mp_hal_stdout_tx_strn(const char *str, size_t len) {
|
||||
if (release_gil) {
|
||||
MP_THREAD_GIL_ENTER();
|
||||
}
|
||||
mp_uos_dupterm_tx_strn(str, len);
|
||||
mp_os_dupterm_tx_strn(str, len);
|
||||
}
|
||||
|
||||
uint32_t mp_hal_ticks_ms(void) {
|
||||
|
||||
Reference in New Issue
Block a user