aboutsummaryrefslogtreecommitdiff
path: root/py/mpconfig.h
AgeCommit message (Collapse)Author
2014-02-15Implement proper exception type hierarchy.Damien George
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.
2014-02-14Allow ports to define statically builtin functions.Paul Sokolovsky
Convert unix open() to such.
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 1.Paul Sokolovsky
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().
2014-02-06Implement fixed buffer vstrs; use them for import path.Damien George
2014-01-29py: Add compile option to enable/disable source line numbers.Damien George
2014-01-19py: Add module/function/class name to exceptions.Damien George
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
2014-01-16Add empty "micropython" module to allow more seamless CPython portability.Paul Sokolovsky
Implicit "micropython" module contains (at least) codegeneration decorators. Make it explicit, so an app could have "import micropython". On MicroPython, that will be no-op. On CPython, that will give a chance to have a module with placeholder decorators.
2014-01-13Cleanup built-ins, and fix some compiler warnings/errors.Damien George
2014-01-12Add framework to support alternative implementations of long int Python type.Paul Sokolovsky
2014-01-12Add WORD_MSBIT_HIGH define - machine_int_t with the highest bit set.Paul Sokolovsky
2014-01-12Move BITS_PER_BYTE, BITS_PER_WORD to mpconfig.h for reuse.Paul Sokolovsky
2014-01-07Factor and simplify Makefile's and mpconfig, part 2.Damien George
2014-01-07Factor and simplify Makefile's and mpconfig.Damien George
2014-01-04Enable slice support in config.Paul Sokolovsky
2014-01-04Move INT_FMT, etc. declaration into global mpconfig.h .Paul Sokolovsky
This in particular makes it available for stm port.
2014-01-03Rename default config file to mpconfig.h, and port's to mpconfigport.h.Paul Sokolovsky
mpconfig.h will automatically pull mpconfigport.h.