cext: reorder #include
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 02 Oct 2017 19:06:00 +0100
changeset 34438 b90e8da190da
parent 34437 ce26a13869fb
child 34439 88e83a618de0
cext: reorder #include We mostly abide by this style. In one case, a blank line was inserted to prevent a local `#include "file"` from coming before a `#include <file>`. Differential Revision: https://phab.mercurial-scm.org/D908
mercurial/cext/bdiff.c
mercurial/cext/dirs.c
mercurial/cext/manifest.c
mercurial/cext/mpatch.c
mercurial/cext/osutil.c
mercurial/cext/parsers.c
mercurial/cext/revlog.c
--- a/mercurial/cext/bdiff.c	Mon Oct 02 19:02:43 2017 +0100
+++ b/mercurial/cext/bdiff.c	Mon Oct 02 19:06:00 2017 +0100
@@ -11,9 +11,9 @@
 
 #define PY_SSIZE_T_CLEAN
 #include <Python.h>
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
-#include <limits.h>
 
 #include "bdiff.h"
 #include "bitmanipulation.h"
--- a/mercurial/cext/dirs.c	Mon Oct 02 19:02:43 2017 +0100
+++ b/mercurial/cext/dirs.c	Mon Oct 02 19:06:00 2017 +0100
@@ -9,6 +9,7 @@
 
 #define PY_SSIZE_T_CLEAN
 #include <Python.h>
+
 #include "util.h"
 
 #ifdef IS_PY3K
--- a/mercurial/cext/manifest.c	Mon Oct 02 19:02:43 2017 +0100
+++ b/mercurial/cext/manifest.c	Mon Oct 02 19:06:00 2017 +0100
@@ -9,8 +9,8 @@
 #include <Python.h>
 
 #include <assert.h>
+#include <stdlib.h>
 #include <string.h>
-#include <stdlib.h>
 
 #include "charencode.h"
 #include "util.h"
--- a/mercurial/cext/mpatch.c	Mon Oct 02 19:02:43 2017 +0100
+++ b/mercurial/cext/mpatch.c	Mon Oct 02 19:06:00 2017 +0100
@@ -25,10 +25,10 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "util.h"
 #include "bitmanipulation.h"
 #include "compat.h"
 #include "mpatch.h"
+#include "util.h"
 
 static char mpatch_doc[] = "Efficient binary patching.";
 static PyObject *mpatch_Error;
--- a/mercurial/cext/osutil.c	Mon Oct 02 19:02:43 2017 +0100
+++ b/mercurial/cext/osutil.c	Mon Oct 02 19:06:00 2017 +0100
@@ -9,15 +9,15 @@
 
 #define _ATFILE_SOURCE
 #include <Python.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <errno.h>
 
 #ifdef _WIN32
+#include <io.h>
 #include <windows.h>
-#include <io.h>
 #else
 #include <dirent.h>
 #include <sys/socket.h>
--- a/mercurial/cext/parsers.c	Mon Oct 02 19:02:43 2017 +0100
+++ b/mercurial/cext/parsers.c	Mon Oct 02 19:06:00 2017 +0100
@@ -12,9 +12,9 @@
 #include <stddef.h>
 #include <string.h>
 
+#include "bitmanipulation.h"
 #include "charencode.h"
 #include "util.h"
-#include "bitmanipulation.h"
 
 #ifdef IS_PY3K
 /* The mapping of Python types is meant to be temporary to get Python
--- a/mercurial/cext/revlog.c	Mon Oct 02 19:02:43 2017 +0100
+++ b/mercurial/cext/revlog.c	Mon Oct 02 19:06:00 2017 +0100
@@ -13,9 +13,9 @@
 #include <stddef.h>
 #include <string.h>
 
+#include "bitmanipulation.h"
 #include "charencode.h"
 #include "util.h"
-#include "bitmanipulation.h"
 
 #ifdef IS_PY3K
 /* The mapping of Python types is meant to be temporary to get Python