mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py/objslice: Inline fetching of slice paramters in str_subscr().
To reduce code size.
This commit is contained in:
committed by
Damien George
parent
4c93955b7b
commit
10709846f3
7
py/obj.h
7
py/obj.h
@@ -786,7 +786,12 @@ typedef struct {
|
||||
} mp_bound_slice_t;
|
||||
|
||||
// slice
|
||||
void mp_obj_slice_get(mp_obj_t self_in, mp_obj_t *start, mp_obj_t *stop, mp_obj_t *step);
|
||||
typedef struct _mp_obj_slice_t {
|
||||
mp_obj_base_t base;
|
||||
mp_obj_t start;
|
||||
mp_obj_t stop;
|
||||
mp_obj_t step;
|
||||
} mp_obj_slice_t;
|
||||
void mp_obj_slice_indices(mp_obj_t self_in, mp_int_t length, mp_bound_slice_t *result);
|
||||
|
||||
// functions
|
||||
|
||||
Reference in New Issue
Block a user