summaryrefslogtreecommitdiff
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h49
1 files changed, 35 insertions, 14 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 6470cb950..c83b54c24 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -67,9 +67,13 @@ Q(__lt__)
Q(micropython)
Q(bytecode)
+Q(const)
+
+#if MICROPY_EMIT_X64 || MICROPY_EMIT_THUMB
Q(native)
Q(viper)
-Q(const)
+Q(uint)
+#endif
#if MICROPY_EMIT_INLINE_THUMB
Q(asm_thumb)
@@ -136,7 +140,11 @@ Q(calcsize)
Q(chr)
Q(classmethod)
Q(_collections)
+#if MICROPY_PY_BUILTINS_COMPLEX
Q(complex)
+Q(real)
+Q(imag)
+#endif
Q(dict)
Q(dir)
Q(divmod)
@@ -144,7 +152,9 @@ Q(enumerate)
Q(eval)
Q(exec)
Q(filter)
+#if MICROPY_PY_BUILTINS_FLOAT
Q(float)
+#endif
Q(from_bytes)
Q(getattr)
Q(globals)
@@ -175,7 +185,7 @@ Q(print)
Q(range)
Q(read)
Q(repr)
-Q(set)
+Q(reversed)
Q(sorted)
Q(staticmethod)
Q(sum)
@@ -224,20 +234,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)
@@ -267,6 +265,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
@@ -322,9 +336,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)
@@ -438,3 +454,8 @@ Q(getter)
Q(setter)
Q(deleter)
#endif
+
+#if MICROPY_PY_ZLIBD
+Q(zlibd)
+Q(decompress)
+#endif