diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-04-22 13:05:56 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-09-19 19:06:04 +1000 |
commit | e8355eb16357b0bd234a9bcab1c9e8b72fcdbabc (patch) | |
tree | 894b411f743d6d285f0ed34c6685e9a33818b1cf /examples | |
parent | 5ddf671944465411f90bd0968550b719d0dbdb80 (diff) | |
download | micropython-e8355eb16357b0bd234a9bcab1c9e8b72fcdbabc.tar.gz micropython-e8355eb16357b0bd234a9bcab1c9e8b72fcdbabc.zip |
py/obj: Add "full" and "empty" non-variable-length mp_obj_type_t.
This will always have the maximum/minimum size of a mp_obj_type_t
representation and can be used as a member in other structs.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/natmod/btree/btree_c.c | 2 | ||||
-rw-r--r-- | examples/natmod/framebuf/framebuf.c | 2 | ||||
-rw-r--r-- | examples/natmod/ure/ure.c | 4 | ||||
-rw-r--r-- | examples/natmod/uzlib/uzlib.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/natmod/btree/btree_c.c b/examples/natmod/btree/btree_c.c index 5e8a34ac40..e342b7d903 100644 --- a/examples/natmod/btree/btree_c.c +++ b/examples/natmod/btree/btree_c.c @@ -94,7 +94,7 @@ int mp_stream_posix_fsync(void *stream) { return res; } -mp_obj_type_t btree_type; +mp_obj_full_type_t btree_type; #include "extmod/modbtree.c" diff --git a/examples/natmod/framebuf/framebuf.c b/examples/natmod/framebuf/framebuf.c index 2eff61c817..98b44987b3 100644 --- a/examples/natmod/framebuf/framebuf.c +++ b/examples/natmod/framebuf/framebuf.c @@ -8,7 +8,7 @@ void *memset(void *s, int c, size_t n) { } #endif -mp_obj_type_t mp_type_framebuf; +mp_obj_full_type_t mp_type_framebuf; #include "extmod/modframebuf.c" diff --git a/examples/natmod/ure/ure.c b/examples/natmod/ure/ure.c index 175b93e395..d9e11760a7 100644 --- a/examples/natmod/ure/ure.c +++ b/examples/natmod/ure/ure.c @@ -32,8 +32,8 @@ void *memmove(void *dest, const void *src, size_t n) { return mp_fun_table.memmove_(dest, src, n); } -mp_obj_type_t match_type; -mp_obj_type_t re_type; +mp_obj_full_type_t match_type; +mp_obj_full_type_t re_type; #include "extmod/modure.c" diff --git a/examples/natmod/uzlib/uzlib.c b/examples/natmod/uzlib/uzlib.c index 99b3691761..24ab15d6f1 100644 --- a/examples/natmod/uzlib/uzlib.c +++ b/examples/natmod/uzlib/uzlib.c @@ -8,7 +8,7 @@ void *memset(void *s, int c, size_t n) { } #endif -mp_obj_type_t decompio_type; +mp_obj_full_type_t decompio_type; #include "extmod/moduzlib.c" |