diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-04-04 22:04:53 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-04-04 22:04:53 +0100 |
| commit | 7e758b1cf878312cab5d9d2825b36e7235ea10a3 (patch) | |
| tree | 068970a7a6787c5800f3adab8afe227d9b59c6b6 /qemu-arm | |
| parent | b9d850227dabb628e0f75c8d3c7b5160e2cc2083 (diff) | |
stmhal, qemu-arm: Enable sys.maxsize attribute.
Diffstat (limited to 'qemu-arm')
| -rw-r--r-- | qemu-arm/mpconfigport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-arm/mpconfigport.h b/qemu-arm/mpconfigport.h index a9f98e5ce..38ea2f7c3 100644 --- a/qemu-arm/mpconfigport.h +++ b/qemu-arm/mpconfigport.h @@ -19,6 +19,7 @@ #define MICROPY_PY_BUILTINS_MEMORYVIEW (1) #define MICROPY_PY_IO (0) #define MICROPY_PY_SYS_EXIT (1) +#define MICROPY_PY_SYS_MAXSIZE (1) // type definitions for the specific machine @@ -26,6 +27,8 @@ #define MICROPY_MAKE_POINTER_CALLABLE(p) ((void*)((mp_uint_t)(p) | 1)) +#define MP_SSIZE_MAX (0x7fffffff) + #define UINT_FMT "%lu" #define INT_FMT "%ld" |
