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/cond.h | |
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/cond.h')
-rw-r--r-- | src/decomp/expr/cond.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/decomp/expr/cond.h b/src/decomp/expr/cond.h index b6fd073..a4d1ee7 100644 --- a/src/decomp/expr/cond.h +++ b/src/decomp/expr/cond.h @@ -2,7 +2,7 @@ /* OpenIDA - Outil d'analyse de fichiers binaires * cond.h - prototypes pour la représentation des conditions * - * Copyright (C) 2010 Cyrille Bagard + * Copyright (C) 2010-2013 Cyrille Bagard * * This file is part of OpenIDA. * @@ -29,7 +29,7 @@ #include "../expression.h" -#include "../instruction.h" +#include "../output.h" @@ -53,7 +53,19 @@ typedef struct _GCondExpressionClass GCondExpressionClass; GType g_cond_expression_get_type(void); /* Exprime une condition binaire quelconque. */ -GDecInstruction *g_cond_expression_new(GDecExpression *, CompSignType, GDecExpression *); +GDecExpression *g_cond_expression_new(GDecExpression *); + +/* Fournit l'opération logique entre les comparaisons. */ +CondOperatorType g_cond_expression_get_operator(const GCondExpression *); + +/* Fournit l'expression d'une condition. */ +GDecExpression *g_cond_expression_get_expression(const GCondExpression *); + +/* Définit l'expression d'une condition. */ +void g_cond_expression_set_expression(GCondExpression *, GDecExpression *); + +/* Etend l'expression d'une condition. */ +void g_cond_expression_add_condition(GCondExpression *, GCondExpression *, CondOperatorType); |