-
- Downloads
py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR.
This allows the mp_obj_t type to be configured to something other than a pointer-sized primitive type. This patch also includes additional changes to allow the code to compile when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of mp_uint_t, and various casts.
Showing
- py/repl.c 2 additions, 2 deletionspy/repl.c
- py/runtime.c 29 additions, 29 deletionspy/runtime.c
- py/runtime.h 2 additions, 2 deletionspy/runtime.h
- py/sequence.c 1 addition, 1 deletionpy/sequence.c
- py/showbc.c 27 additions, 19 deletionspy/showbc.c
- py/stream.c 16 additions, 11 deletionspy/stream.c
- py/stream.h 1 addition, 0 deletionspy/stream.h
- py/vm.c 35 additions, 27 deletionspy/vm.c
- unix/file.c 16 additions, 17 deletionsunix/file.c
- unix/gccollect.c 1 addition, 1 deletionunix/gccollect.c
- unix/main.c 28 additions, 9 deletionsunix/main.c
- unix/modffi.c 14 additions, 14 deletionsunix/modffi.c
- unix/modos.c 4 additions, 4 deletionsunix/modos.c
- unix/modsocket.c 29 additions, 29 deletionsunix/modsocket.c
- unix/modtermios.c 6 additions, 6 deletionsunix/modtermios.c
- unix/moduselect.c 10 additions, 10 deletionsunix/moduselect.c
Loading
Please register or sign in to comment