aboutsummaryrefslogtreecommitdiff
path: root/windows
AgeCommit message (Collapse)Author
2014-11-17ports: Define mp_off_t.Paul Sokolovsky
2014-10-29Add -Wpointer-arith flag to prevent problems with pointer arithmetic on void*stijn
2014-10-13windows: Enable moduzlib instead of modzlibd.Paul Sokolovsky
2014-10-06windows: mingw32 gcc doesn't define endianness macros, so just assume little.Paul Sokolovsky
Specifically, at least Ubuntu's i586-mingw32msvc-gcc doesn't supply __LITTLE_ENDIAN__ and friends. And as it's safe enough to assume that Windows is only little-endian, then it's defined unconditionally, instead of duplicating detection logic in py/mpconfig.h (or adding windows-specific defines to it).
2014-10-04Enable unicode for Windows port so unicode tests give correct uPy outputstijn
2014-09-22windows: Enable input(), sys.maxsize(), ujson module, emergency exception ↵stijn
buf, os module
2014-09-02msvc: Exclude modtermios, include extmod and fix compilation errorstijn
2014-08-24py: Fix bug where GC collected native/viper/asm function data.Damien George
Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820.
2014-08-13msvc: Use built-in alignofstijn
This also fixes a 'unnamed type definition in parentheses' warning on the alignof implementation define in binary.c
2014-07-03Rename machine_(u)int_t to mp_(u)int_t.Damien George
See discussion in issue #50.
2014-06-29windows: Sync mpconfigport.h with the unix' versionstijn
- rearrange/add definitions that were not there so it's easier to compare both - use MICROPY_PY_SYS_PLATFORM in main.c since it's available anyway - define EWOULDBLOCK, it is missing from ingw32
2014-06-22windows: Enable GC and implement bss start and end symbolsstijn
The pointers to the bss section are acquired in init.c() by inspecting the PE header. Works for msvc and mingw.
2014-06-08windows: Move include of malloc.h outside #ifdef msvc.Damien George
2014-06-08Provide definition of alloca() in mpconfigport.h.Damien George
2014-06-07- FreeBSD provides alloca() via stdlib.h, in contrast to Linux and WindowsMarcus von Appen
- Move the includes for alloca() intp mpconfigport.h
2014-06-01Rename bultins config variables to MICROPY_PY_BUILTINS_*.Damien George
This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion.
2014-05-28msvc: Only update generated headers when there are changesstijn
This fixes generating the headers casuing complete rebuilds, even when the headere's content didn't really change.
2014-05-27windows: Complete rename of MICROPY_PATH_MAX to MICROPY_ALLOC_PATH_MAX (58ebde4)stijn
2014-05-24Rename configuration variables controling Python features.Damien George
Now of the form MICROPY_PY_*. See issue #35.
2014-05-21Tidy up some configuration options.Damien George
MP_ALLOC_* -> MICROPY_ALLOC_* MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX MICROPY_EXTRA_* -> MICROPY_PORT_* See issue #35.
2014-05-20windows: Fix compilation with mingw-w64 so it uses correct printf ↵stijn
implementations Without this flag, mingw-w64 uses the MS implementations of snpintf and the likes. This is not really a problem since they work with the the fixes provided for msvc, but due to the way mingw-w64's stdio.h is structured we cannot get it to use the fixes.
2014-05-11windows: Enable frozen set and sys.exitstijn
2014-05-10mingw: Fix compilation issuesstijn
- use lowercase windows.h - fix for mingw32 using preprocessor-unfriendly definition of CLOCKS_PER_SEC
2014-05-09windows: Add modtime implementationstijn
2014-05-08Windows MSVC portstijn
Extend the windows port so it compiles with the toolchain from Visual Studio 2013
2014-05-07windows: Fix input.c missing in Makefile after changes for #582stijn
2014-05-07windows: Enable math modulestijn
2014-05-03Add license header to (almost) all files.Damien George
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/.
2014-05-03windows: Argument to () function should be (void).Damien George
2014-05-03mingw: Fix number of exponent digits in floating point formattingstijn
By default mingw outputs 3 digits instead of the standard 2 so all float tests using printf fail. Using setenv at the start of the program fixes this. To accomodate calling platform specific initialization a MICROPY_MAIN_INIT_FUNC macro is used which is called in mp_init()
2014-05-03mingw: Add implementation of realpath()stijn
The mingw port used _fullpath() until now, but the behaviour is not exactly the same as realpath()'s on unix; major difference being that it doesn't return an error for non-existing files, which would bypass main's error checking and bail out without any error message. Also realpath() will return forward slashes only since main() relies on that.
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.