##// END OF EJS Templates
cext: reorder #include...
Gregory Szorc -
r34439:b90e8da1 default
parent child Browse files
Show More
@@ -11,9 +11,9 b''
11
11
12 #define PY_SSIZE_T_CLEAN
12 #define PY_SSIZE_T_CLEAN
13 #include <Python.h>
13 #include <Python.h>
14 #include <limits.h>
14 #include <stdlib.h>
15 #include <stdlib.h>
15 #include <string.h>
16 #include <string.h>
16 #include <limits.h>
17
17
18 #include "bdiff.h"
18 #include "bdiff.h"
19 #include "bitmanipulation.h"
19 #include "bitmanipulation.h"
@@ -9,6 +9,7 b''
9
9
10 #define PY_SSIZE_T_CLEAN
10 #define PY_SSIZE_T_CLEAN
11 #include <Python.h>
11 #include <Python.h>
12
12 #include "util.h"
13 #include "util.h"
13
14
14 #ifdef IS_PY3K
15 #ifdef IS_PY3K
@@ -9,8 +9,8 b''
9 #include <Python.h>
9 #include <Python.h>
10
10
11 #include <assert.h>
11 #include <assert.h>
12 #include <stdlib.h>
12 #include <string.h>
13 #include <string.h>
13 #include <stdlib.h>
14
14
15 #include "charencode.h"
15 #include "charencode.h"
16 #include "util.h"
16 #include "util.h"
@@ -25,10 +25,10 b''
25 #include <stdlib.h>
25 #include <stdlib.h>
26 #include <string.h>
26 #include <string.h>
27
27
28 #include "util.h"
29 #include "bitmanipulation.h"
28 #include "bitmanipulation.h"
30 #include "compat.h"
29 #include "compat.h"
31 #include "mpatch.h"
30 #include "mpatch.h"
31 #include "util.h"
32
32
33 static char mpatch_doc[] = "Efficient binary patching.";
33 static char mpatch_doc[] = "Efficient binary patching.";
34 static PyObject *mpatch_Error;
34 static PyObject *mpatch_Error;
@@ -9,15 +9,15 b''
9
9
10 #define _ATFILE_SOURCE
10 #define _ATFILE_SOURCE
11 #include <Python.h>
11 #include <Python.h>
12 #include <errno.h>
12 #include <fcntl.h>
13 #include <fcntl.h>
13 #include <stdio.h>
14 #include <stdio.h>
14 #include <stdlib.h>
15 #include <stdlib.h>
15 #include <string.h>
16 #include <string.h>
16 #include <errno.h>
17
17
18 #ifdef _WIN32
18 #ifdef _WIN32
19 #include <io.h>
19 #include <windows.h>
20 #include <windows.h>
20 #include <io.h>
21 #else
21 #else
22 #include <dirent.h>
22 #include <dirent.h>
23 #include <sys/socket.h>
23 #include <sys/socket.h>
@@ -12,9 +12,9 b''
12 #include <stddef.h>
12 #include <stddef.h>
13 #include <string.h>
13 #include <string.h>
14
14
15 #include "bitmanipulation.h"
15 #include "charencode.h"
16 #include "charencode.h"
16 #include "util.h"
17 #include "util.h"
17 #include "bitmanipulation.h"
18
18
19 #ifdef IS_PY3K
19 #ifdef IS_PY3K
20 /* The mapping of Python types is meant to be temporary to get Python
20 /* The mapping of Python types is meant to be temporary to get Python
@@ -13,9 +13,9 b''
13 #include <stddef.h>
13 #include <stddef.h>
14 #include <string.h>
14 #include <string.h>
15
15
16 #include "bitmanipulation.h"
16 #include "charencode.h"
17 #include "charencode.h"
17 #include "util.h"
18 #include "util.h"
18 #include "bitmanipulation.h"
19
19
20 #ifdef IS_PY3K
20 #ifdef IS_PY3K
21 /* The mapping of Python types is meant to be temporary to get Python
21 /* The mapping of Python types is meant to be temporary to get Python
General Comments 0
You need to be logged in to leave comments. Login now