Skip to content

Commit fe7d542

Browse files
committed
esp8266: Prefix includes with py/; remove need for -I../py.
1 parent 4ef4ffe commit fe7d542

5 files changed

Lines changed: 12 additions & 33 deletions

File tree

esp8266/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ESP_SDK = $(shell $(CC) -print-sysroot)/usr
1212

1313
INC = -I.
1414
INC += -I..
15-
INC += -I$(PY_SRC)
1615
INC += -I../stmhal
1716
INC += -I$(BUILD)
1817
INC += -I$(ESP_SDK)/include

esp8266/gccollect.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,8 @@
2525
*/
2626

2727
#include <stdio.h>
28-
#include <stdint.h>
2928

30-
#include "mpconfig.h"
31-
#include "misc.h"
32-
#include "qstr.h"
33-
#include "obj.h"
34-
#include "gc.h"
29+
#include "py/gc.h"
3530
#include "gccollect.h"
3631

3732
STATIC uint32_t stack_end;

esp8266/main.c

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,12 @@
2727
#include <stdio.h>
2828
#include <string.h>
2929

30-
#include "mpconfig.h"
31-
#include "nlr.h"
32-
#include "misc.h"
33-
#include "qstr.h"
34-
#include "lexer.h"
35-
#include "parse.h"
36-
#include "obj.h"
37-
#include "parsehelper.h"
38-
#include "compile.h"
39-
#include "runtime0.h"
40-
#include "runtime.h"
41-
#include "gc.h"
30+
#include "py/nlr.h"
31+
#include "py/parsehelper.h"
32+
#include "py/compile.h"
33+
#include "py/runtime0.h"
34+
#include "py/runtime.h"
35+
#include "py/gc.h"
4236
#include "pyexec.h"
4337
#include "gccollect.h"
4438
#include MICROPY_HAL_H

esp8266/modpyb.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include <stdint.h>
2827
#include <stdio.h>
2928

30-
#include "mpconfig.h"
31-
#include "misc.h"
32-
#include "nlr.h"
33-
#include "qstr.h"
34-
#include "obj.h"
35-
#include "gc.h"
29+
#include "py/nlr.h"
30+
#include "py/obj.h"
31+
#include "py/gc.h"
3632
#include "gccollect.h"
3733
#include "pyexec.h"
3834
#include "pybstdio.h"

esp8266/pybstdio.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,11 @@
2525
*/
2626

2727
#include <stdio.h>
28-
#include <stdint.h>
2928
#include <string.h>
3029
#include <errno.h>
3130

32-
#include "mpconfig.h"
33-
#include "misc.h"
34-
#include "qstr.h"
35-
#include "misc.h"
36-
#include "obj.h"
37-
#include "stream.h"
31+
#include "py/obj.h"
32+
#include "py/stream.h"
3833
#include "pybstdio.h"
3934
#include MICROPY_HAL_H
4035

0 commit comments

Comments
 (0)