Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | unix: Use "Ctrl" as a name of the key, not "CTRL". | Paul Sokolovsky | 2015-10-20 |
| | |||
* | libffi: Skip building docs. | Paul Sokolovsky | 2015-10-19 |
| | | | | This requires makeinfo installed and wastes time (especially in CI). | ||
* | unix/modos: Android Bionic lacks statvfs(), has BSD statfs(). | Paul Sokolovsky | 2015-10-19 |
| | |||
* | all: Make netutils.h available to all ports by default. | Paul Sokolovsky | 2015-10-19 |
| | | | | | Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too. | ||
* | unix/modtime: Implement ticks_ms(), ticks_us() and ticks_diff(). | Paul Sokolovsky | 2015-10-19 |
| | | | | | All of these functions return positive small int, thus range is 2 bits less than word size (30 bit on 32-bit systems, 62 bit on 64-bit systems). | ||
* | unix/modtime: Implement sleep_ms(), sleep_us(). | Paul Sokolovsky | 2015-10-19 |
| | |||
* | unix/unix_mphal: Implement HAL_Delay() and HAL_GetTick(). | Paul Sokolovsky | 2015-10-19 |
| | |||
* | unix/modos: Checking config macros requires mpconfig.h. | Paul Sokolovsky | 2015-10-18 |
| | |||
* | unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check. | Paul Sokolovsky | 2015-10-18 |
| | | | | E.g. Windows lacks this header. | ||
* | unix/modos: Add statvfs() function. | Paul Sokolovsky | 2015-10-18 |
| | | | | | | | | | | | Another function (like stat) which is problematic to deal with on ABI level (FFI), as struct statvfs layout may differ unpredictably between OSes and even different versions of a same OS. So, implement it in C, returning a 10-element tuple of f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail, f_flag, f_namemax. This is exactly the order described in Python3 docs, https://docs.python.org/3/library/os.html#os.statvfs (but note that os.statvfs() should make these values available as attributes). | ||
* | unix: Build libffi in a directory which is gitgnored. | Paul Sokolovsky | 2015-10-18 |
| | | | | | To avoid "-dirty" version previous and spurious "modified" output from git status, etc. | ||
* | unix: Fix coverage build now that mp_plat_print uses write. | Damien George | 2015-10-15 |
| | |||
* | py: Remove dependency on printf/fwrite in mp_plat_print. | Damien George | 2015-10-15 |
| | | | | See issue #1500. | ||
* | unix: Allow to build against Android down to 1.5. | Paul Sokolovsky | 2015-10-15 |
| | | | | Bionic libc in Android 1.5 missed log2() and nan() functions. | ||
* | unix/modjni: Add iteration support for Java List objects. | Paul Sokolovsky | 2015-10-14 |
| | | | | | Using generic iteration-via-subscription support (TODO: factor it out for reuse). | ||
* | unix/modjni: call_method: Check for Java exception after method return. | Paul Sokolovsky | 2015-10-14 |
| | |||
* | unix/modtermios: tcsetattr: If 0 passed for "when" param, treat as TCSANOW. | Paul Sokolovsky | 2015-10-13 |
| | | | | | | As we dn't export constants for TCSANOW, etc., zero makes a good "don't care" param, and now it will work also under Android Bionic and any other libc. | ||
* | unix: Add exit and paste-mode hints to shell startup banner. | Damien George | 2015-10-12 |
| | | | | Thanks to @nyov for the initial patch. | ||
* | Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc. | Damien George | 2015-10-12 |
| | |||
* | repl: Add paste mode to friendly REPL, entered via CTRL-E. | Damien George | 2015-10-11 |
| | | | | | | | | Use CTRL-E to enter paste mode. Prompt starts with "===" and accepts all characters verbatim, echoing them back. Only control characters are CTRL-C which cancels the input and returns to normal REPL, and CTRL-D which ends the input and executes it. The input is executed as though it were a file. The input is not added to the prompt history. | ||
* | py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. | Paul Sokolovsky | 2015-10-11 |
| | |||
* | unix/modsocket: Fix usage of pointers to locals outside scope | Anmol Sarma | 2015-10-10 |
| | |||
* | unix/modjni: py2jvalue: Support bool and None values. | Paul Sokolovsky | 2015-10-10 |
| | |||
* | unix/modjni: jvalue2py() is currently not used. | Paul Sokolovsky | 2015-10-09 |
| | | | | Not remove so far, may be needed later. | ||
* | unix/modjni: Allow to access fields of objects. | Paul Sokolovsky | 2015-10-08 |
| | |||
* | unix/modjni: After Call*Method(), Java exception should always be checked. | Paul Sokolovsky | 2015-10-07 |
| | | | | | OpenJDK seemed to return NULL in case of exception, but Dalvik returns arbitrary value, so skip such "optimizations". | ||
* | modussl: SSL socket wrapper module based on axTLS. | Paul Sokolovsky | 2015-10-06 |
| | |||
* | unix: Add support for building axtls dependency lib. | Paul Sokolovsky | 2015-10-04 |
| | |||
* | unix/modjni: jclass.__str__/__repr__: Return Java .toString() value. | Paul Sokolovsky | 2015-10-04 |
| | |||
* | unix/modjni: jobject.__str__/__repr__: Return Java .toString() value. | Paul Sokolovsky | 2015-10-03 |
| | |||
* | unix/modjni: Convert Java's IndexOutOfBoundsException to Python's IndexError. | Paul Sokolovsky | 2015-10-02 |
| | |||
* | py: Allocate parse nodes in chunks to reduce fragmentation and RAM use. | Damien George | 2015-10-02 |
| | | | | | | | | With this patch parse nodes are allocated sequentially in chunks. This reduces fragmentation of the heap and prevents waste at the end of individually allocated parse nodes. Saves roughly 20% of RAM during parse stage. | ||
* | tests: Add further tests for mpz code. | Damien George | 2015-10-01 |
| | |||
* | unix/modjni: Propagate Java exceptions on list access. | Paul Sokolovsky | 2015-10-01 |
| | |||
* | unix/modjni: Fix method argument matching. | Paul Sokolovsky | 2015-09-30 |
| | |||
* | unix/modjni: Implement len() for objects with java.util.List interface. | Paul Sokolovsky | 2015-09-29 |
| | |||
* | unix/modjni: call_method: Delete done local references in loop. | Paul Sokolovsky | 2015-09-28 |
| | | | | To avoid local ref table overflow. | ||
* | unix/modjni: call_method: Better resource release. | Paul Sokolovsky | 2015-09-27 |
| | |||
* | unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method. | Paul Sokolovsky | 2015-09-26 |
| | |||
* | unix/modjni: Need to really use per-rettype Call*Method functions. | Paul Sokolovsky | 2015-09-26 |
| | |||
* | unix/modjni: new_jobject(): Handle null reference. | Paul Sokolovsky | 2015-09-24 |
| | |||
* | unix/modjni: Factor out is_object_type(). | Paul Sokolovsky | 2015-09-23 |
| | |||
* | unix/modffi.c: cast first to intptr_t when casting from/to pointer | Vicente Olivert Riera | 2015-09-22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes errors like these ones: modffi.c: In function 'return_ffi_value': modffi.c:143:29: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] const char *s = (const char *)val; ^ modffi.c:162:20: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return (mp_obj_t)val; ^ modffi.c: In function 'ffifunc_call': modffi.c:358:25: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] values[i] = (ffi_arg)a; ^ modffi.c:373:25: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] values[i] = (ffi_arg)s; ^ modffi.c:381:25: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] values[i] = (ffi_arg)bufinfo.buf; ^ modffi.c:384:25: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] values[i] = (ffi_arg)p->func; ^ These errors can be highlighted when building micropython from MIPS64 n32 because ffi_arg is 64-bit wide and the pointers on MIPS64 n32 are 32-bit wide, so it's trying to case an integer to a pointer (or vice-versa) of a different size. We should cast first the pointer (or the integer) to a pointer sized integer (intptr_t) to fix that problem. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> | ||
* | unix/modjni: Move type analysis logic to new_jobject(), for reuse. | Paul Sokolovsky | 2015-09-22 |
| | |||
* | unix/modjni: Support for subscripting of Java lists (r/o so far). | Paul Sokolovsky | 2015-09-21 |
| | |||
* | unix/modjni: jvalue2py: Handle boolean. | Paul Sokolovsky | 2015-09-20 |
| | |||
* | unix: Use MICROPY_HAL_H macro for header inclusion. | Alex March | 2015-09-19 |
| | | | | | Follow the same format as other ports using the macro to include the HAL header. | ||
* | unix/modjni: py2jvalue: Pass jobject's down to Java. | Paul Sokolovsky | 2015-09-19 |
| | | | | So far, no signature check is done (TODO). | ||
* | unix/modjni: py2jvalue: Handle both int and long java types (with TODO for ↵ | Paul Sokolovsky | 2015-09-18 |
| | | | | long). | ||
* | unix/modjni: jvalue2py: Handle class-containing jvalues. | Paul Sokolovsky | 2015-09-17 |
| |