projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the unused parameter const arch_env_t *arch_env from be_reload().
[libfirm]
/
ir
/
common
/
irtools.h
diff --git
a/ir/common/irtools.h
b/ir/common/irtools.h
index
2367fc5
..
ccec773
100644
(file)
--- a/
ir/common/irtools.h
+++ b/
ir/common/irtools.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-26,13
+26,10
@@
#ifndef FIRM_COMMON_IRTOOLS_H
#define FIRM_COMMON_IRTOOLS_H
#ifndef FIRM_COMMON_IRTOOLS_H
#define FIRM_COMMON_IRTOOLS_H
-#include "firm_config.h"
#include "firm_types.h"
#include "firm_types.h"
-#ifdef WITH_LIBCORE
-#include <libcore/lc_opts.h>
+#include "lc_opts.h"
lc_opt_entry_t *firm_opt_get_root(void);
lc_opt_entry_t *firm_opt_get_root(void);
-#endif
#include "pset.h"
#include "pset.h"
@@
-41,6
+38,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))
#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.
/**
* Three valued compare as demanded by e.g. qsort(3)
* @param c A number.