diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-27 15:10:09 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-27 17:19:06 +1100 |
commit | dcb9ea72157f1d9f3b0dc306c2c31cbd647f5ee1 (patch) | |
tree | 2c93fc3589bb3a5879d24ace7a7e55a124a90db3 /py/lexer.c | |
parent | 32a1138b9f66b76808906064a76c5f9533cc825c (diff) | |
download | micropython-dcb9ea72157f1d9f3b0dc306c2c31cbd647f5ee1.tar.gz micropython-dcb9ea72157f1d9f3b0dc306c2c31cbd647f5ee1.zip |
extmod: Add generic VFS sub-system.
This provides mp_vfs_XXX functions (eg mount, open, listdir) which are
agnostic to the underlying filesystem type, and just require an object with
the relevant filesystem-like methods (eg .mount, .open, .listidr) which can
then be mounted.
These mp_vfs_XXX functions would typically be used by a port to implement
the "uos" module, and mp_vfs_open would be the builtin open function.
This feature is controlled by MICROPY_VFS, disabled by default.
Diffstat (limited to 'py/lexer.c')
-rw-r--r-- | py/lexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c index 458fba0900..e9b571ca40 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -753,7 +753,7 @@ mp_lexer_t *mp_lexer_new_from_str_len(qstr src_name, const char *str, mp_uint_t return mp_lexer_new(src_name, reader); } -#if MICROPY_READER_POSIX || MICROPY_READER_FATFS +#if MICROPY_READER_POSIX || MICROPY_READER_VFS || MICROPY_READER_FATFS mp_lexer_t *mp_lexer_new_from_file(const char *filename) { mp_reader_t reader; |