Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py, unix: Allow to compile with -Wunused-parameter. | Damien George | 2015-01-20 |
| | | | | See issue #699. | ||
* | unix: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | py: Move to guarded includes, everywhere in py/ core. | Damien George | 2015-01-01 |
| | | | | Addresses issue #1022. | ||
* | py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. | Damien George | 2014-12-05 |
| | | | | | | | | | | | mp_obj_int_get_truncated is used as a "fast path" int accessor that doesn't check for overflow and returns the int truncated to the machine word size, ie mp_int_t. Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word sized values. Addresses issues #779 and #998. | ||
* | Use MP_DEFINE_CONST_DICT macro to define module dicts. | Damien George | 2014-11-29 |
| | | | | | This is just a clean-up of the code. Generated code is exactly the same. | ||
* | Implement kwargs for builtin open() and _io.FileIO | stijn | 2014-10-21 |
| | | | | | | | This makes open() and _io.FileIO() more CPython compliant. The mode kwarg is fully iplemented. The encoding kwarg is allowed but not implemented; mainly to allow the tests to specify encoding for CPython, see #874 | ||
* | unix, stmhal: Implement file.readinto() method. | Paul Sokolovsky | 2014-10-18 |
| | | | | | | Also, usocket.readinto(). Known issue is that .readinto() should be available only for binary files, but micropython uses single method table for both binary and text files. | ||
* | unix: Rename "microsocket" module to "usocket". | Paul Sokolovsky | 2014-10-09 |
| | | | | | | Per new conventions, we'd like to consistently use "u*" naming conventions for modules which don't offer complete CPython compatibility, while offer subset or similar API. | ||
* | unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning. | Damien George | 2014-09-06 |
| | | | | | | | | | | For the sake of older versions of gcc (and other compilers), don't use the #warning CPP directive, nor the -Wno-error=cpp option. Also, fix a strict alias warning in modffi.c for older compilers, and add a test for ffi module. Addresses issue #847. | ||
* | Change some parts of the core API to use mp_uint_t instead of uint/int. | Damien George | 2014-08-30 |
| | | | | Addressing issue #50, still some way to go yet. | ||
* | modsocket: .recv() returns bytes object. | Paul Sokolovsky | 2014-08-10 |
| | |||
* | py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. | Damien George | 2014-07-31 |
| | | | | Addresses issue #724. | ||
* | py: Change stream protocol API: fns return uint; is_text for text. | Damien George | 2014-07-27 |
| | |||
* | Rename machine_(u)int_t to mp_(u)int_t. | Damien George | 2014-07-03 |
| | | | | See discussion in issue #50. | ||
* | modsocket: Fix uClibc detection. | Paul Sokolovsky | 2014-06-24 |
| | |||
* | modsocket: Workaround uClibc issue with numeric port for getaddrinfo(). | Paul Sokolovsky | 2014-06-22 |
| | | | | | It sucks to workaround this on uPy side, but upgrading not upgradable embedded systems sucks even more. | ||
* | modsocket: Add call to freeaddrinfo(). | Paul Sokolovsky | 2014-06-22 |
| | |||
* | Prefix ARRAY_SIZE with micropython prefix MP_ | Emmanuel Blot | 2014-06-19 |
| | |||
* | - FreeBSD provides alloca() via stdlib.h, in contrast to Linux and Windows | Marcus von Appen | 2014-06-07 |
| | | | | - Move the includes for alloca() intp mpconfigport.h | ||
* | modsocket: Add some comments on intended usage/API design of module. | Paul Sokolovsky | 2014-05-31 |
| | |||
* | modsocket: Remove stale ifdef. | Paul Sokolovsky | 2014-05-31 |
| | |||
* | Change const byte* to const char* where sensible. | Damien George | 2014-05-25 |
| | | | | | This removes need for some casts (at least, more than it adds need for new casts!). | ||
* | modsocket: 64-bit cleanness. | Paul Sokolovsky | 2014-05-24 |
| | |||
* | unix modsocket: Make .makefile() method more compliant. | Paul Sokolovsky | 2014-05-24 |
| | | | | | .makefile() should allow to specify which stream time to create - byte or text. | ||
* | Merge pull request #607 from Anton-2/osx-clang | Damien George | 2014-05-21 |
|\ | | | | | Allow compilation of unix port under clang on OS X | ||
| * | Fix some unused variables, and silence a clang warning about initialization ↵ | Antonin ENFRUN | 2014-05-12 |
| | | | | | | | | override in vmentrytable.h | ||
* | | py, unix: Add copyright for modules I worked closely on. | Paul Sokolovsky | 2014-05-13 |
|/ | |||
* | unix modsocket: Add comments re: recv() vs read(), etc. semantics. | Paul Sokolovsky | 2014-05-07 |
| | |||
* | Add license header to (almost) all files. | Damien George | 2014-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/. | ||
* | unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it. | Paul Sokolovsky | 2014-05-02 |
| | |||
* | Add ARRAY_SIZE macro, and use it where possible. | Damien George | 2014-04-26 |
| | |||
* | modsocket: Make .send() support arbitrary objects with buffer interface. | Paul Sokolovsky | 2014-04-26 |
| | | | | | This is CPython-compliant (except that CPython doesn't support buffer protocol for str). | ||
* | unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues. | Paul Sokolovsky | 2014-04-22 |
| | |||
* | modsocket: Clean up OSError-like exception a bit. | Paul Sokolovsky | 2014-04-22 |
| | | | | | | 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. | ||
* | unix: OSError's args[0] should be errno numeric value. | Paul Sokolovsky | 2014-04-22 |
| | | | | Well, Python3 also defines an attribute for that, but that's bloat. | ||
* | modsocket: Add setblocking() method. | Paul Sokolovsky | 2014-04-20 |
| | |||
* | py: Allow to pass buffer protocol flags to get_buffer helper funcs. | Damien George | 2014-04-18 |
| | |||
* | unix: Update to use new buffer protocol interface with typecode. | Damien George | 2014-04-18 |
| | |||
* | unix modsocket: Convert to static module structures. | Paul Sokolovsky | 2014-04-17 |
| | |||
* | py: Add mp_get_buffer(), mp_get_buffer_raise() convenience functions to API. | Paul Sokolovsky | 2014-04-09 |
| | |||
* | py: Replace stream_p with *stream_p in mp_obj_type_t. | Damien George | 2014-04-05 |
| | | | | | | | | This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/. | ||
* | py: Change nlr_jump to nlr_raise, to aid in debugging. | Damien George | 2014-04-05 |
| | | | | | | This does not affect code size or performance when debugging turned off. To address issue #420. | ||
* | unix: Rename module sources per latest naming conventions (mod*.c). | Paul Sokolovsky | 2014-04-04 |