micropython/ports
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
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
esp32 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
esp8266 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
mimxrt py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
minimal minimal/Makefile: Avoid terminal reset, use BUILD variable. 2022-08-11 14:07:18 +10:00
nrf py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
pic16bit pic16bit/pic16bit_mphal: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:50:34 +10:00
powerpc shared/runtime/pyexec: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:52:01 +10:00
qemu-arm py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
renesas-ra all: Remove MICROPY_PY_IO_FILEIO config option. 2022-08-18 11:54:17 +10:00
rp2 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
samd all: Remove MICROPY_PY_IO_FILEIO config option. 2022-08-18 11:54:17 +10:00
stm32 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
teensy ports: Always include debug information in the ELF. 2022-07-29 11:24:00 +10:00
unix py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
webassembly javascript: Rename this port to 'webassembly'. 2022-08-22 12:03:39 +01:00
windows all: Remove MICROPY_PY_IO_FILEIO config option. 2022-08-18 11:54:17 +10:00
zephyr py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00