Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
efe34223
Commit
efe34223
authored
Mar 16, 2014
by
xbe
Browse files
py: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
parent
c93a2219
Changes
58
Hide whitespace changes
Inline
Side-by-side
py/asmthumb.c
View file @
efe34223
#include
<stdint.h>
#include
<stdio.h>
#include
<assert.h>
#include
<string.h>
...
...
py/binary.c
View file @
efe34223
#include
<stdlib.h>
#include
<stdint.h>
#include
<assert.h>
...
...
py/builtin.c
View file @
efe34223
#include
<stdint.h>
#include
<stdlib.h>
#include
<stdio.h>
#include
<stdarg.h>
#include
<string.h>
#include
<assert.h>
#include
"nlr.h"
...
...
py/builtinevex.c
View file @
efe34223
#include
<stdint.h>
#include
<stdlib.h>
#include
<stdio.h>
#include
<stdarg.h>
#include
<string.h>
#include
<assert.h>
#include
"nlr.h"
#include
"misc.h"
...
...
py/builtinimport.c
View file @
efe34223
#include
<stdint.h>
#include
<stdlib.h>
#include
<stdio.h>
#include
<stdarg.h>
#include
<string.h>
#include
<assert.h>
...
...
py/builtinmath.c
View file @
efe34223
#include
<stdint.h>
#include
<math.h>
#include
"misc.h"
...
...
py/builtinmp.c
View file @
efe34223
#include
<stdint.h>
#include
"misc.h"
#include
"mpconfig.h"
...
...
py/compile.c
View file @
efe34223
#include
<unistd.h>
#include
<stdlib.h>
#include
<stdbool.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
...
...
py/emitbc.c
View file @
efe34223
#include
<unistd.h>
#include
<stdlib.h>
#include
<stdbool.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
...
...
py/emitcommon.c
View file @
efe34223
#include
<unistd.h>
#include
<stdio.h>
#include
<stdint.h>
#include
<string.h>
#include
<assert.h>
#include
"misc.h"
...
...
py/emitcpy.c
View file @
efe34223
#include
<unistd.h>
#include
<stdlib.h>
#include
<stdbool.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
...
...
py/emitinlinethumb.c
View file @
efe34223
#include
<unistd.h>
#include
<stdlib.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
...
...
py/emitnative.c
View file @
efe34223
...
...
@@ -16,8 +16,7 @@
// for x in l[0:8]: can be compiled into a native loop if l has pointer type
#include
<unistd.h>
#include
<stdlib.h>
#include
<stdbool.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
...
...
py/emitpass1.c
View file @
efe34223
#include
<unistd.h>
#include
<stdlib.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
#include
<assert.h>
#include
"misc.h"
...
...
py/formatfloat.c
View file @
efe34223
...
...
@@ -13,7 +13,6 @@
***********************************************************************/
#include
<stdint.h>
#include
<stdlib.h>
#include
"mpconfig.h"
...
...
py/gc.c
View file @
efe34223
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdint.h>
#include
<string.h>
#include
"mpconfig.h"
...
...
py/lexer.c
View file @
efe34223
/* lexer.c -- simple tokeniser for Python implementation
*/
#include
<stdbool.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<string.h>
#include
<assert.h>
#include
"misc.h"
...
...
py/lexerstr.c
View file @
efe34223
#include
<stdint.h>
#include
<stdio.h>
#include
"misc.h"
#include
"mpconfig.h"
...
...
py/lexerunix.c
View file @
efe34223
#include
<stdint.h>
#include
<stdio.h>
#include
<unistd.h>
#include
<fcntl.h>
...
...
@@ -11,6 +10,9 @@
#if MICROPY_ENABLE_LEXER_UNIX
#include
<sys/stat.h>
#include
<sys/types.h>
mp_lexer_t
*
mp_lexer_new_from_file
(
const
char
*
filename
)
{
int
fd
=
open
(
filename
,
O_RDONLY
);
if
(
fd
<
0
)
{
...
...
py/malloc.c
View file @
efe34223
#include
<unistd.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment