summaryrefslogtreecommitdiff
path: root/src/analysis/block.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-04-06 11:09:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-04-06 11:09:00 (GMT)
commit944225261e872785366d1df5377f59ea917a2195 (patch)
treefb6d2c12e22f368808bfb92557d647b1e5688a8a /src/analysis/block.c
parente108e192582aa1dbe020dfbc09bee5e6ab2cc534 (diff)
Done some refactoring in order to make the code more GObject-friendly.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@506 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/block.c')
-rw-r--r--src/analysis/block.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/analysis/block.c b/src/analysis/block.c
index 23fbfc5..e906d36 100644
--- a/src/analysis/block.c
+++ b/src/analysis/block.c
@@ -42,14 +42,6 @@ static void g_instr_block_finalize(GInstrBlock *);
-
-
-
-
-
-
-
-
/* Indique le type défini pour un bloc d'instructions. */
G_DEFINE_TYPE(GInstrBlock, g_instr_block, G_TYPE_OBJECT);
@@ -153,7 +145,7 @@ static void g_instr_block_finalize(GInstrBlock *block)
GInstrBlock *g_instr_block_find_by_addr(const GInstrBlock *block, const vmpa2t *addr, bool final)
{
- return block->find_by_addr(block, addr, final);
+ return G_INSTR_BLOCK_GET_CLASS(block)->find_by_addr(block, addr, final);
}
@@ -174,7 +166,7 @@ GInstrBlock *g_instr_block_find_by_addr(const GInstrBlock *block, const vmpa2t *
bool g_instr_block_visit(GInstrBlock *block, instr_block_visitor_cb callback, void *data)
{
- return block->visit_blocks(block, callback, data);
+ return G_INSTR_BLOCK_GET_CLASS(block)->visit_blocks(block, callback, data);
}
@@ -195,7 +187,7 @@ bool g_instr_block_visit(GInstrBlock *block, instr_block_visitor_cb callback, vo
void g_instr_block_list_all_blocks(const GInstrBlock *block, GInstrBlock ***list, size_t *count)
{
- block->list_blocks(block, list, count);
+ G_INSTR_BLOCK_GET_CLASS(block)->list_blocks(block, list, count);
}
@@ -216,7 +208,7 @@ void g_instr_block_list_all_blocks(const GInstrBlock *block, GInstrBlock ***list
void g_instr_block_list_leafs_blocks(const GInstrBlock *block, GInstrBlock ***list, size_t *count)
{
- block->list_leafs(block, list, count);
+ G_INSTR_BLOCK_GET_CLASS(block)->list_leafs(block, list, count);
}