aboutsummaryrefslogtreecommitdiff
path: root/extmod/moduselect.c
AgeCommit message (Collapse)Author
2022-06-02all: Remove third argument to MP_REGISTER_MODULE.Damien George
It's no longer needed because this macro is now processed after preprocessing the source code via cpp (in the qstr extraction stage), which means unused MP_REGISTER_MODULE's are filtered out by the preprocessor. Signed-off-by: Damien George <damien@micropython.org>
2022-05-18extmod: Make extmod modules use MP_REGISTER_MODULE.Jim Mussared
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-05-03all: Use mp_obj_malloc everywhere it's applicable.Jim Mussared
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>
2021-07-17extmod/moduselect: Conditionally compile select().David Lechner
This adds #if MICROPY_PY_USELECT_SELECT around the uselect.select() function. According to the docs, this function is only for CPython compatibility and should not normally be used. So we can disable it and save a few bytes of flash space where possible. Signed-off-by: David Lechner <david@pybricks.com>
2021-05-06extmod: Remove old comments used for auto-doc generation.Damien George
They are no longer used, and the text in the docs is more up to date. Signed-off-by: Damien George <damien@micropython.org>
2021-02-16extmod/moduselect: Fix unsigned/signed comparison for timeout!=-1.Jim Mussared
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2020-04-18all: Fix implicit floating point promotion.stijn
Initially some of these were found building the unix coverage variant on MacOS because that build uses clang and has -Wdouble-promotion enabled, and clang performs more vigorous promotion checks than gcc. Additionally the codebase has been compiled with clang and msvc (the latter with warning level 3), and with MICROPY_FLOAT_IMPL_FLOAT to find the rest of the conversions. Fixes are implemented either as explicit casts, or by using the correct type, or by using one of the utility functions to handle floating point casting; these have been moved from nativeglue.c to the public API.
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-05-17various: Add and update my copyright line based on git history.Paul Sokolovsky
For modules I initially created or made substantial contributions to.
2019-03-13extmod/moduselect: Adjust select_select and poll_register to use size_t.Wolf Vollprecht
2019-02-12extmod: Convert legacy uppercase macro names to lowercase.Damien George
2018-07-08extmod: Fix to support compiling with object representation D.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-07-31extmod: Use MP_ROM_INT for int values in an mp_rom_map_elem_t.Damien George
2017-04-29extmod/moduselect: Implement ipoll() method for alloc-free polling.Paul Sokolovsky
Similar to the implementation added to unix port module previously.
2017-04-29extmod/moduselect: Refactor towards introduction of poll.ipoll().Paul Sokolovsky
This follows previous refactor made to unix/moduselect.
2017-04-29extmod/moduselect: Convert to MP_ROM_QSTR and friends.Paul Sokolovsky
2017-03-29extmod/moduselect: Update to use size_t for array accessor.Damien George
2016-12-02extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI.Damien George
To make moduselect be usable by any port.
2016-12-02extmod/moduselect: Use stream helper function instead of ad-hoc code.Damien George
2016-12-02py/stream: Move ad-hoc ioctl constants to stream.h and rename them.Damien George
The constants MP_IOCTL_POLL_xxx, which were stmhal-specific, are moved from stmhal/pybioctl.h (now deleted) to py/stream.h. And they are renamed to MP_STREAM_POLL_xxx to be consistent with other such constants. All uses of these constants have been updated.
2016-11-21extmod/moduselect: Fix comment describing endif.Damien George
2016-11-21stmhal/moduselect: Move to extmod/ for reuse by other ports.Paul Sokolovsky