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
..
2022-02-03 10:08:54 +11:00
2020-04-05 15:02:06 +10:00
2017-09-06 13:40:51 +10:00
2020-04-05 15:02:06 +10:00
2021-07-12 17:08:10 +10:00
2017-09-06 13:40:51 +10:00
2022-04-11 15:28:56 +10:00
2018-06-04 16:58:45 +10:00
2020-04-05 15:02:06 +10:00
2021-07-12 17:08:10 +10:00
2017-09-06 13:40:51 +10:00
2021-07-12 17:08:10 +10:00
2017-09-06 13:40:51 +10:00
2020-04-05 15:02:06 +10:00
2017-09-06 13:40:51 +10:00
2020-04-23 11:24:15 +10:00
2017-09-06 13:40:51 +10:00
2020-04-05 15:02:06 +10:00
2017-09-06 13:40:51 +10:00
2020-04-05 15:02:06 +10:00
2017-09-06 13:40:51 +10:00
2021-07-12 17:08:10 +10:00
2017-09-06 13:40:51 +10:00
2020-04-05 15:02:06 +10:00
2017-09-06 13:40:51 +10:00
2022-05-03 22:28:14 +10:00
2017-09-06 13:40:51 +10:00
2020-04-05 15:02:06 +10:00
2017-09-06 13:40:51 +10:00
2022-05-03 22:28:14 +10:00
2017-09-06 13:40:51 +10:00
2021-07-12 17:08:10 +10:00
2017-09-06 13:40:51 +10:00
2020-04-05 15:02:06 +10:00
2017-09-06 13:40:51 +10:00