aboutsummaryrefslogtreecommitdiff
path: root/ports/unix
diff options
context:
space:
mode:
authorDamien George2017-10-04 12:37:50 +1100
committerDamien George2017-10-04 12:37:50 +1100
commita3dc1b1957d2c96d7c60c2c629c95077b03488a1 (patch)
treebe001dc9d91c9f5a40089654279e9e422f621d4f /ports/unix
parent6c82cfc089466f0b3f4b61c81baee1cabece1eaa (diff)
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 'ports/unix')
-rw-r--r--ports/unix/file.c1
-rw-r--r--ports/unix/main.c2
-rw-r--r--ports/unix/modffi.c1
-rw-r--r--ports/unix/modjni.c2
-rw-r--r--ports/unix/modos.c1
-rw-r--r--ports/unix/modsocket.c1
-rw-r--r--ports/unix/mpthreadport.c1
-rw-r--r--ports/unix/unix_mphal.c1
8 files changed, 0 insertions, 10 deletions
diff --git a/ports/unix/file.c b/ports/unix/file.c
index 0d65f9ca0..84e918082 100644
--- a/ports/unix/file.c
+++ b/ports/unix/file.c
@@ -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"
diff --git a/ports/unix/main.c b/ports/unix/main.c
index e861d7f11..e1cd33fc1 100644
--- a/ports/unix/main.c
+++ b/ports/unix/main.c
@@ -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"
diff --git a/ports/unix/modffi.c b/ports/unix/modffi.c
index 9b514371b..78adccac1 100644
--- a/ports/unix/modffi.c
+++ b/ports/unix/modffi.c
@@ -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"
diff --git a/ports/unix/modjni.c b/ports/unix/modjni.c
index b7ac49dc8..15b6d9cd7 100644
--- a/ports/unix/modjni.c
+++ b/ports/unix/modjni.c
@@ -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"
diff --git a/ports/unix/modos.c b/ports/unix/modos.c
index 5030fbb65..327116a0a 100644
--- a/ports/unix/modos.c
+++ b/ports/unix/modos.c
@@ -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"
diff --git a/ports/unix/modsocket.c b/ports/unix/modsocket.c
index c612f870d..7e82554c7 100644
--- a/ports/unix/modsocket.c
+++ b/ports/unix/modsocket.c
@@ -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"
diff --git a/ports/unix/mpthreadport.c b/ports/unix/mpthreadport.c
index 09f5702e3..8c636a445 100644
--- a/ports/unix/mpthreadport.c
+++ b/ports/unix/mpthreadport.c
@@ -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"
diff --git a/ports/unix/unix_mphal.c b/ports/unix/unix_mphal.c
index 02cdbea11..2b273d834 100644
--- a/ports/unix/unix_mphal.c
+++ b/ports/unix/unix_mphal.c
@@ -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"