Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
75ec22bf
Commit
75ec22bf
authored
Aug 12, 2014
by
Damien George
Browse files
py: #if guard qstrs that are optional.
Also disable gc module on bare-arm port.
parent
105e32f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
bare-arm/mpconfigport.h
View file @
75ec22bf
...
...
@@ -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)
...
...
py/qstrdefs.h
View file @
75ec22bf
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment