diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-06 21:11:19 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-06 21:11:19 +0000 |
commit | 354d15a964474b0ced060abfbb8f889be8ce8efd (patch) | |
tree | 75fda8eda709fa29bc0d649967119653f4fe71d7 /py/mpconfig.h | |
parent | 64131f321544a28a193e54b1241c8d2efc9ae313 (diff) | |
download | micropython-354d15a964474b0ced060abfbb8f889be8ce8efd.tar.gz micropython-354d15a964474b0ced060abfbb8f889be8ce8efd.zip |
Implement fixed buffer vstrs; use them for import path.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 38b74b733a..799c9d8e71 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -101,6 +101,12 @@ typedef long long mp_longint_impl_t; #define MICROPY_CPYTHON_COMPAT (1) #endif +// Maximum length of a path in the filesystem +// So we can allocate a buffer on the stack for path manipulation in import +#ifndef MICROPY_PATH_MAX +#define MICROPY_PATH_MAX (512) +#endif + /*****************************************************************************/ /* Miscellaneous settings */ |