diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-05-04 21:58:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-05-04 21:58:09 (GMT) |
commit | 4d0451c1153eb572f5ab0833c0c0911dfdc5f11a (patch) | |
tree | 6fb1690ded59d323bb21ac200dabb69dca528f2d /src/gtkext/graph/node.h | |
parent | 08adf78fbff30d213891a533fbf43d91816b166a (diff) |
Reordered slot indexes in order to avoid edges crossings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@525 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/graph/node.h')
-rw-r--r-- | src/gtkext/graph/node.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gtkext/graph/node.h b/src/gtkext/graph/node.h index ab7d0da..502b366 100644 --- a/src/gtkext/graph/node.h +++ b/src/gtkext/graph/node.h @@ -146,7 +146,14 @@ GtkBufferView *find_graph_view_by_start_address(GtkBufferView **, size_t, const GGraphNode *convert_blocks_into_nodes(GInstrBlock *, GtkBufferView **, size_t); /* Recherche le noeud contenant une instruction donnée. */ -GGraphNode *find_node_for_instruction(GGraphNode *, GArchInstruction *); +GGraphNode *_find_node_for_instruction(GGraphNode *, GArchInstruction *, bool); + + +#define find_node_for_first_instruction(nds, ins) \ + _find_node_for_instruction(nds, ins, true) + +#define find_node_for_last_instruction(nds, ins) \ + _find_node_for_instruction(nds, ins, false) |