diff options
author | Damien George <damien@micropython.org> | 2022-04-20 17:20:07 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-04-22 16:37:02 +1000 |
commit | caaff940a265bd30cca5a271b49e7addaf05ef53 (patch) | |
tree | 7413f84e38feee120173b6ea9d65ed3f3aae79f4 /py/repl.c | |
parent | 28e7e15c0ad03f406cc5214f22d9a90a560f65c4 (diff) |
extmod/uasyncio: Rename and merge TaskQueue push/pop methods.
These are internal names and can be safely renamed without affecting user
code. push_sorted() and push_head() are merged into a single push()
method, which is already how the C version is implemented. pop_head() is
simply renamed to pop().
The changes are:
- q.push_sorted(task, t) -> q.push(task, t)
- q.push_head(task) -> q.push(task)
- q.pop_head() -> q.pop()
The shorter names and removal of push_head() leads to a code size reduction
of between 40 and 64 bytes on bare-metal targets.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/repl.c')
0 files changed, 0 insertions, 0 deletions