diff options
author | Damien George <damien.p.george@gmail.com> | 2017-10-04 12:37:50 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-04 12:37:50 +1100 |
commit | a3dc1b1957d2c96d7c60c2c629c95077b03488a1 (patch) | |
tree | be001dc9d91c9f5a40089654279e9e422f621d4f /py/persistentcode.c | |
parent | 6c82cfc089466f0b3f4b61c81baee1cabece1eaa (diff) | |
download | micropython-a3dc1b1957d2c96d7c60c2c629c95077b03488a1.tar.gz micropython-a3dc1b1957d2c96d7c60c2c629c95077b03488a1.zip |
all: Remove inclusion of internal py header files.
Header files that are considered internal to the py core and should not
normally be included directly are:
py/nlr.h - internal nlr configuration and declarations
py/bc0.h - contains bytecode macro definitions
py/runtime0.h - contains basic runtime enums
Instead, the top-level header files to include are one of:
py/obj.h - includes runtime0.h and defines everything to use the
mp_obj_t type
py/runtime.h - includes mpstate.h and hence nlr.h, obj.h, runtime0.h,
and defines everything to use the general runtime support functions
Additional, specific headers (eg py/objlist.h) can be included if needed.
Diffstat (limited to 'py/persistentcode.c')
-rw-r--r-- | py/persistentcode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/py/persistentcode.c b/py/persistentcode.c index f954038ae5..d8b17c7e6b 100644 --- a/py/persistentcode.c +++ b/py/persistentcode.c @@ -99,7 +99,6 @@ STATIC void extract_prelude(const byte **ip, const byte **ip2, bytecode_prelude_ #if MICROPY_PERSISTENT_CODE_LOAD #include "py/parsenum.h" -#include "py/bc0.h" STATIC int read_byte(mp_reader_t *reader) { return reader->readbyte(reader->data); |