projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the return type as parameter to the macros set_find() and set_insert().
[libfirm]
/
ir
/
ana
/
dfs_t.h
diff --git
a/ir/ana/dfs_t.h
b/ir/ana/dfs_t.h
index
4a91d8f
..
dbc4884
100644
(file)
--- a/
ir/ana/dfs_t.h
+++ b/
ir/ana/dfs_t.h
@@
-21,7
+21,6
@@
* @file dfs_t.h
* @author Sebastian Hack
* @date 21.04.2007
* @file dfs_t.h
* @author Sebastian Hack
* @date 21.04.2007
- * @version $Id$
* @brief
*
* depth first search internal stuff.
* @brief
*
* depth first search internal stuff.
@@
-40,8
+39,8
@@
struct dfs_node_t {
const void *ancestor;
int pre_num;
int max_pre_num;
const void *ancestor;
int pre_num;
int max_pre_num;
- int
post_num;
- int
level;
+ int post_num;
+ int level;
};
struct dfs_edge_t {
};
struct dfs_edge_t {
@@
-71,7
+70,7
@@
static dfs_node_t *_dfs_get_node(const dfs_t *self, const void *node)
dfs_node_t templ;
memset(&templ, 0, sizeof(templ));
templ.node = node;
dfs_node_t templ;
memset(&templ, 0, sizeof(templ));
templ.node = node;
- return set_insert(
self->nodes, &templ, sizeof(templ), HASH_PTR
(node));
+ return set_insert(
dfs_node_t, self->nodes, &templ, sizeof(templ), hash_ptr
(node));
}
#define _dfs_int_is_ancestor(n, m) ((m)->pre_num >= (n)->pre_num && (m)->pre_num <= (n)->max_pre_num)
}
#define _dfs_int_is_ancestor(n, m) ((m)->pre_num >= (n)->pre_num && (m)->pre_num <= (n)->max_pre_num)