summaryrefslogtreecommitdiffhomepage
path: root/ir/adt
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-17 07:14:48 +0100
committerMatthias Braun <matze@braunis.de>2017-02-17 08:07:41 +0100
commit06cb80c5b7f318fb1fc0caef3adcf84b9802df6c (patch)
tree72c596abcda06468ebe41d0038f520e10f19acc3 /ir/adt
parentd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (diff)
Reorganize include directives
Diffstat (limited to 'ir/adt')
-rw-r--r--ir/adt/array.c6
-rw-r--r--ir/adt/bipartite.c6
-rw-r--r--ir/adt/bitset.c2
-rw-r--r--ir/adt/gaussjordan.c2
-rw-r--r--ir/adt/gaussseidel.c4
-rw-r--r--ir/adt/hungarian.c13
-rw-r--r--ir/adt/pmap.c2
-rw-r--r--ir/adt/set.c4
-rw-r--r--ir/adt/xmalloc.c8
9 files changed, 23 insertions, 24 deletions
diff --git a/ir/adt/array.c b/ir/adt/array.c
index 5bedec2..50a44fa 100644
--- a/ir/adt/array.c
+++ b/ir/adt/array.c
@@ -8,12 +8,12 @@
* @brief Array --- dynamic & flexible arrays.
* @author Markus Armbruster
*/
-#include <stdlib.h>
-
#include "array.h"
+
+#include "fourcc.h"
#include "util.h"
#include "xmalloc.h"
-#include "fourcc.h"
+#include <stdlib.h>
#define ARR_D_MAGIC FOURCC('A','R','R','D')
#define ARR_F_MAGIC FOURCC('A','R','R','F')
diff --git a/ir/adt/bipartite.c b/ir/adt/bipartite.c
index 2cb6814..7e49e75 100644
--- a/ir/adt/bipartite.c
+++ b/ir/adt/bipartite.c
@@ -8,12 +8,12 @@
* @brief Specialized implementation for perfect bipartite matching.
* @author Sebastian Hack
*/
-#include <stdio.h>
-#include <assert.h>
+#include "bipartite.h"
#include "bitset.h"
-#include "bipartite.h"
#include "xmalloc.h"
+#include <assert.h>
+#include <stdio.h>
struct bipartite_t {
unsigned n_left;
diff --git a/ir/adt/bitset.c b/ir/adt/bitset.c
index 9e37d65..5ccc1ef 100644
--- a/ir/adt/bitset.c
+++ b/ir/adt/bitset.c
@@ -2,8 +2,8 @@
* This file is part of libFirm.
* Copyright (C) 2015 University of Karlsruhe.
*/
-
#include "bitset.h"
+
#include "irprintf.h"
void bitset_fprint(FILE *const file, bitset_t const *const bs)
diff --git a/ir/adt/gaussjordan.c b/ir/adt/gaussjordan.c
index 5a3ebe7..4d13949 100644
--- a/ir/adt/gaussjordan.c
+++ b/ir/adt/gaussjordan.c
@@ -27,9 +27,9 @@
/*------------------------------------------------------*/
#include "gaussjordan.h"
+#include "xmalloc.h"
#include <math.h>
#include <stdlib.h>
-#include "xmalloc.h"
#define SMALL 0.00001
diff --git a/ir/adt/gaussseidel.c b/ir/adt/gaussseidel.c
index b060aae..e752ea1 100644
--- a/ir/adt/gaussseidel.c
+++ b/ir/adt/gaussseidel.c
@@ -1,10 +1,10 @@
#include "gaussseidel.h"
+#include "util.h"
+#include "xmalloc.h"
#include <assert.h>
#include <math.h>
#include <string.h>
-#include "xmalloc.h"
-#include "util.h"
typedef struct {
double v;
diff --git a/ir/adt/hungarian.c b/ir/adt/hungarian.c
index 40fcb32..a0666cf 100644
--- a/ir/adt/hungarian.c
+++ b/ir/adt/hungarian.c
@@ -30,16 +30,15 @@
*/
#include "hungarian.h"
-#include <limits.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-
-#include "util.h"
-#include "xmalloc.h"
#include "debug.h"
#include "panic.h"
#include "raw_bitset.h"
+#include "util.h"
+#include "xmalloc.h"
+#include <assert.h>
+#include <limits.h>
+#include <stdio.h>
+#include <stdlib.h>
DEBUG_ONLY(static firm_dbg_module_t *dbg;)
diff --git a/ir/adt/pmap.c b/ir/adt/pmap.c
index 75d4ac6..e02fd8d 100644
--- a/ir/adt/pmap.c
+++ b/ir/adt/pmap.c
@@ -11,8 +11,8 @@
*/
#include "pmap.h"
-#include "set.h"
#include "hashptr.h"
+#include "set.h"
#define INITIAL_SLOTS 64
diff --git a/ir/adt/set.c b/ir/adt/set.c
index d948b62..7af226a 100644
--- a/ir/adt/set.c
+++ b/ir/adt/set.c
@@ -42,9 +42,9 @@
#endif
#ifdef PSET
-# include "pset.h"
+#include "pset.h"
#else
-# include "set.h"
+#include "set.h"
#endif
#include <assert.h>
diff --git a/ir/adt/xmalloc.c b/ir/adt/xmalloc.c
index 61b26f8..a742568 100644
--- a/ir/adt/xmalloc.c
+++ b/ir/adt/xmalloc.c
@@ -8,12 +8,12 @@
* @brief implementation of xmalloc & friends
* @author Markus Armbruster
*/
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include "xmalloc.h"
#include "funcattr.h"
-#include "xmalloc.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
static FIRM_NORETURN xnomem(void)
{