diff options
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 47 |
1 files changed, 4 insertions, 43 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 7391af1..b895af0 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -175,16 +175,18 @@ void g_arch_instruction_append_suffix(GArchInstruction *instr, const char *suffi * * * Description : Ajoute une information complémentaire à une instruction. * * * -* Retour : - * +* Retour : Bilan de l'opération. * * * * Remarques : - * * * ******************************************************************************/ -void g_arch_instruction_set_flag(GArchInstruction *instr, ArchInstrFlag flag) +bool g_arch_instruction_set_flag(GArchInstruction *instr, ArchInstrFlag flag) { instr->flags |= flag; + return true; + } @@ -520,47 +522,6 @@ InstructionLinkType g_arch_instruction_get_link(const GArchInstruction *instr, v /****************************************************************************** * * -* Paramètres : instr = instruction à consulter. * -* status = statut de l'instruction vis à vis du flot. * -* * -* Description : Précise si l'instruction correspond à un retour de fonction. * -* * -* Retour : true (pour respecter le prototypage depuis les fichiers D). * -* * -* Remarques : - * -* * -******************************************************************************/ - -bool g_arch_instruction_define_as_return(GArchInstruction *instr, bool status) -{ - instr->is_return = status; - - return true; - -} - - -/****************************************************************************** -* * -* Paramètres : instr = instruction à consulter. * -* * -* Description : Indique si l'instruction correspond à un retour de fonction. * -* * -* Retour : true si l'instruction est un 'return' quelconque ou false. * -* * -* Remarques : - * -* * -******************************************************************************/ - -bool g_arch_instruction_is_return(const GArchInstruction *instr) -{ - return instr->is_return; - -} - - -/****************************************************************************** -* * * Paramètres : instr = instruction dont les informations sont à consulter. * * dest = ligne visée par la liaison (côté destination). * * type = type de lien à construire. * |