micropython/py
Damien George 6213ad7f46 py: Convert mp_uint_t to size_t for tuple/list accessors.
This patch changes mp_uint_t to size_t for the len argument of the
following public facing C functions:

mp_obj_tuple_get
mp_obj_list_get
mp_obj_get_array

These functions take a pointer to the len argument (to be filled in by the
function) and callers of these functions should update their code so the
type of len is changed to size_t.  For ports that don't use nan-boxing
there should be no change in generate code because the size of the type
remains the same (word sized), and in a lot of cases there won't even be a
compiler warning if the type remains as mp_uint_t.

The reason for this change is to standardise on the use of size_t for
variables that count memory (or memory related) sizes/lengths.  It helps
builds that use nan-boxing.
2017-03-29 12:56:17 +11:00
..
argcheck.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
asmarm.c
asmarm.h
asmbase.c
asmbase.h
asmthumb.c
asmthumb.h
asmx64.c
asmx64.h
asmx86.c
asmx86.h
asmxtensa.c
asmxtensa.h
bc.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
bc.h py: Provide mp_decode_uint_value to help optimise stack usage. 2017-03-17 16:50:19 +11:00
bc0.h
binary.c
binary.h
builtin.h
builtinevex.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
builtinhelp.c
builtinimport.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
compile.c py/compile: Provide terse error message for invalid dict/set literals. 2017-03-29 12:44:27 +11:00
compile.h
emit.h
emitbc.c py: Define and use MP_OBJ_ITER_BUF_NSLOTS to get size of stack iter buf. 2017-03-23 16:36:08 +11:00
emitcommon.c
emitglue.c
emitglue.h
emitinlinethumb.c py: Create str/bytes objects in the parser, not the compiler. 2017-02-24 13:43:43 +11:00
emitinlinextensa.c
emitnative.c py: Define and use MP_OBJ_ITER_BUF_NSLOTS to get size of stack iter buf. 2017-03-23 16:36:08 +11:00
formatfloat.c
formatfloat.h
frozenmod.c
frozenmod.h
gc.c
gc.h
grammar.h py/grammar: Remove unused rule. 2017-02-17 12:48:45 +11:00
lexer.c py/lexer: Simplify and reduce code size for operator tokenising. 2017-03-29 10:56:52 +11:00
lexer.h py/lexer: Convert mp_uint_t to size_t where appropriate. 2017-02-17 12:44:24 +11:00
makeqstrdata.py
makeqstrdefs.py
makeversionhdr.py
malloc.c
map.c py/map: Fix bugs with deletion of elements from OrderedDict. 2017-03-03 11:21:19 +11:00
misc.h
mkenv.mk
mkrules.mk py/mkrules.mk: Remove special check for "-B" in qstr auto generation. 2017-03-15 21:50:48 +11:00
modarray.c
modbuiltins.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
modcmath.c
modcollections.c
modgc.c
modio.c
modmath.c py/modmath: Allow trunc/ceil/floor to return a big int if necessary. 2017-03-23 22:57:08 +11:00
modmicropython.c py: Add micropython.schedule() function and associated runtime code. 2017-03-20 15:20:26 +11:00
modstruct.c
modsys.c py/modsys: Use MP_SMALL_INT_MAX for sys.maxsize in case of LONGINT_IMPL_NONE. 2017-03-06 12:15:25 +01:00
modthread.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
moduerrno.c py/moduerrno: Make list of errno codes configurable. 2017-02-22 12:58:11 +11:00
mpconfig.h py: Add micropython.schedule() function and associated runtime code. 2017-03-20 15:20:26 +11:00
mperrno.h
mphal.h
mpprint.c py/mpprint: Fix int formatting so "+" is printed for 0-valued integer. 2017-03-15 17:25:12 +11:00
mpprint.h
mpstate.c
mpstate.h py: Remove MP_STATE_CTX, use MP_STATE_THREAD instead (it's an alias). 2017-03-24 18:43:28 +11:00
mpthread.h
mpz.c
mpz.h
nativeglue.c
nlr.h py/nlr.h: Mark nlr_jump_fail as NORETURN. 2017-03-06 17:13:16 +11:00
nlrsetjmp.c
nlrthumb.c
nlrx64.c py/nlrx64: Fixes to support Mac OS. 2017-03-08 22:36:02 +11:00
nlrx86.c py/nlrx86: Better check for Zephyr (requires 1.7). 2017-03-26 00:33:23 +03:00
nlrxtensa.c py/nlrxtensa: Convert from assembler to C file with inline asm. 2017-03-06 17:13:16 +11:00
obj.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
obj.h py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
objarray.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
objarray.h
objattrtuple.c
objbool.c
objboundmeth.c
objcell.c
objclosure.c
objcomplex.c
objdict.c py: Shorten a couple of error messages. 2017-03-29 12:36:46 +11:00
objenumerate.c
objexcept.c
objexcept.h
objfilter.c
objfloat.c
objfun.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
objfun.h
objgenerator.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
objgenerator.h
objgetitemiter.c
objint.c py/objint: Handle special case of -0 when classifying fp as int. 2017-03-23 23:51:35 +11:00
objint.h
objint_longlong.c py/objint_longlong: Implement mp_obj_int_from_bytes_impl(). 2017-03-10 00:22:53 +01:00
objint_mpz.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
objlist.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
objlist.h
objmap.c py/objmap: Convert mp_uint_t to size_t. 2017-03-27 12:19:24 +11:00
objmodule.c
objmodule.h
objnamedtuple.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
objnone.c
objobject.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
objpolyiter.c
objproperty.c
objrange.c py: Use size_t as len argument and return type of mp_get_index. 2017-03-23 16:17:40 +11:00
objreversed.c
objset.c
objsingleton.c
objslice.c
objstr.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
objstr.h
objstringio.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
objstringio.h
objstrunicode.c py: Use size_t as len argument and return type of mp_get_index. 2017-03-23 16:17:40 +11:00
objtuple.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
objtuple.h
objtype.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
objtype.h
objzip.c
opmethods.c
parse.c py/parse: Simplify handling of errors by raising them directly. 2017-02-24 14:56:37 +11:00
parse.h
parsenum.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
parsenum.h
parsenumbase.c
parsenumbase.h
persistentcode.c py: Allow lexer to raise exceptions during construction. 2017-03-14 11:52:05 +11:00
persistentcode.h
py.mk py: Add micropython.schedule() function and associated runtime code. 2017-03-20 15:20:26 +11:00
qstr.c
qstr.h
qstrdefs.h
reader.c py: Allow lexer to raise exceptions during construction. 2017-03-14 11:52:05 +11:00
reader.h py: Allow lexer to raise exceptions during construction. 2017-03-14 11:52:05 +11:00
repl.c
repl.h
ringbuf.h
runtime.c py: Convert mp_uint_t to size_t for tuple/list accessors. 2017-03-29 12:56:17 +11:00
runtime.h py: Remove MP_STATE_CTX, use MP_STATE_THREAD instead (it's an alias). 2017-03-24 18:43:28 +11:00
runtime0.h
runtime_utils.c
scheduler.c py: Add micropython.schedule() function and associated runtime code. 2017-03-20 15:20:26 +11:00
scope.c
scope.h
sequence.c py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 2017-03-28 22:37:26 +11:00
showbc.c
smallint.c
smallint.h
stackctrl.c
stackctrl.h
stream.c
stream.h
unicode.c
unicode.h
vm.c py/vm: Fix VM opcode tracing to print correct stack pointer. 2017-03-27 10:52:04 +11:00
vmentrytable.h
vstr.c
warning.c