summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-11-16 16:04:57 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-16 18:13:50 +1100
commit6b239c271c9c7041f9741c2a0f348f350808ad8a (patch)
tree32f8c5a9a114d2149409d020c889a8dc2b16a03b /unix
parent6810f2c134f9329e9dc18f4e0d3a1936ca6d8011 (diff)
downloadmicropython-6b239c271c9c7041f9741c2a0f348f350808ad8a.tar.gz
micropython-6b239c271c9c7041f9741c2a0f348f350808ad8a.zip
py: Factor out persistent-code reader into separate files.
Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file.
Diffstat (limited to 'unix')
-rw-r--r--unix/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index f4f8d2d208..86e460566d 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -54,6 +54,7 @@
// Printing debug to stderr may give tests which
// check stdout a chance to pass, etc.
#define MICROPY_DEBUG_PRINTER_DEST mp_stderr_print
+#define MICROPY_READER_POSIX (1)
#define MICROPY_USE_READLINE_HISTORY (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_REPL_EMACS_KEYS (1)