diff options
Diffstat (limited to 'src/arch/instruction.h')
-rw-r--r-- | src/arch/instruction.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/arch/instruction.h b/src/arch/instruction.h index bb2dc94..55c845e 100644 --- a/src/arch/instruction.h +++ b/src/arch/instruction.h @@ -147,7 +147,10 @@ size_t _g_arch_instruction_count_operands(const GArchInstruction *); GArchOperand *_g_arch_instruction_get_operand(const GArchInstruction *, size_t); /* Remplace un opérande d'une instruction par un autre. */ -void _g_arch_instruction_replace_operand(GArchInstruction *, GArchOperand *, GArchOperand *); +bool g_arch_instruction_replace_operand(GArchInstruction *, GArchOperand *, GArchOperand *); + +/* Remplace un opérande d'une instruction par un autre. */ +bool _g_arch_instruction_replace_operand(GArchInstruction *, GArchOperand *, GArchOperand *); /* Détache un opérande liée d'une instruction. */ void _g_arch_instruction_detach_operand(GArchInstruction *, GArchOperand *); @@ -171,13 +174,6 @@ void _g_arch_instruction_detach_operand(GArchInstruction *, GArchOperand *); __result; \ }) -#define g_arch_instruction_replace_operand(ins, n, o) \ - ({ \ - g_arch_instruction_lock_operands(ins); \ - _g_arch_instruction_replace_operand(ins, n, o); \ - g_arch_instruction_unlock_operands(ins); \ - }) - #define g_arch_instruction_detach_operand(ins, o) \ ({ \ g_arch_instruction_lock_operands(ins); \ |