Skip to content

Commit efe3422

Browse files
committed
py: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
1 parent c93a221 commit efe3422

58 files changed

Lines changed: 19 additions & 111 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

py/asmthumb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <stdint.h>
21
#include <stdio.h>
32
#include <assert.h>
43
#include <string.h>

py/binary.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <stdlib.h>
21
#include <stdint.h>
32
#include <assert.h>
43

py/builtin.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
#include <stdint.h>
2-
#include <stdlib.h>
31
#include <stdio.h>
4-
#include <stdarg.h>
5-
#include <string.h>
62
#include <assert.h>
73

84
#include "nlr.h"

py/builtinevex.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#include <stdint.h>
2-
#include <stdlib.h>
3-
#include <stdio.h>
4-
#include <stdarg.h>
5-
#include <string.h>
6-
#include <assert.h>
72

83
#include "nlr.h"
94
#include "misc.h"

py/builtinimport.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <stdint.h>
22
#include <stdlib.h>
33
#include <stdio.h>
4-
#include <stdarg.h>
54
#include <string.h>
65
#include <assert.h>
76

py/builtinmath.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <stdint.h>
21
#include <math.h>
32

43
#include "misc.h"

py/builtinmp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <stdint.h>
21

32
#include "misc.h"
43
#include "mpconfig.h"

py/compile.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#include <unistd.h>
2-
#include <stdlib.h>
1+
#include <stdbool.h>
32
#include <stdint.h>
43
#include <stdio.h>
54
#include <string.h>

py/emitbc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#include <unistd.h>
2-
#include <stdlib.h>
1+
#include <stdbool.h>
32
#include <stdint.h>
43
#include <stdio.h>
54
#include <string.h>

py/emitcommon.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include <unistd.h>
2-
#include <stdio.h>
32
#include <stdint.h>
4-
#include <string.h>
53
#include <assert.h>
64

75
#include "misc.h"

0 commit comments

Comments
 (0)