- 30 Jan, 2017 2 commits
-
-
Damien George authored
-
Damien George authored
Replaced by MICROPY_VFS and the VFS sub-system.
-
- 27 Jan, 2017 1 commit
-
-
Damien George authored
And move declaration of mp_fat_vfs_type to this file.
-
- 21 Oct, 2016 1 commit
-
-
Damien George authored
In order to have more fine-grained control over how builtin functions are constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific, with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now match the MP_DEFINE_CONST_FUN_OBJ macros.
-
- 07 Oct, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 21 Sep, 2016 1 commit
-
-
Damien George authored
One can instead lookup __name__ in the modules dict to get the value.
-
- 14 Feb, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 11 Jan, 2016 1 commit
-
-
Damien George authored
With this patch the n_args parameter is changed type from mp_uint_t to size_t.
-
- 01 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
That's just function which sets/gets dup terminal object, and can be easily reused across ports.
-
- 27 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 16 Dec, 2015 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Ports will need to #define _DIRENT_HAVE_D_INO (0) to disable d_ino use.
-
- 15 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 14 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
ilistdir() returns iterator which yields triples of (name, type, ino) where ino is inode number for entry's data, type of entry (file/dir/etc.), and name of file/dir. listdir() can be easily implemented in terms of this iterator (which is otherwise more efficient in terms of memory use and may save expensive call to stat() for each returned entry). CPython has os.scandir() which also returns an iterator, but it yields more complex objects of DirEntry type. scandir() can also be easily implemented in terms of ilistdir().
-
- 11 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 29 Nov, 2015 2 commits
-
-
Damien George authored
This allows the mp_obj_t type to be configured to something other than a pointer-sized primitive type. This patch also includes additional changes to allow the code to compile when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of mp_uint_t, and various casts.
-
Damien George authored
-
- 26 Nov, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 14 Nov, 2015 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 13 Nov, 2015 2 commits
-
-
Paul Sokolovsky authored
Dependency of upip.
-
Paul Sokolovsky authored
Dependency of upip.
-
- 19 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 18 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 17 Oct, 2015 2 commits
-
-
Paul Sokolovsky authored
E.g. Windows lacks this header.
-
Paul Sokolovsky authored
Another function (like stat) which is problematic to deal with on ABI level (FFI), as struct statvfs layout may differ unpredictably between OSes and even different versions of a same OS. So, implement it in C, returning a 10-element tuple of f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail, f_flag, f_namemax. This is exactly the order described in Python3 docs, https://docs.python.org/3/library/os.html#os.statvfs (but note that os.statvfs() should make these values available as attributes).
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 23 Dec, 2014 1 commit
-
-
Paul Sokolovsky authored
system() is the basic function to support automation of tasks, so have it available builtin, for example, for bootstrapping rest of micropython environment.
-
- 10 Dec, 2014 1 commit
-
-
Nikita Nazarenko authored
-
- 29 Nov, 2014 1 commit
-
-
Damien George authored
This is just a clean-up of the code. Generated code is exactly the same.
-
- 30 Aug, 2014 1 commit
-
-
Damien George authored
Part of code cleanup, working towards resolving issue #50.
-
- 31 Jul, 2014 1 commit
-
-
Damien George authored
Addresses issue #724.
-
- 03 Jul, 2014 1 commit
-
-
Damien George authored
See discussion in issue #50.
-
- 28 Jun, 2014 1 commit
-
-
stijn authored
This fixes count_lead_ones in misc.h not compiling due to unknown types
-
- 19 Jun, 2014 1 commit
-
-
Emmanuel Blot authored
-
- 07 Jun, 2014 1 commit
-
-
Marcus von Appen authored
cast error in MP_OBJ_NEW_SMALL_INT(). This is necessary for FreeBSD, where st_ino is of different size - If MP_CLOCKS_PER_SEC is defined on the target host, simply define CLOCK_DIV as a fraction, regardless of the value of MP_CLOCKS_PER_SEC. FreeBSD uses a non-POSIX compliant value of 128 for CLOCKS_PER_SEC
-
- 25 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 21 May, 2014 1 commit
-
-
Damien George authored
-