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.
This commit is contained in:
Damien George
2017-10-04 12:37:50 +11:00
parent 6c82cfc089
commit a3dc1b1957
149 changed files with 3 additions and 226 deletions

View File

@@ -31,7 +31,6 @@
#include <sys/stat.h>
#include <sys/types.h>
#include "py/nlr.h"
#include "py/runtime.h"
#include "py/stream.h"
#include "py/builtin.h"

View File

@@ -37,8 +37,6 @@
#include <errno.h>
#include <signal.h>
#include "py/mpstate.h"
#include "py/nlr.h"
#include "py/compile.h"
#include "py/runtime.h"
#include "py/builtin.h"

View File

@@ -32,7 +32,6 @@
#include <ffi.h>
#include <stdint.h>
#include "py/nlr.h"
#include "py/runtime.h"
#include "py/binary.h"
#include "py/mperrno.h"

View File

@@ -30,8 +30,6 @@
#include <dlfcn.h>
#include <ctype.h>
#include "py/nlr.h"
#include "py/runtime0.h"
#include "py/runtime.h"
#include "py/binary.h"

View File

@@ -34,7 +34,6 @@
#include <dirent.h>
#include "py/mpconfig.h"
#include "py/nlr.h"
#include "py/runtime.h"
#include "py/objtuple.h"
#include "py/mphal.h"

View File

@@ -38,7 +38,6 @@
#include <netdb.h>
#include <errno.h>
#include "py/nlr.h"
#include "py/objtuple.h"
#include "py/objstr.h"
#include "py/runtime.h"

View File

@@ -28,7 +28,6 @@
#include <stdlib.h>
#include <errno.h>
#include "py/mpstate.h"
#include "py/runtime.h"
#include "py/mpthread.h"
#include "py/gc.h"

View File

@@ -29,7 +29,6 @@
#include <string.h>
#include <sys/time.h>
#include "py/mpstate.h"
#include "py/mphal.h"
#include "py/runtime.h"
#include "extmod/misc.h"