aboutsummaryrefslogtreecommitdiff
path: root/windows
AgeCommit message (Collapse)Author
2014-05-03windows: alloca.h: Add comment, fix line endings.Paul Sokolovsky
2014-05-03Merge pull request #552 from stinos/mingw-allocaPaul Sokolovsky
py: Use <alloca.h> for alloca()
2014-05-03mingw: Add 'open' as extra builtin and add define MICROPY_MOD_SYS_STDFILESstijn
This one was probable missed when creating mpconfigport.h, but the underlying code (file.c) gets compiled and works perfectly so no reason to omit it.
2014-05-03py: Use <alloca.h> for alloca()stijn
alloca() is declared in alloca.h which als happens to be included by stdlib.h. On mingw however it resides in malloc.h only. So if we include alloca.h directly, and add an alloca.h for mingw in it's port directory we can get rid of the mingw-specific define to include malloc.h and the other ports are happy as well.
2014-04-23windows/README: Use CROSS_COMPILE instead of CC to cover other tools too.Paul Sokolovsky
Suggested by @lurch.
2014-04-20windows: Add README with basic cross-compile instructions.Paul Sokolovsky
2014-04-20windows: Unbreak mingw32 build (cross-compiling under Linux).Paul Sokolovsky
2014-04-17build: Simplify build directory layout by putting all headers in genhdr.Damien George
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
2014-04-16build directory can now be renamedAndrew Scheller
The autogenerated header files have been moved about, and an extra include dir has been added, which means you can give a custom BUILD=newbuilddir option to make, and everything "just works" Also tidied up the way the different Makefiles build their include- directory flags
2014-04-08windows: Use most of the source files from unix/ port.Damien George
To keep it maintainable, windows port now uses as much as possible from unix port. Maybe could even use mpconfigport.h.
2014-04-08Improve REPL detecting when input needs to continue.Damien George
Full CPython compatibility with this requires actually parsing the input so far collected, and if it fails parsing due to lack of tokens, then continue collecting input. It's not worth doing it this way. Not having compatibility at this level does not hurt the goals of Micro Python.
2014-04-08unix, windows: There's no "help" builtin.Paul Sokolovsky
2014-04-07Add uPy welcome message to UNIX and Windows ports; update Teensy port.Damien George
Partly addresses issue #154.
2014-04-07windows: Make it compile with latest changes to py core.Damien George
2014-03-31py: Remove old "run time" functions that were 1 liners.Damien George
2014-03-30Rename rt_* to mp_*.Damien George
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.
2014-03-26Change mp_method_t.name from const char * to qstr.Damien George
Addresses issue #377.
2014-03-13windows: Change MICROPY_FLOAT config to new scheme.Damien George
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-15Change mp_obj_type_t.name from const char * to qstr.Damien George
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.
2014-02-04Use qstr id to create sys module.Paul Sokolovsky
2014-01-30windows: Make windows/main.c independent from unix/main.cMarkus Siemens
Up to know changes unix/main.c were able to break the windows build because windows/main.c simply included unix/main.c. Now windows/main.c stands on it's own and won't break if unix/main.c changes.
2014-01-28Added Windows port (see #233)Markus Siemens