micropython/ports/nrf/modules
Jim Mussared 8a0ee5a5c0 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions.
Previously the desired output type was specified.  Now make the type part
of the function name.  Because this function is used in a few places this
saves code size due to smaller call-site.

This makes `mp_obj_new_str_type_from_vstr` a private function of objstr.c
(which is almost the only place where the output type isn't a compile-time
constant).

This saves ~140 bytes on PYBV11.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-26 16:43:55 +10:00
..
ble all: Remove third argument to MP_REGISTER_MODULE. 2022-06-02 16:31:37 +10:00
board all: Remove third argument to MP_REGISTER_MODULE. 2022-06-02 16:31:37 +10:00
machine py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
music nrf: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:50:34 +10:00
nrf all: Remove third argument to MP_REGISTER_MODULE. 2022-06-02 16:31:37 +10:00
scripts nrf/modules/scripts: Add file system formatting script. 2021-08-08 23:17:55 +10:00
ubluepy nrf/modules/ubluepy: Use mp_obj_str_get_data to extract str data. 2022-08-11 23:18:02 +10:00
uos py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
utime all: Remove third argument to MP_REGISTER_MODULE. 2022-06-02 16:31:37 +10:00
manifest.py nrf/modules: Include uasyncio in default board manifest. 2022-03-30 15:37:49 +11:00