X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Firtools.h;h=188725c705515e765bfeda574284b72d9fb90d8c;hb=0cc8bfc863da28d3799e9eca1d1765d564b6e573;hp=2367fc56b13243f0e676e4dce12575c0a90ed755;hpb=d8fb82e90dd2f5eeabef30d91e5cde423820c006;p=libfirm diff --git a/ir/common/irtools.h b/ir/common/irtools.h index 2367fc56b..188725c70 100644 --- a/ir/common/irtools.h +++ b/ir/common/irtools.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -29,10 +29,8 @@ #include "firm_config.h" #include "firm_types.h" -#ifdef WITH_LIBCORE -#include +#include "lc_opts.h" lc_opt_entry_t *firm_opt_get_root(void); -#endif #include "pset.h" @@ -41,6 +39,10 @@ lc_opt_entry_t *firm_opt_get_root(void); #define MAX(x, y) ((x) > (y) ? (x) : (y)) #define MIN(x, y) ((x) < (y) ? (x) : (y)) +/* calculate the address of the one past last element of an array whose size is + * known statically */ +#define ENDOF(x) ((x) + sizeof(x) / sizeof(*(x))) + /** * Three valued compare as demanded by e.g. qsort(3) * @param c A number.