summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py: Improve exception bases, reduces ROM usage.Damien George2014-02-15
| | | | Thanks to @pfalcon for the tip!
* py: Pass all scope flags through to runtime.Damien George2014-02-15
|
* Implement proper exception type hierarchy.Damien George2014-02-15
| | | | | | | | | | | | | | Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
* Change mp_obj_type_t.name from const char * to qstr.Damien George2014-02-15
| | | | | | Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
* Add testcase for failing namespace switch throwing exception from a module.Paul Sokolovsky2014-02-15
| | | | Issue #290. This currently fails, to draw attention to the issue.
* Merge pull request #291 from GordonMcGregor/osx_buildDamien George2014-02-14
|\ | | | | OS X compatible -map syntax for LDFLAGS
| * OS X compatible -map syntax for LDFLAGSGordon McGregor2014-02-14
| |
* | py: Fix IMPORT_STAR, needs to pop the stack.Damien George2014-02-14
| |
* | Merge pull request #288 from pfalcon/port-builtinsDamien George2014-02-14
|\ \ | | | | | | Allow ports to define statically builtin functions.
| * | Allow ports to define statically builtin functions.Paul Sokolovsky2014-02-14
| | | | | | | | | | | | Convert unix open() to such.
* | | Merge pull request #282 from pfalcon/from-starDamien George2014-02-14
|\ \ \ | |_|/ |/| | Implement "from mod import *"
| * | Add testcase for "from module import *".Paul Sokolovsky2014-02-14
| | |
| * | Add testcase for "from module import sym".Paul Sokolovsky2014-02-14
| | |
| * | Implement "from module import *" construct.Paul Sokolovsky2014-02-14
| | |
* | | mp_binary_get_val(): Fix value type.Paul Sokolovsky2014-02-15
| | |
* | | objexcept: Fix a case of initialized object field.Paul Sokolovsky2014-02-15
| | |
* | | objarray: Refactor to use array accessors from binary.c .Paul Sokolovsky2014-02-14
| | |
* | | ffi: Implement ffivar.get()/set() methods.Paul Sokolovsky2014-02-14
| |/ |/| | | | | | | Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
* | stm: If SD card inserted on hard reset, it is the medium for USB MSD.Damien George2014-02-13
|/
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-12
|\
| * Implement full arg handling for exec().Paul Sokolovsky2014-02-13
| |
* | Remove mp_obj_new_exception_msg_1_arg and _2_arg.Damien George2014-02-12
|/
* stm: Copy COPT style from unix port.Damien George2014-02-12
|
* Merge pull request #279 from pfalcon/make-coptDamien George2014-02-12
|\ | | | | unix Makefile: Split off optimization options to COPT variable.
| * unix Makefile: Split off optimization options to COPT variable.Paul Sokolovsky2014-02-12
|/ | | | | To allow easily try different optimization and configuration options without patching any files.
* Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky2014-02-12
|
* Replace global "static" -> "STATIC", to allow "analysis builds". Part 1.Paul Sokolovsky2014-02-12
| | | | | | | | Some tools do not support local/static symbols (one example is GNU ld map file). Exposing all functions will allow to do detailed size comparisons, etc. Also, added bunch of statics where they were missing, and replaced few identity functions with global mp_identity().
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-11
|\
| * Add prototype for gc_dump_info().Paul Sokolovsky2014-02-11
| |
* | stm: Add specific UINT_FMT and INT_FMT.Damien George2014-02-11
|/ | | | | For some reason, STM port, while it's 32 bit, needs %lu and %ld for printing machine_uint_t and machine_int_t.
* Merge pull request #278 from pfalcon/unix-gcDamien George2014-02-11
|\ | | | | Enable GC for Unix port
| * More GC debugging improvements.Paul Sokolovsky2014-02-11
| |
| * stm: Provide malloc()/realloc()/free(), as forwarding to gc_*() functions.Paul Sokolovsky2014-02-11
| | | | | | | | | | | | Note: none of these functions are used by STM port, so they're provided to have parity with pre gc refactor status quo, and in case they will be needed in the future by some extension writers.
| * unix: Implement garbage collection support.Paul Sokolovsky2014-02-11
| |
| * Generalize malloc-via-gc-heap support, make it available to unix port.Paul Sokolovsky2014-02-11
| |
* | Merge pull request #277 from pfalcon/link-mapDamien George2014-02-11
|\ \ | | | | | | Enable link map file generation.
| * | Enable link map file generation.Paul Sokolovsky2014-02-11
| | |
* | | Merge pull request #276 from dhylands/cleanup-warningsDamien George2014-02-11
|\ \ \ | |_|/ |/| | Bah - Removed a couple of warnings for teensy that I didn't notice before.
| * | Bah - Removed a couple of warnings for teensy that I didn't notice before.Dave Hylands2014-02-10
| | |
* | | basics/enumerate.py: Don't turn enumerate test into heap test.Paul Sokolovsky2014-02-11
| | | | | | | | | | | | With range(10000), doesn't fit into 128K heap.
* | | objstr: Mark few local symbols as static, cleanup codestyle.Paul Sokolovsky2014-02-11
| | | | | | | | | | | | Please don't submit patches with tab indentation!
* | | gc: Don't segfault if gc_realloc() fails.Paul Sokolovsky2014-02-11
| |/ |/|
* | Rename str_join -> strjoin to make it not clash with objstr's one.Paul Sokolovsky2014-02-11
|/
* gc: Make debug output configurable, revamp test function.Paul Sokolovsky2014-02-11
| | | | | Test function needs to be called by something else. Test heap size reduced so its dump fits on a screenful of a typical terminal.
* mp_obj_equal(): Instead of assert(), throw NotImplementedError.Paul Sokolovsky2014-02-11
| | | | With a nice traceback, helps debugging much better.
* Typo fix in comment.Paul Sokolovsky2014-02-11
|
* stm: Remove unused, useless and not-to-be-used strndup.Damien George2014-02-10
| | | | Addresses issue #275.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-10
|\
| * Merge pull request #271 from dhylands/teensy-2014-02-10Damien George2014-02-10
| |\ | | | | | | Updated teensy to work with latest on master
| | * Updated teensy to work with latest on masterDave Hylands2014-02-10
| | | | | | | | | | | | Added analogRead, analogWriteXxx and servo support for teensy.