micropython/py
Damien George 9884a2c712 py/objint: Remove unreachable code checking for int type in format func.
All callers of mp_obj_int_formatted() are expected to pass in a valid int
object, and they do:

- mp_obj_int_print() should always pass through an int object because it is
  the print special method for int instances.

- mp_print_mp_int() checks that the argument is an int, and if not converts
  it to a small int.

This patch saves around 20-50 bytes of code space.
2018-03-02 11:01:24 +11:00
..
argcheck.c
asmarm.c py/asm*.c: Remove unnecessary check for num_locals<0 in asm entry func. 2018-02-24 23:10:20 +11:00
asmarm.h
asmbase.c
asmbase.h
asmthumb.c py/asm*.c: Remove unnecessary check for num_locals<0 in asm entry func. 2018-02-24 23:10:20 +11:00
asmthumb.h
asmx64.c py/asm*.c: Remove unnecessary check for num_locals<0 in asm entry func. 2018-02-24 23:10:20 +11:00
asmx64.h
asmx86.c py/asm*.c: Remove unnecessary check for num_locals<0 in asm entry func. 2018-02-24 23:10:20 +11:00
asmx86.h py/asm*.c: Remove unnecessary check for num_locals<0 in asm entry func. 2018-02-24 23:10:20 +11:00
asmxtensa.c
asmxtensa.h
bc.c
bc.h
bc0.h
binary.c
binary.h
builtin.h
builtinevex.c
builtinhelp.c
builtinimport.c py/builtinimport: Add compile-time option to disable external imports. 2018-02-20 18:00:44 +11:00
compile.c py/compile: Adjust c_assign_atom_expr() to use return instead of goto. 2018-02-24 23:03:17 +11:00
compile.h
emit.h
emitbc.c py/emitglue: When assigning bytecode only pass bytecode len if needed. 2018-02-14 18:41:17 +11:00
emitcommon.c
emitglue.c py/emitglue: When assigning bytecode only pass bytecode len if needed. 2018-02-14 18:41:17 +11:00
emitglue.h py/emitglue: When assigning bytecode only pass bytecode len if needed. 2018-02-14 18:41:17 +11:00
emitinlinethumb.c
emitinlinextensa.c
emitnative.c
formatfloat.c py/formatfloat: Fix case where floats could render with negative digits. 2018-03-01 17:00:02 +11:00
formatfloat.h
frozenmod.c
frozenmod.h
gc.c py/gc: Update comment now that gc_drain_stack is called gc_mark_subtree. 2018-02-19 16:08:20 +11:00
gc.h
grammar.h
lexer.c
lexer.h
makeqstrdata.py
makeqstrdefs.py
makeversionhdr.py py: Use "GEN" consistently for describing files generated in the build. 2018-02-22 12:48:51 +11:00
malloc.c
map.c
misc.h py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. 2018-02-14 18:19:22 +11:00
mkenv.mk
mkrules.mk py: Use "GEN" consistently for describing files generated in the build. 2018-02-22 12:48:51 +11:00
modarray.c
modbuiltins.c py/modbuiltins: Simplify and generalise dir() by probing qstrs. 2018-02-19 16:12:44 +11:00
modcmath.c
modcollections.c py/objdeque: Implement ucollections.deque type with fixed size. 2018-02-21 22:39:25 +11:00
modgc.c
modio.c
modmath.c
modmicropython.c py/modmicropython: Allow to have stack_use() func without mem_info(). 2018-02-20 18:30:22 +11:00
modstruct.c
modsys.c
modthread.c
moduerrno.c
mpconfig.h py/objdeque: Implement ucollections.deque type with fixed size. 2018-02-21 22:39:25 +11:00
mperrno.h
mphal.h
mpprint.c
mpprint.h
mpstate.c
mpstate.h py/mpstate.h: Add repl_line state for MICROPY_REPL_EVENT_DRIVEN. 2018-02-26 16:08:58 +11:00
mpthread.h
mpz.c py/mpz: In mpz_clone, remove unused check for NULL dig. 2018-02-25 22:59:19 +11:00
mpz.h
nativeglue.c
nlr.c
nlr.h
nlrsetjmp.c
nlrthumb.c py/nlrthumb: Do not mark nlr_push as not returning anything. 2018-02-18 01:35:27 +01:00
nlrx64.c
nlrx86.c
nlrxtensa.c
obj.c
obj.h py/objdeque: Implement ucollections.deque type with fixed size. 2018-02-21 22:39:25 +11:00
objarray.c
objarray.h
objattrtuple.c
objbool.c
objboundmeth.c
objcell.c
objclosure.c
objcomplex.c
objdeque.c py/objdeque: Use m_new0 when allocating items to avoid need to clear. 2018-02-21 23:36:46 +11:00
objdict.c py/objdict: Disallow possible modifications to fixed dicts. 2018-02-18 21:51:04 -06:00
objenumerate.c
objexcept.c py/objexcept: Remove long-obsolete mp_const_MemoryError_obj. 2018-02-15 16:50:02 +11:00
objexcept.h
objfilter.c
objfloat.c py/objfloat: Fix case of raising 0 to -infinity. 2018-02-08 14:35:43 +11:00
objfun.c
objfun.h
objgenerator.c
objgenerator.h
objgetitemiter.c
objint.c py/objint: Remove unreachable code checking for int type in format func. 2018-03-02 11:01:24 +11:00
objint.h
objint_longlong.c
objint_mpz.c
objlist.c
objlist.h
objmap.c
objmodule.c py/objmodule: Factor common code for calling __init__ on builtin module. 2018-02-20 17:56:58 +11:00
objmodule.h py/objmodule: Factor common code for calling __init__ on builtin module. 2018-02-20 17:56:58 +11:00
objnamedtuple.c
objnamedtuple.h
objnone.c
objobject.c
objpolyiter.c
objproperty.c
objrange.c py/objrange: Implement (in)equality comparison between range objects. 2018-02-14 23:17:06 +11:00
objreversed.c
objset.c
objsingleton.c
objslice.c
objstr.c py/objstr: Remove unnecessary check for positive splits variable. 2018-02-20 19:19:02 +11:00
objstr.h
objstringio.c
objstringio.h
objstrunicode.c py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. 2018-02-14 18:19:22 +11:00
objtuple.c
objtuple.h
objtype.c py/objtype: Check and prevent delete/store on a fixed locals map. 2018-02-07 15:44:29 +11:00
objtype.h
objzip.c
opmethods.c
parse.c
parse.h
parsenum.c py/parsenum: Fix parsing of floats that are close to subnormal. 2018-02-08 14:02:50 +11:00
parsenum.h
parsenumbase.c
parsenumbase.h
persistentcode.c py/emitglue: When assigning bytecode only pass bytecode len if needed. 2018-02-14 18:41:17 +11:00
persistentcode.h
py.mk extmod/vfs_fat: Merge remaining vfs_fat_misc.c code into vfs_fat.c. 2018-02-23 17:24:57 +11:00
pystack.c py/pystack: Use "pystack exhausted" as error msg for out of pystack mem. 2018-02-19 00:26:14 +11:00
pystack.h
qstr.c
qstr.h py/qstr: Add QSTR_TOTAL() macro to get number of qstrs. 2018-02-19 16:12:44 +11:00
qstrdefs.h py/pystack: Use "pystack exhausted" as error msg for out of pystack mem. 2018-02-19 00:26:14 +11:00
reader.c
reader.h
repl.c py/repl: Generalise REPL autocomplete to use qstr probing. 2018-02-19 16:12:44 +11:00
repl.h
ringbuf.h
runtime.c py/vm: Simplify handling of special-case STOP_ITERATION in yield from. 2018-02-27 15:48:09 +11:00
runtime.h
runtime0.h
runtime_utils.c
scheduler.c
scope.c
scope.h
sequence.c
showbc.c
smallint.c
smallint.h
stackctrl.c
stackctrl.h
stream.c
stream.h
unicode.c py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. 2018-02-14 18:19:22 +11:00
unicode.h
vm.c py/vm: Simplify handling of special-case STOP_ITERATION in yield from. 2018-02-27 15:48:09 +11:00
vmentrytable.h
vstr.c
warning.c