| Age | Commit message (Collapse) | Author |
|
|
|
This follows the pattern of how all other headers are now included, and
makes it explicit where the header file comes from. This patch also
removes -I options from Makefile's that specify the mp-readline/timeutils/
netutils directories, which are no longer needed.
|
|
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so
long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
|
|
This cleans up vstr so that it's a pure "variable buffer", and the user
can decide whether they need to add a terminating null byte. In most
places where vstr is used, the vstr did not need to be null terminated
and so this patch saves code size, a tiny bit of RAM, and makes vstr
usage more efficient. When null termination is needed it must be
done explicitly using vstr_null_terminate.
|
|
|
|
This makes it easier to re-use readline.c and pyexec.c from stmhal in
other ports.
|
|
This removes need for some casts (at least, more than it adds need
for new casts!).
|
|
|
|
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
|
|
Make include dependencies neater, and adheres to the coding convention
that headers should not include headers.
|
|
|
|
This does not affect code size or performance when debugging turned off.
To address issue #420.
|
|
Adds readline_init() to clear readline history on soft reset. Addresses
issue #387.
|
|
|