summaryrefslogtreecommitdiffstatshomepage
path: root/examples
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-08-18 15:01:26 +1000
committerJim Mussared <jim.mussared@gmail.com>2023-06-08 17:54:11 +1000
commitf5f9edf6457624bf32e71b0c2fdcfbfa5d5753a6 (patch)
treea8cce3668eed96ebb39abe626c6a8a52d5787f34 /examples
parent7f5d5c72718af773db751269c6ae14037b9c0727 (diff)
downloadmicropython-f5f9edf6457624bf32e71b0c2fdcfbfa5d5753a6.tar.gz
micropython-f5f9edf6457624bf32e71b0c2fdcfbfa5d5753a6.zip
all: Rename UMODULE to MODULE in preprocessor/Makefile vars.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/natmod/uheapq/uheapq.c2
-rw-r--r--examples/natmod/urandom/urandom.c6
-rw-r--r--examples/natmod/ure/ure.c8
-rw-r--r--examples/natmod/uzlib/uzlib.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/examples/natmod/uheapq/uheapq.c b/examples/natmod/uheapq/uheapq.c
index ff70bef479..e339ccafd7 100644
--- a/examples/natmod/uheapq/uheapq.c
+++ b/examples/natmod/uheapq/uheapq.c
@@ -1,4 +1,4 @@
-#define MICROPY_PY_UHEAPQ (1)
+#define MICROPY_PY_HEAPQ (1)
#include "py/dynruntime.h"
diff --git a/examples/natmod/urandom/urandom.c b/examples/natmod/urandom/urandom.c
index 0c4e88c77e..ed46651b34 100644
--- a/examples/natmod/urandom/urandom.c
+++ b/examples/natmod/urandom/urandom.c
@@ -1,5 +1,5 @@
-#define MICROPY_PY_URANDOM (1)
-#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)
+#define MICROPY_PY_RANDOM (1)
+#define MICROPY_PY_RANDOM_EXTRA_FUNCS (1)
#include "py/dynruntime.h"
@@ -19,7 +19,7 @@ mp_obj_t mpy_init(mp_obj_fun_bc_t *self, size_t n_args, size_t n_kw, mp_obj_t *a
mp_store_global(MP_QSTR___name__, MP_OBJ_NEW_QSTR(MP_QSTR_random));
mp_store_global(MP_QSTR_getrandbits, MP_OBJ_FROM_PTR(&mod_random_getrandbits_obj));
mp_store_global(MP_QSTR_seed, MP_OBJ_FROM_PTR(&mod_random_seed_obj));
- #if MICROPY_PY_URANDOM_EXTRA_FUNCS
+ #if MICROPY_PY_RANDOM_EXTRA_FUNCS
mp_store_global(MP_QSTR_randrange, MP_OBJ_FROM_PTR(&mod_random_randrange_obj));
mp_store_global(MP_QSTR_randint, MP_OBJ_FROM_PTR(&mod_random_randint_obj));
mp_store_global(MP_QSTR_choice, MP_OBJ_FROM_PTR(&mod_random_choice_obj));
diff --git a/examples/natmod/ure/ure.c b/examples/natmod/ure/ure.c
index c51df2a475..79eca90ab9 100644
--- a/examples/natmod/ure/ure.c
+++ b/examples/natmod/ure/ure.c
@@ -1,8 +1,8 @@
#define MICROPY_STACK_CHECK (1)
-#define MICROPY_PY_URE (1)
-#define MICROPY_PY_URE_MATCH_GROUPS (1)
-#define MICROPY_PY_URE_MATCH_SPAN_START_END (1)
-#define MICROPY_PY_URE_SUB (0) // requires vstr interface
+#define MICROPY_PY_RE (1)
+#define MICROPY_PY_RE_MATCH_GROUPS (1)
+#define MICROPY_PY_RE_MATCH_SPAN_START_END (1)
+#define MICROPY_PY_RE_SUB (0) // requires vstr interface
#include <alloca.h>
#include "py/dynruntime.h"
diff --git a/examples/natmod/uzlib/uzlib.c b/examples/natmod/uzlib/uzlib.c
index ea21235102..9a3ec0af3c 100644
--- a/examples/natmod/uzlib/uzlib.c
+++ b/examples/natmod/uzlib/uzlib.c
@@ -1,4 +1,4 @@
-#define MICROPY_PY_UZLIB (1)
+#define MICROPY_PY_ZLIB (1)
#include "py/dynruntime.h"