micropython/ports/nrf/modules/ubluepy
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable.
This replaces occurences of

    foo_t *foo = m_new_obj(foo_t);
    foo->base.type = &foo_type;

with

    foo_t *foo = mp_obj_malloc(foo_t, &foo_type);

Excludes any places where base is a sub-field or when new0/memset is used.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-05-03 22:28:14 +10:00
..
modubluepy.c nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
modubluepy.h nrf: Move pyb module to boards module 2018-07-18 17:12:26 +10:00
ubluepy_characteristic.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
ubluepy_constants.c nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
ubluepy_delegate.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
ubluepy_descriptor.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
ubluepy_peripheral.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
ubluepy_scan_entry.c nrf: Update usage of mp_obj_new_str by removing last parameter. 2018-07-18 17:12:25 +10:00
ubluepy_scanner.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
ubluepy_service.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
ubluepy_uuid.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00