From: Sebastian Buchwald Date: Mon, 13 Oct 2008 16:29:15 +0000 (+0000) Subject: Always include config.h. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=be2960bc9ccda691eba3a031ec3a37d480c07f01;p=libfirm Always include config.h. [r22843] --- diff --git a/ir/ana/absgraph.c b/ir/ana/absgraph.c index efd9c0e31..e2c9bc243 100644 --- a/ir/ana/absgraph.c +++ b/ir/ana/absgraph.c @@ -26,9 +26,7 @@ * * Abstract graph implementations for the CFG of a ir_graph. */ -#ifdef HAVE_CONFIG_H #include -#endif #include "irgraph_t.h" #include "iredges_t.h" diff --git a/ir/ana/dfs.c b/ir/ana/dfs.c index 4a668068c..9fedfee73 100644 --- a/ir/ana/dfs.c +++ b/ir/ana/dfs.c @@ -26,9 +26,7 @@ * * Simple depth first search on CFGs. */ -#ifdef HAVE_CONFIG_H #include -#endif #include diff --git a/ir/ana/irlivechk.c b/ir/ana/irlivechk.c index cb464855d..2b9038ef3 100644 --- a/ir/ana/irlivechk.c +++ b/ir/ana/irlivechk.c @@ -37,9 +37,7 @@ * * The precomputation remains valid as long as the CFG is not altered. */ -#ifdef HAVE_CONFIG_H #include -#endif #include diff --git a/ir/ana/irloop.c b/ir/ana/irloop.c index 6ef5061f9..2f655a625 100644 --- a/ir/ana/irloop.c +++ b/ir/ana/irloop.c @@ -24,9 +24,7 @@ * @date 7.2002 * @version $Id: irloop_t.h 17143 2008-01-02 20:56:33Z beck $ */ -#ifdef HAVE_CONFIG_H # include "config.h" -#endif #ifdef HAVE_STRING_H # include diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c index 9a608fda9..feb2b79eb 100644 --- a/ir/be/becopyheur4.c +++ b/ir/be/becopyheur4.c @@ -29,7 +29,7 @@ * (also known as "heur3" :) * Performs simple copy minimization. */ -#include "config.h" /* HAVE_CONFIG_H */ +#include "config.h" #define DISABLE_STATEV diff --git a/ir/be/becopyilp.c b/ir/be/becopyilp.c index 31205882d..53e54e692 100644 --- a/ir/be/becopyilp.c +++ b/ir/be/becopyilp.c @@ -24,7 +24,7 @@ * @date 28.02.2006 * @version $Id$ */ -#include "config.h" /* HAVE_CONFIG_H */ +#include "config.h" #include "irtools.h" #include "irprintf.h" diff --git a/ir/be/becopyilp1.c b/ir/be/becopyilp1.c index 44c16d4a8..b248d18cb 100644 --- a/ir/be/becopyilp1.c +++ b/ir/be/becopyilp1.c @@ -24,7 +24,7 @@ * @date 17.05.2005 * @version $Id$ */ -#include "config.h" /* HAVE_CONFIG_H */ +#include "config.h" #ifdef WITH_ILP diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c index b95deea12..06cb43e61 100644 --- a/ir/be/becopyilp2.c +++ b/ir/be/becopyilp2.c @@ -44,7 +44,7 @@ * * x_nc, y_ij \in N, w_ij \in R^+ */ -#include "config.h" /* HAVE_CONFIG_H */ +#include "config.h" #ifdef WITH_ILP diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c index 01435383f..ec8c5748a 100644 --- a/ir/be/bemodule.c +++ b/ir/be/bemodule.c @@ -24,9 +24,7 @@ * @date 29.09.2005 * @version $Id$ */ -#ifndef HAVE_CONFIG_H #include "config.h" -#endif #include diff --git a/ir/debug/firm_ycomp.c b/ir/debug/firm_ycomp.c index b07bae3a9..36f5916f5 100644 --- a/ir/debug/firm_ycomp.c +++ b/ir/debug/firm_ycomp.c @@ -24,7 +24,7 @@ * @date 16.11.2006 * @version $Id$ */ -#include "config.h" /* HAVE_CONFIG_H */ +#include "config.h" #include "assert.h" #include "irhooks.h" diff --git a/ir/net/firmnet.c b/ir/net/firmnet.c index 82a40dcbe..3c6df30f2 100644 --- a/ir/net/firmnet.c +++ b/ir/net/firmnet.c @@ -25,7 +25,7 @@ * @version $Id$ */ -#include "config.h" /* HAVE_CONFIG_H */ +#include "config.h" #include "firmnet_t.h" diff --git a/ir/obstack/obstack.c b/ir/obstack/obstack.c index 3df7b9896..6d11674f1 100644 --- a/ir/obstack/obstack.c +++ b/ir/obstack/obstack.c @@ -17,9 +17,7 @@ License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "obstack.h" @@ -94,7 +92,7 @@ int obstack_exit_failure = EXIT_FAILURE; (*(void (*) (void *)) (h)->freefun) ((old_chunk)); \ } while (0) - + /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). Objects start on multiples of ALIGNMENT (0 means use default). CHUNKFUN is the function to use to allocate chunks, @@ -295,7 +293,7 @@ _obstack_allocated_p (struct obstack *h, void *obj) } return lp != 0; } - + /* Free objects in obstack H, including OBJ and everything allocate more recently than OBJ. If OBJ is zero, free everything in H. */ diff --git a/ir/obstack_win/obstack.c b/ir/obstack_win/obstack.c index c1ef4cb15..2c82bf86b 100644 --- a/ir/obstack_win/obstack.c +++ b/ir/obstack_win/obstack.c @@ -20,9 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include "obstack.h" @@ -138,7 +136,7 @@ struct obstack *_obstack; } while (0) #endif - + /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). Objects start on multiples of ALIGNMENT (0 means use default). CHUNKFUN is the function to use to allocate chunks, @@ -361,7 +359,7 @@ _obstack_allocated_p (h, obj) } return lp != 0; } - + /* Free objects in obstack H, including OBJ and everything allocate more recently than OBJ. If OBJ is zero, free everything in H. */ @@ -435,7 +433,7 @@ obstack_free (h, obj) /* obj is not in any of the chunks! */ abort (); } - + int _obstack_memory_used (h) struct obstack *h; @@ -449,7 +447,7 @@ _obstack_memory_used (h) } return nbytes; } - + /* Define the error handler. */ #ifndef _ # if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC @@ -468,7 +466,7 @@ print_and_abort () fputs (_("memory exhausted\n"), stderr); exit (obstack_exit_failure); } - + #if 0 /* These are now turned off because the applications do not use it and it uses bcopy via obstack_grow, which causes trouble on sysV. */