py: #if guard qstrs that are optional.
Also disable gc module on bare-arm port.
This commit is contained in:
parent
105e32f1a5
commit
75ec22bf11
|
@ -17,6 +17,7 @@
|
|||
#define MICROPY_PY_BUILTINS_SET (0)
|
||||
#define MICROPY_PY_BUILTINS_SLICE (0)
|
||||
#define MICROPY_PY_BUILTINS_PROPERTY (0)
|
||||
#define MICROPY_PY_GC (0)
|
||||
#define MICROPY_PY_ARRAY (0)
|
||||
#define MICROPY_PY_COLLECTIONS (0)
|
||||
#define MICROPY_PY_MATH (0)
|
||||
|
|
|
@ -148,7 +148,9 @@ Q(enumerate)
|
|||
Q(eval)
|
||||
Q(exec)
|
||||
Q(filter)
|
||||
#if MICROPY_PY_BUILTINS_FLOAT
|
||||
Q(float)
|
||||
#endif
|
||||
Q(from_bytes)
|
||||
Q(getattr)
|
||||
Q(globals)
|
||||
|
@ -180,7 +182,6 @@ Q(range)
|
|||
Q(read)
|
||||
Q(repr)
|
||||
Q(reversed)
|
||||
Q(set)
|
||||
Q(sorted)
|
||||
Q(staticmethod)
|
||||
Q(sum)
|
||||
|
@ -229,20 +230,8 @@ Q(reverse)
|
|||
Q(add)
|
||||
Q(clear)
|
||||
Q(copy)
|
||||
Q(discard)
|
||||
Q(difference)
|
||||
Q(difference_update)
|
||||
Q(intersection)
|
||||
Q(intersection_update)
|
||||
Q(isdisjoint)
|
||||
Q(issubset)
|
||||
Q(issuperset)
|
||||
Q(pop)
|
||||
Q(remove)
|
||||
Q(symmetric_difference)
|
||||
Q(symmetric_difference_update)
|
||||
Q(union)
|
||||
Q(update)
|
||||
Q(find)
|
||||
Q(rfind)
|
||||
Q(rindex)
|
||||
|
@ -272,6 +261,22 @@ Q(iterator)
|
|||
Q(module)
|
||||
Q(slice)
|
||||
|
||||
#if MICROPY_PY_BUILTINS_SET
|
||||
Q(discard)
|
||||
Q(difference)
|
||||
Q(difference_update)
|
||||
Q(intersection)
|
||||
Q(intersection_update)
|
||||
Q(isdisjoint)
|
||||
Q(issubset)
|
||||
Q(issuperset)
|
||||
Q(set)
|
||||
Q(symmetric_difference)
|
||||
Q(symmetric_difference_update)
|
||||
Q(union)
|
||||
Q(update)
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_BUILTINS_FROZENSET
|
||||
Q(frozenset)
|
||||
#endif
|
||||
|
@ -327,9 +332,11 @@ Q(polar)
|
|||
Q(rect)
|
||||
#endif
|
||||
|
||||
#if MICROPY_MEM_STATS
|
||||
Q(mem_total)
|
||||
Q(mem_current)
|
||||
Q(mem_peak)
|
||||
#endif
|
||||
|
||||
#if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF && (MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE == 0)
|
||||
Q(alloc_emergency_exception_buf)
|
||||
|
|
Loading…
Reference in New Issue