micropython/py
Sean Burton e33bc59712 py: Remove calls to file reader functions when these are disabled.
If MICROPY_PERSISTENT_CODE_LOAD or MICROPY_ENABLE_COMPILER are enabled then
code gets enabled that calls file reading functions which may be disabled
if no readers have been implemented.

To fix this, introduce a MICROPY_HAS_FILE_READER variable, which is
automatically set if MICROPY_READER_POSIX or MICROPY_READER_VFS is set but
can also be manually set if a custom reader is being implemented.  Then
disable the file reading calls if this is not set.
2019-01-27 11:08:25 +11:00
..
argcheck.c py: Shorten error messages by using contractions and some rewording. 2018-09-20 14:33:10 +10:00
asmarm.c py/asmarm: Simplify asm_arm_bl_ind to only load via index, not literal. 2018-10-13 15:16:33 +11:00
asmarm.h py/emitnative: Remove unused ptr argument from ASM_CALL_IND macro. 2018-10-13 15:16:33 +11:00
asmbase.c
asmbase.h
asmthumb.c py/asmthumb: Remove unused fun_ptr arg from asm_thumb_bl_ind function. 2018-10-13 15:16:33 +11:00
asmthumb.h py/emitnative: Remove unused ptr argument from ASM_CALL_IND macro. 2018-10-13 15:16:33 +11:00
asmx64.c py/emitnative: Load native fun table ptr from const table for all archs. 2018-10-13 15:16:33 +11:00
asmx64.h py/emitnative: Remove unused ptr argument from ASM_CALL_IND macro. 2018-10-13 15:16:33 +11:00
asmx86.c py/emitnative: Load native fun table ptr from const table for all archs. 2018-10-13 15:16:33 +11:00
asmx86.h py/emitnative: Remove unused ptr argument from ASM_CALL_IND macro. 2018-10-13 15:16:33 +11:00
asmxtensa.c py/emitnative: Load native fun table ptr from const table for all archs. 2018-10-13 15:16:33 +11:00
asmxtensa.h py/emitnative: Remove unused ptr argument from ASM_CALL_IND macro. 2018-10-13 15:16:33 +11:00
bc.c py/bc: Fix calculation of opcode size for opcodes with map caching. 2018-12-13 01:26:55 +11:00
bc.h
bc0.h
binary.c
binary.h
builtin.h extmod/moducryptolib: Add ucryptolib module with crypto functions. 2018-06-27 14:54:40 +10:00
builtinevex.c
builtinhelp.c py: Simplify some cases of accessing the map of module and type dict. 2018-07-08 21:31:09 +10:00
builtinimport.c py: Remove calls to file reader functions when these are disabled. 2019-01-27 11:08:25 +11:00
compile.c py/scope: Optimise scope_find_or_add_id to not need "added" arg. 2018-10-28 00:38:18 +11:00
compile.h py/emit: Move MP_EMIT_OPT_xxx enums from compile.h to emitglue.h. 2018-09-15 12:17:09 +10:00
emit.h py/scope: Optimise scope_find_or_add_id to not need "added" arg. 2018-10-28 00:38:18 +11:00
emitbc.c py: Get optional VM stack overflow check compiling and working again. 2019-01-04 17:09:41 +11:00
emitcommon.c py/scope: Optimise scope_find_or_add_id to not need "added" arg. 2018-10-28 00:38:18 +11:00
emitglue.c py/emitnative: Implement yield and yield-from in native emitter. 2018-10-01 13:31:11 +10:00
emitglue.h py/emit: Move MP_EMIT_OPT_xxx enums from compile.h to emitglue.h. 2018-09-15 12:17:09 +10:00
emitinlinethumb.c py: Shorten error messages by using contractions and some rewording. 2018-09-20 14:33:10 +10:00
emitinlinextensa.c py: Shorten error messages by using contractions and some rewording. 2018-09-20 14:33:10 +10:00
emitnarm.c py/emitnative: Add support for return/break/continue in try and with. 2018-09-04 14:31:28 +10:00
emitnative.c py/emitnative: Put None/False/True in global native const table. 2018-10-15 00:20:49 +11:00
emitnthumb.c py/emitnative: Add support for return/break/continue in try and with. 2018-09-04 14:31:28 +10:00
emitnx64.c py/emitnative: Add support for return/break/continue in try and with. 2018-09-04 14:31:28 +10:00
emitnx86.c py/emitnative: Implement yield and yield-from in native emitter. 2018-10-01 13:31:11 +10:00
emitnxtensa.c py/emitnative: Add support for return/break/continue in try and with. 2018-09-04 14:31:28 +10:00
formatfloat.c
formatfloat.h
frozenmod.c
frozenmod.h
gc.c py/gc: Adjust gc_alloc() signature to be able to accept multiple flags. 2018-12-20 17:52:16 +11:00
gc.h py/gc: Adjust gc_alloc() signature to be able to accept multiple flags. 2018-12-20 17:52:16 +11:00
grammar.h py/compile: Combine expr, xor_expr and and_expr into one function. 2018-06-22 17:00:29 +10:00
lexer.c py/lexer: Add support for underscores in numeric literals. 2018-06-12 12:17:43 +10:00
lexer.h
makeqstrdata.py
makeqstrdefs.py
makeversionhdr.py py/mpconfig: Move MICROPY_VERSION macros to static ones in mpconfig.h. 2018-12-22 01:40:38 +11:00
malloc.c py/malloc: Give a compile warning if using finaliser without GC. 2018-07-09 14:40:02 +10:00
map.c py: Fix compiling with debug enabled and make more use of DEBUG_printf. 2018-08-02 14:17:24 +10:00
misc.h py/misc.h: Add MP_STATIC_ASSERT macro to do static assertions. 2018-05-18 23:31:00 +10:00
mkenv.mk
mkrules.mk py/mkrules.mk: Regenerate all qstrs when config files change. 2018-06-12 13:53:43 +10:00
modarray.c
modbuiltins.c py/modbuiltins: Make oct/hex work when !MICROPY_PY_BUILTINS_STR_OP_MODULO 2018-09-20 14:41:35 +10:00
modcmath.c
modcollections.c
modgc.c
modio.c py/modio: Make iobase_singleton object const so it goes in ROM. 2019-01-10 23:08:07 +11:00
modmath.c py/modmath: Add math.factorial, optimised and non-opt implementations. 2018-09-26 15:03:04 +10:00
modmicropython.c
modstruct.c
modsys.c py/mpconfig: Move MICROPY_VERSION macros to static ones in mpconfig.h. 2018-12-22 01:40:38 +11:00
modthread.c
moduerrno.c
mpconfig.h py: Remove calls to file reader functions when these are disabled. 2019-01-27 11:08:25 +11:00
mperrno.h
mphal.h
mpprint.c
mpprint.h
mpstate.c
mpstate.h py: Add option to reduce GC stack integer size to save RAM. 2018-12-04 17:17:25 +11:00
mpthread.h
mpz.c py/mpz: Avoid undefined behavior at integer overflow in mpz_hash. 2018-05-21 12:48:26 +10:00
mpz.h
nativeglue.c py/emitnative: Put None/False/True in global native const table. 2018-10-15 00:20:49 +11:00
nlr.c
nlr.h
nlrsetjmp.c
nlrthumb.c
nlrx64.c
nlrx86.c py/nlrx86: Use naked attribute on nlr_push for gcc 8.0 and higher. 2018-05-15 11:17:28 +10:00
nlrxtensa.c
obj.c py/obj: Add support for __int__ special method. 2018-12-07 17:28:04 +11:00
obj.h py/obj.h: Explicitly cast args to uint32_t in MP_OBJ_FUN_MAKE_SIG. 2019-01-25 16:03:05 +11:00
objarray.c py/objarray: Introduce "memview_offset" alias for "free" field of object 2018-12-20 17:40:48 +11:00
objarray.h py/objarray: Introduce "memview_offset" alias for "free" field of object 2018-12-20 17:40:48 +11:00
objattrtuple.c
objbool.c
objboundmeth.c py/objboundmeth: Support loading generic attrs from the method. 2018-12-06 18:02:41 +11:00
objcell.c
objclosure.c
objcomplex.c py: Shorten error messages by using contractions and some rewording. 2018-09-20 14:33:10 +10:00
objdeque.c
objdict.c py/objdict: Make .fromkeys() method configurable. 2018-12-13 01:20:55 +11:00
objenumerate.c
objexcept.c py/objexcept: Make sure mp_obj_new_exception_msg doesn't copy/format msg 2018-12-10 16:01:05 +11:00
objexcept.h
objfilter.c
objfloat.c py/objfloat: Fix abs(-0.0) so it returns 0.0. 2018-09-27 15:21:25 +10:00
objfun.c py: Fix location of VM returned exception in invalid opcode and comments 2019-01-04 17:22:40 +11:00
objfun.h py/objgenerator: Implement __name__ with normal fun attr accessor code. 2018-07-10 16:33:57 +10:00
objgenerator.c py/emitnative: Implement yield and yield-from in native emitter. 2018-10-01 13:31:11 +10:00
objgenerator.h
objgetitemiter.c
objint.c py/obj: Add support for __int__ special method. 2018-12-07 17:28:04 +11:00
objint.h
objint_longlong.c py: Shorten error messages by using contractions and some rewording. 2018-09-20 14:33:10 +10:00
objint_mpz.c py: Shorten error messages by using contractions and some rewording. 2018-09-20 14:33:10 +10:00
objlist.c
objlist.h
objmap.c
objmodule.c py/objmodule: Implement PEP 562's __getattr__ for modules. 2018-10-23 11:22:50 +11:00
objmodule.h
objnamedtuple.c
objnamedtuple.h
objnone.c
objobject.c
objpolyiter.c
objproperty.c
objrange.c
objreversed.c
objset.c
objsingleton.c
objslice.c py/objslice: Remove long-obsolete comment about enhancing slice object. 2018-09-27 11:23:31 +10:00
objstr.c py/objstr: Make str.count() method configurable. 2018-10-22 22:49:05 +11:00
objstr.h
objstringio.c
objstringio.h
objstrunicode.c py/objstr: Make str.count() method configurable. 2018-10-22 22:49:05 +11:00
objtuple.c
objtuple.h
objtype.c py/obj: Add support for __int__ special method. 2018-12-07 17:28:04 +11:00
objtype.h py/objtype: Don't expose mp_obj_instance_attr(). 2018-06-08 11:48:25 +10:00
objzip.c
opmethods.c
parse.c py: Shorten error messages by using contractions and some rewording. 2018-09-20 14:33:10 +10:00
parse.h
parsenum.c py/parsenum: Avoid rounding errors with negative powers-of-10. 2018-09-20 22:06:41 +10:00
parsenum.h
parsenumbase.c
parsenumbase.h
persistentcode.c py: Remove calls to file reader functions when these are disabled. 2019-01-27 11:08:25 +11:00
persistentcode.h
py.mk py/py.mk: Fix broken Gmane URL. 2018-12-04 01:03:44 +11:00
pystack.c
pystack.h
qstr.c py/qstr: Put a lower bound on new qstr pool allocation. 2018-12-15 14:32:09 +11:00
qstr.h
qstrdefs.h py/modbuiltins: Make oct/hex work when !MICROPY_PY_BUILTINS_STR_OP_MODULO 2018-09-20 14:41:35 +10:00
reader.c py/reader: Allow MICROPY_VFS_POSIX to work with MICROPY_READER_POSIX. 2018-06-06 14:28:23 +10:00
reader.h
repl.c py/repl: Fix handling of unmatched brackets and unfinished quotes. 2018-05-18 15:23:02 +10:00
repl.h
ringbuf.h
runtime.c py/runtime: Unlock the GIL in mp_deinit function. 2018-12-27 14:20:31 +11:00
runtime.h py/obj.h: Explicitly cast args to uint32_t in MP_OBJ_FUN_MAKE_SIG. 2019-01-25 16:03:05 +11:00
runtime0.h py/obj: Add support for __int__ special method. 2018-12-07 17:28:04 +11:00
runtime_utils.c
scheduler.c
scope.c py/scope: Optimise scope_find_or_add_id to not need "added" arg. 2018-10-28 00:38:18 +11:00
scope.h py/scope: Optimise scope_find_or_add_id to not need "added" arg. 2018-10-28 00:38:18 +11:00
sequence.c
showbc.c
smallint.c
smallint.h
stackctrl.c
stackctrl.h
stream.c py/stream: Adjust mp_stream_posix_XXX to take void*, not mp_obj_t. 2018-08-14 17:36:08 +10:00
stream.h py/stream: Adjust mp_stream_posix_XXX to take void*, not mp_obj_t. 2018-08-14 17:36:08 +10:00
unicode.c py/unicode: Fix check for valid utf8 being stricter about contn chars. 2018-11-26 16:13:08 +11:00
unicode.h
vm.c py: Fix location of VM returned exception in invalid opcode and comments 2019-01-04 17:22:40 +11:00
vmentrytable.h
vstr.c
warning.c