| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
This renames:
MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
See issue #35 for discussion.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 6e76f7bc90fcd130db888f8804b8555dc8f3a484.
This patch tries to workaround a previous clang workaround. Instead of going
into workaround of workaround spiral, the original workaround should be tamed.
|
|
|
|
|
|
|
|
| |
Without this fix, I get the following error:
CC gccollect.c
gccollect.c: In function ‘gc_helper_get_regs’:
gccollect.c:63:1: error: bp cannot be used in asm here
|
| |
|
|
|
|
|
| |
This removes need for some casts (at least, more than it adds need
for new casts!).
|
|
|
|
| |
Addresses issue #598.
|
|
|
|
| |
Now of the form MICROPY_PY_*. See issue #35.
|
| |
|
|
|
|
|
| |
.makefile() should allow to specify which stream time to create - byte
or text.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
MP_ALLOC_* -> MICROPY_ALLOC_*
MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
MICROPY_EXTRA_* -> MICROPY_PORT_*
See issue #35.
|
| |
|
|\
| |
| | |
Allow compilation of unix port under clang on OS X
|
| |
| |
| |
| | |
override in vmentrytable.h
|
| |
| |
| |
| |
| |
| | |
by gcc 4.9.0 is unchanged (same statements, different order).
Both are inefficient, saving unmodified registers on the stack.
|
| |
| |
| |
| | |
It's a hack, but can't find a cleaner way to do it.
|
| |
| |
| |
| |
| |
| |
| | |
io.FileIO is binary I/O, ans actually optional. Default file type is
io.TextIOWrapper, which provides str results. CPython3 explicitly describes
io.TextIOWrapper as buffered I/O, but we don't have buffering support yet
anyway.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
stat() is bad function to use using FFI, because its ABI is largely private.
To start with, Glibc .so doesn't even have "stat" symbol. Then, layout of
struct stat is too implementation-dependent. So, introduce _os to deal
with stat() and other similar cases.
|
|\ \
| | |
| | | |
unix: Use standard return codes for main
|
| |/
| |
| |
| |
| | |
As in the CPython manual: "Unix programs generally use 2 for
command line syntax errors and 1 for all other kind of errors"
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
|
|
| |
When disabling these via mpconfigport.mk or on the commandline,
the correspoding build options are not set and the sources are not
built so the modules should not be added to the
MICROPY_EXTRA_BUILTIN_MODULES list since they are undefined.
|
|
|
|
| |
For consistency with MICROPY_MOD_SYS_STDFILES, etc.
|
|\
| |
| | |
mingw: Fix compilation issues
|
| |
| |
| |
| |
| | |
- use lowercase windows.h
- fix for mingw32 using preprocessor-unfriendly definition of CLOCKS_PER_SEC
|
| | |
|
| | |
|
|/
|
|
| |
Takes 416 text bytes on x86.
|
| |
|
| |
|
| |
|
|
|
|
| |
Enable only on unix. To avoid unpleasant surprises with error codes.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This will work if MICROPY_DEBUG_PRINTERS is defined, which is only for
unix/windows ports. This makes it convenient to user uPy normally, but
easily get bytecode dump on the spot if needed, without constant recompiles
back and forth.
TODO: Add more useful debug output, adjust verbosity level on which
specifically bytecode dump happens.
|
| |
|
|
|
|
|
|
|
| |
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/.
|
| |
|
| |
|
|\ |
|
| |\
| | |
| | | |
mingw: Add implementation of realpath()
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The mingw port used _fullpath() until now, but the behaviour is not exactly
the same as realpath()'s on unix; major difference being that it doesn't
return an error for non-existing files, which would bypass main's error
checking and bail out without any error message.
Also realpath() will return forward slashes only since main() relies on that.
|