diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-02-24 11:09:36 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-02-24 11:09:36 (GMT) |
commit | 02c2cf555953f335a825e34c869c9999668fd42c (patch) | |
tree | 59395c04d509f9fae8314d311f6ab90e163df45d /src/decomp/expr/block.c | |
parent | 34e1a14aced520ba06ee1b81cfd7710e97c1643f (diff) |
Refined comparisons decompilation and fixed some bugs.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@340 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/decomp/expr/block.c')
-rw-r--r-- | src/decomp/expr/block.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/decomp/expr/block.c b/src/decomp/expr/block.c index 7c2387a..6b811f6 100644 --- a/src/decomp/expr/block.c +++ b/src/decomp/expr/block.c @@ -333,6 +333,33 @@ void g_expr_block_add_item(GExprBlock *block, GDecInstruction *item) /****************************************************************************** * * +* Paramètres : block = ensemble à consulter. * +* index = indice de l'instruction décompilée recherchée. * +* * +* Description : Fournit une instruction décompilée donnée du conteneur. * +* * +* Retour : Instruction décompilée, ou NULL si l'indice n'est pas valide.* +* * +* Remarques : - * +* * +******************************************************************************/ + +GDecInstruction *g_expr_block_get_item(const GExprBlock *block, size_t index) +{ + GDecInstruction *result; /* Elément à retourner */ + + result = NULL; + + if (index < block->count) + result = block->list[index]; + + return result; + +} + + +/****************************************************************************** +* * * Paramètres : block = ensemble à faire évoluer. * * item = nouvel élément à retirer de l'ensemble. * * * |