summaryrefslogtreecommitdiff
path: root/unix
AgeCommit message (Collapse)Author
2014-05-07unix: Add missing stdio.h header for readline.Damien George
2014-05-07Add input command for unixDave Hylands
2014-05-07stream: Make non-blcoking stream support configurable.Paul Sokolovsky
Enable only on unix. To avoid unpleasant surprises with error codes.
2014-05-07unix modsocket: Add comments re: recv() vs read(), etc. semantics.Paul Sokolovsky
2014-05-06modgc: Add new module for GC-related functionality.Paul Sokolovsky
2014-05-05py, unix: Add -v option, print bytecode dump if used.Paul Sokolovsky
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.
2014-05-04unix: Remove test class and code.Damien George
2014-05-03Add license header to (almost) all files.Damien George
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/.
2014-05-03py, stream: Implement readlines for a stream.Damien George
2014-05-03Don't print git hash as well as git tag in banner.v1.0Damien George
2014-05-03Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-05-03py: Print tag/version/git describe in uPy banner.Damien George
2014-05-03Merge pull request #554 from stinos/mingw-realpathPaul Sokolovsky
mingw: Add implementation of realpath()
2014-05-03unix, file.c: adhere to coding conventions.Damien George
2014-05-03mingw: Add implementation of realpath()stijn
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.
2014-05-03CPython compatibility: raise an error for operations on a closed file descriptorstijn
In CPython any operations on a file that has been closed already reaises a ValueError with message "I/O operation on closed file"
2014-05-02unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky
2014-05-02py, unix: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky
Specifically, nlr.h does.
2014-05-01py: Add tentative scheme for error messages configuration.Paul Sokolovsky
2014-04-26py: "read" & "write" are so common that make them core.Paul Sokolovsky
Few other strings move to core, but make depend on "io" module.
2014-04-26Add ARRAY_SIZE macro, and use it where possible.Damien George
2014-04-26modsocket: Make .send() support arbitrary objects with buffer interface.Paul Sokolovsky
This is CPython-compliant (except that CPython doesn't support buffer protocol for str).
2014-04-22unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues.Paul Sokolovsky
2014-04-22modsocket: Clean up OSError-like exception a bit.Paul Sokolovsky
Some BSD socket functions don't return error numbers in errno namespace, but rather in other error namespaces. CPython resolves this by using OSError subclasses for them. We don't do that so far, so there's ambiguity here.
2014-04-22unix: OSError's args[0] should be errno numeric value.Paul Sokolovsky
Well, Python3 also defines an attribute for that, but that's bloat.
2014-04-22modffi: Don't use OSError for clearly unrelated errors.Paul Sokolovsky
2014-04-22modffi: Describe typecodes where they differ from used by struct module.Paul Sokolovsky
Exact behavior of typecodes may be not yet enforced.
2014-04-21Merge pull request #513 from errordeveloper/misc_fix/modffi_pkg_configDamien George
modffi: Fix how we call `pkg-config`
2014-04-20unix windows: mingw32 doesn't have realpath(), use _fullpath() instead.Paul Sokolovsky
2014-04-20unix file: mingw32 has STDIN_FILENO and friends in stdio.h .Paul Sokolovsky
TODO: Never "optimize" includes any more!
2014-04-20unix mem_info(): Dump GC info only if it's enabled.Paul Sokolovsky
2014-04-20modsocket: Add setblocking() method.Paul Sokolovsky
2014-04-20modffi: Fix how we call `pkg-config`Ilya Dmitrichenko
2014-04-19modffi: Update for MP_OBJ_STOP_ITERATION refactor.Paul Sokolovsky
2014-04-19modffi: Mark 'p' type spec deprecated, replace with 'P'.Paul Sokolovsky
'p' in struct module is "pascal string". 'P' is void*.
2014-04-18py: Allow to pass buffer protocol flags to get_buffer helper funcs.Damien George
2014-04-18unix: Update to use new buffer protocol interface with typecode.Damien George
2014-04-17py: Rename USE_COMPUTED_GOTOS to USE_COMPUTED_GOTO and enable on stmhal.Damien George
On stmhal, computed gotos make the binary about 1k bigger, but makes it run faster, and we have the room, so why not. All tests pass on pyboard using computed gotos.
2014-04-18unix modffi: Convert to static module structures.Paul Sokolovsky
2014-04-17unix modsocket: Convert to static module structures.Paul Sokolovsky
2014-04-17unix: Make mem_info() dump GC info too.Paul Sokolovsky
mem_info() is already pretty hacky, let it be more hacky.
2014-04-17unix modtime: Convert to static module structures.Paul Sokolovsky
2014-04-17unix modtime: Adhere to MICROPY_ENABLE_FLOAT better.Paul Sokolovsky
2014-04-17build: Simplify build directory layout by putting all headers in genhdr.Damien George
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
2014-04-17Merge branch 'relocatable-build-dir' of github.com:lurch/micropython into ↵Damien George
lurch-relocatable-build-dir
2014-04-17Merge pull request #505 from lurch/patch-5Damien George
Add 'test' target to unix/Makefile
2014-04-17Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-17py: Add cmath module, for complex math. Disabled by default.Damien George
Not all functions implemented. Not enabled on pyboard.
2014-04-17modffi: Support float types.Paul Sokolovsky
2014-04-17Updated the envvar used by ./run-testsAndrew Scheller
As discussed in #504