projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
edbc82b
)
Unconditionally include stdlib.h.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 28 Nov 2008 15:08:27 +0000
(15:08 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 28 Nov 2008 15:08:27 +0000
(15:08 +0000)
[r24123]
27 files changed:
include/libfirm/adt/xmalloc.h
patch
|
blob
|
history
ir/adt/array.c
patch
|
blob
|
history
ir/adt/pdeq.c
patch
|
blob
|
history
ir/adt/xmalloc.c
patch
|
blob
|
history
ir/ana/analyze_irg_args.c
patch
|
blob
|
history
ir/ana/callgraph.c
patch
|
blob
|
history
ir/ana/irloop.c
patch
|
blob
|
history
ir/ana/irscc.c
patch
|
blob
|
history
ir/ana/phiclass.c
patch
|
blob
|
history
ir/be/besched.c
patch
|
blob
|
history
ir/be/mips/mips_scheduler.c
patch
|
blob
|
history
ir/debug/debugger.c
patch
|
blob
|
history
ir/ir/irarch.c
patch
|
blob
|
history
ir/ir/irdump.c
patch
|
blob
|
history
ir/ir/irdumptxt.c
patch
|
blob
|
history
ir/ir/irgwalk.c
patch
|
blob
|
history
ir/libcore/lc_opts.c
patch
|
blob
|
history
ir/libcore/lc_opts_enum.c
patch
|
blob
|
history
ir/lower/lower_dw.c
patch
|
blob
|
history
ir/stat/firmstat.c
patch
|
blob
|
history
ir/stat/pattern_dmp.c
patch
|
blob
|
history
ir/tr/type.c
patch
|
blob
|
history
ir/tr/typewalk.c
patch
|
blob
|
history
ir/tv/fltcalc.c
patch
|
blob
|
history
ir/tv/strcalc.c
patch
|
blob
|
history
ir/tv/tv.c
patch
|
blob
|
history
win32/config.h
patch
|
blob
|
history
diff --git
a/include/libfirm/adt/xmalloc.h
b/include/libfirm/adt/xmalloc.h
index
0d292ca
..
d9d8d75
100644
(file)
--- a/
include/libfirm/adt/xmalloc.h
+++ b/
include/libfirm/adt/xmalloc.h
@@
-91,9
+91,7
@@
char *xstrdup(const char *str);
/* Includes for alloca() */
/* Includes for alloca() */
-#if defined(__FreeBSD__)
-#include <stdlib.h>
-#elif defined(_WIN32)
+#ifdef _WIN32
#include <malloc.h>
#endif
#ifdef HAVE_ALLOCA_H
#include <malloc.h>
#endif
#ifdef HAVE_ALLOCA_H
diff --git
a/ir/adt/array.c
b/ir/adt/array.c
index
ad721ad
..
84674e3
100644
(file)
--- a/
ir/adt/array.c
+++ b/
ir/adt/array.c
@@
-26,9
+26,7
@@
#include "config.h"
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "array_t.h"
#include "xmalloc.h"
#include "array_t.h"
#include "xmalloc.h"
diff --git
a/ir/adt/pdeq.c
b/ir/adt/pdeq.c
index
fd73298
..
09bf872
100644
(file)
--- a/
ir/adt/pdeq.c
+++ b/
ir/adt/pdeq.c
@@
-29,9
+29,7
@@
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
diff --git
a/ir/adt/xmalloc.c
b/ir/adt/xmalloc.c
index
902779e
..
79d7a63
100644
(file)
--- a/
ir/adt/xmalloc.c
+++ b/
ir/adt/xmalloc.c
@@
-31,9
+31,7
@@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "xmalloc.h"
#include "error.h"
#include "xmalloc.h"
#include "error.h"
diff --git
a/ir/ana/analyze_irg_args.c
b/ir/ana/analyze_irg_args.c
index
af364c2
..
3054756
100644
(file)
--- a/
ir/ana/analyze_irg_args.c
+++ b/
ir/ana/analyze_irg_args.c
@@
-25,9
+25,7
@@
*/
#include "config.h"
*/
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "irouts.h"
#include "irnode_t.h"
#include "irouts.h"
#include "irnode_t.h"
diff --git
a/ir/ana/callgraph.c
b/ir/ana/callgraph.c
index
78b8add
..
3351160
100644
(file)
--- a/
ir/ana/callgraph.c
+++ b/
ir/ana/callgraph.c
@@
-29,9
+29,7
@@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
-# ifdef HAVE_STDLIB_H
#include <stdlib.h>
#include <stdlib.h>
-#endif
#include "callgraph.h"
#include "callgraph.h"
diff --git
a/ir/ana/irloop.c
b/ir/ana/irloop.c
index
2f655a6
..
21aef6d
100644
(file)
--- a/
ir/ana/irloop.c
+++ b/
ir/ana/irloop.c
@@
-29,9
+29,7
@@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "irloop_t.h"
#include "irprog_t.h"
#include "irloop_t.h"
#include "irprog_t.h"
diff --git
a/ir/ana/irscc.c
b/ir/ana/irscc.c
index
931ad3f
..
7c3d8ab
100644
(file)
--- a/
ir/ana/irscc.c
+++ b/
ir/ana/irscc.c
@@
-32,9
+32,7
@@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "irloop_t.h"
#include "irloop_t.h"
diff --git
a/ir/ana/phiclass.c
b/ir/ana/phiclass.c
index
85c5e6e
..
421cef9
100644
(file)
--- a/
ir/ana/phiclass.c
+++ b/
ir/ana/phiclass.c
@@
-26,9
+26,7
@@
*/
#include "config.h"
*/
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "irnode.h"
#include "debug.h"
#include "irnode.h"
#include "debug.h"
diff --git
a/ir/be/besched.c
b/ir/be/besched.c
index
0a84ac4
..
07c2ab0
100644
(file)
--- a/
ir/be/besched.c
+++ b/
ir/be/besched.c
@@
-25,9
+25,7
@@
*/
#include "config.h"
*/
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "impl.h"
#include "irprintf.h"
#include "impl.h"
#include "irprintf.h"
diff --git
a/ir/be/mips/mips_scheduler.c
b/ir/be/mips/mips_scheduler.c
index
9eb93c8
..
156d056
100644
(file)
--- a/
ir/be/mips/mips_scheduler.c
+++ b/
ir/be/mips/mips_scheduler.c
@@
-25,10
+25,6
@@
*/
#include "config.h"
*/
#include "config.h"
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
#include "mips_scheduler.h"
#include "../besched_t.h"
#include "mips_scheduler.h"
#include "../besched_t.h"
diff --git
a/ir/debug/debugger.c
b/ir/debug/debugger.c
index
9117378
..
313dc11
100644
(file)
--- a/
ir/debug/debugger.c
+++ b/
ir/debug/debugger.c
@@
-31,13
+31,9
@@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-
#endif
#endif
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#include <stdlib.h>
-#endif
-
#include <stdio.h>
#include <signal.h>
#include <stdio.h>
#include <signal.h>
diff --git
a/ir/ir/irarch.c
b/ir/ir/irarch.c
index
a3b7413
..
387310f
100644
(file)
--- a/
ir/ir/irarch.c
+++ b/
ir/ir/irarch.c
@@
-29,10
+29,7
@@
*/
#include "config.h"
*/
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
#include <assert.h>
#include "irnode_t.h"
#include <assert.h>
#include "irnode_t.h"
diff --git
a/ir/ir/irdump.c
b/ir/ir/irdump.c
index
88d42d6
..
9d09826
100644
(file)
--- a/
ir/ir/irdump.c
+++ b/
ir/ir/irdump.c
@@
-28,9
+28,7
@@
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#include <stdlib.h>
-#endif
#include <stdarg.h>
#include "firm_common_t.h"
#include <stdarg.h>
#include "firm_common_t.h"
diff --git
a/ir/ir/irdumptxt.c
b/ir/ir/irdumptxt.c
index
b5fdb42
..
9a2df21
100644
(file)
--- a/
ir/ir/irdumptxt.c
+++ b/
ir/ir/irdumptxt.c
@@
-28,10
+28,7
@@
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#include <stdlib.h>
-#endif
-
#include <stdarg.h>
#include "irdump_t.h"
#include <stdarg.h>
#include "irdump_t.h"
diff --git
a/ir/ir/irgwalk.c
b/ir/ir/irgwalk.c
index
7a32f7c
..
78daade
100644
(file)
--- a/
ir/ir/irgwalk.c
+++ b/
ir/ir/irgwalk.c
@@
-29,9
+29,7
@@
*/
#include "config.h"
*/
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "irnode_t.h"
#include "irgraph_t.h"
#include "irnode_t.h"
#include "irgraph_t.h"
diff --git
a/ir/libcore/lc_opts.c
b/ir/libcore/lc_opts.c
index
f55f5e3
..
4d6b205
100644
(file)
--- a/
ir/libcore/lc_opts.c
+++ b/
ir/libcore/lc_opts.c
@@
-20,12
+20,11
@@
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <string.h>
#include <ctype.h>
-#if defined(__FreeBSD__)
-#include <stdlib.h>
-#elif defined(_WIN32)
+#ifdef _WIN32
#include <malloc.h>
#endif
#ifdef HAVE_ALLOCA_H
#include <malloc.h>
#endif
#ifdef HAVE_ALLOCA_H
diff --git
a/ir/libcore/lc_opts_enum.c
b/ir/libcore/lc_opts_enum.c
index
cb66e54
..
75ce0ff
100644
(file)
--- a/
ir/libcore/lc_opts_enum.c
+++ b/
ir/libcore/lc_opts_enum.c
@@
-15,9
+15,7
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#if defined(__FreeBSD__)
-#include <stdlib.h>
-#elif defined(_WIN32)
+#ifdef _WIN32
#include <malloc.h>
#endif
#ifdef HAVE_ALLOCA_H
#include <malloc.h>
#endif
#ifdef HAVE_ALLOCA_H
diff --git
a/ir/lower/lower_dw.c
b/ir/lower/lower_dw.c
index
fc1d2cb
..
464f5a3
100644
(file)
--- a/
ir/lower/lower_dw.c
+++ b/
ir/lower/lower_dw.c
@@
-29,10
+29,7
@@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
#include <assert.h>
#include "error.h"
#include <assert.h>
#include "error.h"
diff --git
a/ir/stat/firmstat.c
b/ir/stat/firmstat.c
index
94e53bf
..
623fd54
100644
(file)
--- a/
ir/stat/firmstat.c
+++ b/
ir/stat/firmstat.c
@@
-28,10
+28,8
@@
#ifdef FIRM_STATISTICS
#include <stdio.h>
#ifdef FIRM_STATISTICS
#include <stdio.h>
+#include <stdlib.h>
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
diff --git
a/ir/stat/pattern_dmp.c
b/ir/stat/pattern_dmp.c
index
1aee6e8
..
ef7136a
100644
(file)
--- a/
ir/stat/pattern_dmp.c
+++ b/
ir/stat/pattern_dmp.c
@@
-28,9
+28,7
@@
#ifdef FIRM_STATISTICS
#include <stdio.h>
#ifdef FIRM_STATISTICS
#include <stdio.h>
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "ident.h"
#include "irop_t.h"
#include "ident.h"
#include "irop_t.h"
diff --git
a/ir/tr/type.c
b/ir/tr/type.c
index
0dbe259
..
764b657
100644
(file)
--- a/
ir/tr/type.c
+++ b/
ir/tr/type.c
@@
-50,10
+50,7
@@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
#include <stddef.h>
#include "type_t.h"
#include <stddef.h>
#include "type_t.h"
diff --git
a/ir/tr/typewalk.c
b/ir/tr/typewalk.c
index
fde9e46
..
363fddb
100644
(file)
--- a/
ir/tr/typewalk.c
+++ b/
ir/tr/typewalk.c
@@
-31,10
+31,7
@@
*/
#include "config.h"
*/
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
+#include <stdlib.h>
#include <stdio.h>
#include "entity_t.h"
#include <stdio.h>
#include "entity_t.h"
diff --git
a/ir/tv/fltcalc.c
b/ir/tv/fltcalc.c
index
47251e8
..
ba377b1
100644
(file)
--- a/
ir/tv/fltcalc.c
+++ b/
ir/tv/fltcalc.c
@@
-42,9
+42,7
@@
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <stdio.h>
#include <assert.h>
diff --git
a/ir/tv/strcalc.c
b/ir/tv/strcalc.c
index
ac54d0a
..
13e97da
100644
(file)
--- a/
ir/tv/strcalc.c
+++ b/
ir/tv/strcalc.c
@@
-27,9
+27,7
@@
#include "config.h"
#include "config.h"
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#ifdef HAVE_STRING_H
# include <string.h> /* memset/memcmp */
#endif
#ifdef HAVE_STRING_H
# include <string.h> /* memset/memcmp */
#endif
diff --git
a/ir/tv/tv.c
b/ir/tv/tv.c
index
3e3d821
..
269b3e2
100644
(file)
--- a/
ir/tv/tv.c
+++ b/
ir/tv/tv.c
@@
-41,9
+41,7
@@
#ifdef HAVE_STRINGS_H
#include <strings.h> /* strings.h also includes bsd only function strcasecmp */
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h> /* strings.h also includes bsd only function strcasecmp */
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "tv_t.h"
#include "set.h" /* to store tarvals in */
#include "tv_t.h"
#include "set.h" /* to store tarvals in */
diff --git
a/win32/config.h
b/win32/config.h
index
963d3d7
..
c09ae46
100644
(file)
--- a/
win32/config.h
+++ b/
win32/config.h
@@
-26,9
+26,6
@@
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
/* Define to 1 if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */
/* Define to 1 if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */