summaryrefslogtreecommitdiffstatshomepage
path: root/unix
Commit message (Collapse)AuthorAge
* Fix DEBUG=1 buildsDave Hylands2014-05-26
| | | | | | | | 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
* modos: stat(): Accept bytes argument.Paul Sokolovsky2014-05-26
|
* Change const byte* to const char* where sensible.Damien George2014-05-25
| | | | | This removes need for some casts (at least, more than it adds need for new casts!).
* Add SystemExit exception and use it in unix/ and stmhal/ ports.Damien George2014-05-24
| | | | Addresses issue #598.
* Rename configuration variables controling Python features.Damien George2014-05-24
| | | | Now of the form MICROPY_PY_*. See issue #35.
* modsocket: 64-bit cleanness.Paul Sokolovsky2014-05-24
|
* unix modsocket: Make .makefile() method more compliant.Paul Sokolovsky2014-05-24
| | | | | .makefile() should allow to specify which stream time to create - byte or text.
* unix: Fix casting issue, int to small int object.Damien George2014-05-21
|
* Tidy up some configuration options.Damien George2014-05-21
| | | | | | | | | | 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.
* unix, Mac support: Generate order.def via Makefile.Damien George2014-05-21
|
* Merge pull request #607 from Anton-2/osx-clangDamien George2014-05-21
|\ | | | | Allow compilation of unix port under clang on OS X
| * Fix some unused variables, and silence a clang warning about initialization ↵Antonin ENFRUN2014-05-12
| | | | | | | | override in vmentrytable.h
| * unix: Add asm statements needed to read registers with clang. Code generated ↵Antonin ENFRUN2014-05-12
| | | | | | | | | | | | by gcc 4.9.0 is unchanged (same statements, different order). Both are inefficient, saving unmodified registers on the stack.
| * unix: Create __bss_start and _end symbols for Mach-O targets.Antonin ENFRUN2014-05-12
| | | | | | | | It's a hack, but can't find a cleaner way to do it.
* | py: Implement proper separation between io.FileIO and io.TextIOWrapper.Paul Sokolovsky2014-05-19
| | | | | | | | | | | | | | 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.
* | modos: Clean 64-bit issues.Paul Sokolovsky2014-05-15
| |
* | unix: Add "_os" module with stat().Paul Sokolovsky2014-05-14
| | | | | | | | | | | | | | 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.
* | Merge pull request #600 from stinos/unix-exitcodeDamien George2014-05-13
|\ \ | | | | | | unix: Use standard return codes for main
| * | unix: Use standard return codes for mainstijn2014-05-11
| |/ | | | | | | | | As in the CPython manual: "Unix programs generally use 2 for command line syntax errors and 1 for all other kind of errors"
* | py, unix: Add copyright for modules I worked closely on.Paul Sokolovsky2014-05-13
| |
* | unix: Implement -O option to turn off __debug__ flag.Damien George2014-05-12
| |
* | py: Rename BYTE_CODE to BYTECODE (this was missed in previous rename).Damien George2014-05-12
| |
* | unix: Fix linker errors when time/ffi modules are disabledstijn2014-05-13
|/ | | | | | | 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.
* py: Rename MICROPY_SYS_EXIT to MICROPY_MOD_SYS_EXIT.Damien George2014-05-11
| | | | For consistency with MICROPY_MOD_SYS_STDFILES, etc.
* Merge pull request #597 from stinos/mingw-compilationDamien George2014-05-11
|\ | | | | mingw: Fix compilation issues
| * mingw: Fix compilation issuesstijn2014-05-10
| | | | | | | | | | - use lowercase windows.h - fix for mingw32 using preprocessor-unfriendly definition of CLOCKS_PER_SEC
* | modsys: Enable sys.exit() per port after all.Paul Sokolovsky2014-05-10
| |
* | modsys, unix: Add sys.exit(), should be implemented by a port.Paul Sokolovsky2014-05-10
| |
* | py: Disable frozenset by default, enable on unix.Paul Sokolovsky2014-05-10
|/ | | | Takes 416 text bytes on x86.
* windows: Add modtime implementationstijn2014-05-09
|
* unix: Add missing stdio.h header for readline.Damien George2014-05-07
|
* Add input command for unixDave Hylands2014-05-07
|
* stream: Make non-blcoking stream support configurable.Paul Sokolovsky2014-05-07
| | | | Enable only on unix. To avoid unpleasant surprises with error codes.
* unix modsocket: Add comments re: recv() vs read(), etc. semantics.Paul Sokolovsky2014-05-07
|
* modgc: Add new module for GC-related functionality.Paul Sokolovsky2014-05-06
|
* py, unix: Add -v option, print bytecode dump if used.Paul Sokolovsky2014-05-05
| | | | | | | | | | 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.
* unix: Remove test class and code.Damien George2014-05-04
|
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | 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/.
* py, stream: Implement readlines for a stream.Damien George2014-05-03
|
* Don't print git hash as well as git tag in banner.v1.0Damien George2014-05-03
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-05-03
|\
| * Merge pull request #554 from stinos/mingw-realpathPaul Sokolovsky2014-05-03
| |\ | | | | | | mingw: Add implementation of realpath()
| | * mingw: Add implementation of realpath()stijn2014-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | py: Print tag/version/git describe in uPy banner.Damien George2014-05-03
|/ /
* | unix, file.c: adhere to coding conventions.Damien George2014-05-03
| |
* | CPython compatibility: raise an error for operations on a closed file descriptorstijn2014-05-03
|/ | | | | In CPython any operations on a file that has been closed already reaises a ValueError with message "I/O operation on closed file"
* unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky2014-05-02
|
* py, unix: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky2014-05-02
| | | | Specifically, nlr.h does.
* py: Add tentative scheme for error messages configuration.Paul Sokolovsky2014-05-01
|
* py: "read" & "write" are so common that make them core.Paul Sokolovsky2014-04-26
| | | | Few other strings move to core, but make depend on "io" module.