summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
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/libcore
parentd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (diff)
Reorganize include directives
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_appendable.c7
-rw-r--r--ir/libcore/lc_opts.c16
-rw-r--r--ir/libcore/lc_opts_enum.c8
-rw-r--r--ir/libcore/lc_printf.c18
4 files changed, 24 insertions, 25 deletions
diff --git a/ir/libcore/lc_appendable.c b/ir/libcore/lc_appendable.c
index 5326ecf..afc0dc4 100644
--- a/ir/libcore/lc_appendable.c
+++ b/ir/libcore/lc_appendable.c
@@ -2,13 +2,12 @@
* This file is part of libFirm.
* Copyright (C) 2012 IPD Goos, Universit"at Karlsruhe, Germany
*/
-#include <stdlib.h>
+#include "lc_printf.h"
+#include "util.h"
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-#include "util.h"
-#include "lc_printf.h"
-
/* Default appendable implementations */
int lc_appendable_snwadd(lc_appendable_t *app, const char *str, size_t len,
diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c
index ec35e6f..2e90304 100644
--- a/ir/libcore/lc_opts.c
+++ b/ir/libcore/lc_opts.c
@@ -2,19 +2,19 @@
* This file is part of libFirm.
* Copyright (C) 2012 IPD Goos, Universit"at Karlsruhe, Germany
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-#include <ctype.h>
-
#include "lc_opts_t.h"
-#include "lc_opts_enum.h"
+
#include "hashptr.h"
+#include "lc_opts_enum.h"
#include "lc_printf.h"
+#include "obst.h"
#include "util.h"
#include "xmalloc.h"
-#include "obst.h"
+#include <ctype.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#define OPT_DELIM '-'
diff --git a/ir/libcore/lc_opts_enum.c b/ir/libcore/lc_opts_enum.c
index ecddfb9..6db1955 100644
--- a/ir/libcore/lc_opts_enum.c
+++ b/ir/libcore/lc_opts_enum.c
@@ -2,13 +2,13 @@
* This file is part of libFirm.
* Copyright (C) 2012 Universitaet Karlsruhe
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include "lc_opts_enum.h"
#include "lc_opts_t.h"
-#include "lc_opts_enum.h"
#include "util.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#define DECL_CB(N, op) \
bool lc_opt_enum_##N##_cb(void *const data, size_t const len, char const *const arg) \
diff --git a/ir/libcore/lc_printf.c b/ir/libcore/lc_printf.c
index e511b98..31b025e 100644
--- a/ir/libcore/lc_printf.c
+++ b/ir/libcore/lc_printf.c
@@ -9,18 +9,18 @@
* @author Sebastian Hack
* @date 4.12.2005
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <string.h>
-#include <assert.h>
-#include <ctype.h>
-
-#include "xmalloc.h"
#include "lc_printf.h"
+
#include "hashptr.h"
-#include "util.h"
#include "set.h"
+#include "util.h"
+#include "xmalloc.h"
+#include <assert.h>
+#include <ctype.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
/* printf implementation */