- 05 Jun, 2014 1 commit
-
-
Chris Angelico authored
-
- 25 May, 2014 1 commit
-
-
Damien George authored
This removes need for some casts (at least, more than it adds need for new casts!).
-
- 24 May, 2014 1 commit
-
-
Damien George authored
Addresses issue #598.
-
- 19 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 May, 2014 1 commit
-
-
Antonin ENFRUN authored
Fix some unused variables, and silence a clang warning about initialization override in vmentrytable.h
-
- 11 May, 2014 1 commit
-
-
Damien George authored
Likely there are other functions that should be renamed, but this is a start.
-
- 03 May, 2014 1 commit
-
-
Damien George authored
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/.
-
- 02 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Specifically, nlr.h does.
-
- 01 May, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This is ugly, just as expected.
-
- 23 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
To avoid pointer-to-field GC problem.
-
- 21 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 10 Apr, 2014 2 commits
-
-
Damien George authored
Previously, a failed malloc/realloc would throw an exception, which was not caught. I think it's better to keep the parser free from NLR (exception throwing), hence this patch.
-
Damien George authored
-
- 05 Apr, 2014 1 commit
-
-
Damien George authored
This does not affect code size or performance when debugging turned off. To address issue #420.
-
- 04 Apr, 2014 1 commit
-
-
Damien George authored
A malloc/realloc fail now throws MemoryError.
-
- 30 Mar, 2014 3 commits
-
-
Paul Sokolovsky authored
One of the reason for separate "message" (besides still unfulfilled desire to optimize memory usage) was apparent special handling of exception with messages by CPython. Well, the message is still just an exception argument, it just printed specially. Implement that with PRINT_EXC printing format.
-
Damien George authored
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
-
Paul Sokolovsky authored
-
- 29 Mar, 2014 1 commit
-
-
Damien George authored
Addresses issue #388.
-
- 28 Mar, 2014 1 commit
-
-
Paul Sokolovsky authored
To comply with Python semantics and allow use of mp_obj_is_subclass_fast() for exception matching.
-
- 27 Mar, 2014 1 commit
-
-
Damien George authored
Only exceptions that are actually used are left prefedined. Hierarchy is still there, and removed exceptions are just commented out.
-
- 26 Mar, 2014 3 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
This gets "value" of exceptions in the sense as it's defined for StopIteration.value (i.e. args[0] or None). TODO: This really should be inline function.
-
Paul Sokolovsky authored
Return with value gets converted to StopIteration(value). Implementation keeps optimizing against creating of possibly unneeded exception objects, so there're considerable refactoring to implement these features.
-
- 25 Mar, 2014 1 commit
-
-
Damien George authored
They still exist in commented-out form in objexcept.c if they are ever needed.
-
- 24 Mar, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 22 Mar, 2014 2 commits
-
-
Damien George authored
-
Rachel Dowdall authored
Added exception hierarchy except for OSError and UnicodeError (requires arguments). Comment out the errors that aren't needed if memory becomes an issue.
-
- 20 Mar, 2014 1 commit
-
-
Rachel Dowdall authored
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 09 Mar, 2014 1 commit
-
-
Damien George authored
-
- 15 Feb, 2014 5 commits
-
-
Damien George authored
Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
-
Paul Sokolovsky authored
First arg is not alloc size, but real size, so if used as mp_obj_new_list(3, NULL), need to store items, not append.
-
Damien George authored
Thanks to @pfalcon for the tip!
-
Damien George authored
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.
-
Damien George authored
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.
-
- 14 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Feb, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
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().
-