unix: Prefix includes with py/; remove need for -I../py.

This commit is contained in:
Damien George 2015-01-01 20:40:19 +00:00
parent 3765ea419a
commit 6d7e47087f
10 changed files with 31 additions and 66 deletions

View File

@ -15,7 +15,6 @@ include ../py/py.mk
INC = -I. INC = -I.
INC += -I.. INC += -I..
INC += -I$(PY_SRC)
INC += -I$(BUILD) INC += -I$(BUILD)
# compiler settings # compiler settings

View File

@ -31,13 +31,9 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include "mpconfig.h" #include "py/nlr.h"
#include "nlr.h" #include "py/runtime.h"
#include "misc.h" #include "py/stream.h"
#include "qstr.h"
#include "obj.h"
#include "runtime.h"
#include "stream.h"
#ifdef _WIN32 #ifdef _WIN32
#define fsync _commit #define fsync _commit

View File

@ -25,11 +25,8 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdint.h>
#include "mpconfig.h" #include "py/gc.h"
#include "misc.h"
#include "gc.h"
#if MICROPY_ENABLE_GC #if MICROPY_ENABLE_GC

View File

@ -25,15 +25,11 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "mpconfig.h" #include "py/nlr.h"
#include "nlr.h" #include "py/obj.h"
#include "misc.h"
#include "qstr.h"
#include "obj.h"
#include "input.h" #include "input.h"
#if MICROPY_USE_READLINE #if MICROPY_USE_READLINE

View File

@ -35,20 +35,17 @@
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#include "mpconfig.h" #include "py/nlr.h"
#include "nlr.h" #include "py/compile.h"
#include "obj.h" #include "py/parsehelper.h"
#include "parsehelper.h" #include "py/runtime.h"
#include "compile.h" #include "py/builtin.h"
#include "runtime0.h" #include "py/repl.h"
#include "runtime.h" #include "py/gc.h"
#include "builtin.h" #include "py/stackctrl.h"
#include "repl.h" #include "py/pfenv.h"
#include "gc.h"
#include "genhdr/py-version.h" #include "genhdr/py-version.h"
#include "input.h" #include "input.h"
#include "stackctrl.h"
#include "pfenv.h"
// Command line options, with their defaults // Command line options, with their defaults
STATIC bool compile_only = false; STATIC bool compile_only = false;

View File

@ -31,13 +31,9 @@
#include <dlfcn.h> #include <dlfcn.h>
#include <ffi.h> #include <ffi.h>
#include "mpconfig.h" #include "py/nlr.h"
#include "nlr.h" #include "py/runtime.h"
#include "misc.h" #include "py/binary.h"
#include "qstr.h"
#include "obj.h"
#include "runtime.h"
#include "binary.h"
/* /*
* modffi uses character codes to encode a value type, based on "struct" * modffi uses character codes to encode a value type, based on "struct"

View File

@ -31,13 +31,9 @@
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include "mpconfig.h" #include "py/nlr.h"
#include "misc.h" #include "py/runtime.h"
#include "nlr.h" #include "py/objtuple.h"
#include "qstr.h"
#include "obj.h"
#include "runtime.h"
#include "objtuple.h"
#define RAISE_ERRNO(err_flag, error_val) \ #define RAISE_ERRNO(err_flag, error_val) \
{ if (err_flag == -1) \ { if (err_flag == -1) \

View File

@ -38,16 +38,12 @@
#include <netdb.h> #include <netdb.h>
#include <errno.h> #include <errno.h>
#include "mpconfig.h" #include "py/nlr.h"
#include "nlr.h" #include "py/objtuple.h"
#include "misc.h" #include "py/objstr.h"
#include "qstr.h" #include "py/runtime.h"
#include "obj.h" #include "py/stream.h"
#include "objtuple.h" #include "py/builtin.h"
#include "objstr.h"
#include "runtime.h"
#include "stream.h"
#include "builtin.h"
/* /*
The idea of this module is to implement reasonable minimum of The idea of this module is to implement reasonable minimum of

View File

@ -29,13 +29,9 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "mpconfig.h" #include "py/nlr.h"
#include "misc.h" #include "py/objlist.h"
#include "nlr.h" #include "py/runtime.h"
#include "qstr.h"
#include "obj.h"
#include "runtime.h"
#include "objlist.h"
#define RAISE_ERRNO(err_flag, error_val) \ #define RAISE_ERRNO(err_flag, error_val) \
{ if (err_flag == -1) \ { if (err_flag == -1) \

View File

@ -30,11 +30,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <math.h> #include <math.h>
#include "mpconfig.h" #include "py/runtime.h"
#include "misc.h"
#include "qstr.h"
#include "obj.h"
#include "runtime.h"
#ifdef _WIN32 #ifdef _WIN32
void msec_sleep_tv(struct timeval *tv) { void msec_sleep_tv(struct timeval *tv) {