diff options
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index bb98efb..c11f253 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -30,7 +30,6 @@ #include "instruction-int.h" -#include "sharing/container-int.h" #include "../glibext/linegen-int.h" @@ -51,9 +50,6 @@ static void g_arch_instruction_class_init(GArchInstructionClass *); /* Initialise une instance d'opérande d'architecture. */ static void g_arch_instruction_init(GArchInstruction *); -/* Procède à l'initialisation de l'interface de partage. */ -static void g_arch_instruction_share_interface_init(GShareContainerInterface *); - /* Procède à l'initialisation de l'interface de génération. */ static void g_arch_instruction_generator_interface_init(GLineGeneratorInterface *); @@ -90,7 +86,6 @@ static void g_arch_instruction_print(GArchInstruction *, GBufferLine *, size_t, /* Indique le type défini pour une instruction d'architecture. */ G_DEFINE_TYPE_WITH_CODE(GArchInstruction, g_arch_instruction, G_TYPE_OBJECT, - G_IMPLEMENT_INTERFACE(G_TYPE_SHARE_CONTAINER, g_arch_instruction_share_interface_init) G_IMPLEMENT_INTERFACE(G_TYPE_LINE_GENERATOR, g_arch_instruction_generator_interface_init)); @@ -149,25 +144,6 @@ static void g_arch_instruction_init(GArchInstruction *instr) * * * Paramètres : iface = interface GLib à initialiser. * * * -* Description : Procède à l'initialisation de l'interface de partage. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -static void g_arch_instruction_share_interface_init(GShareContainerInterface *iface) -{ - iface->replace = (replace_shared_fc)g_arch_instruction_replace_operand; - -} - - -/****************************************************************************** -* * -* Paramètres : iface = interface GLib à initialiser. * -* * * Description : Procède à l'initialisation de l'interface de génération. * * * * Retour : - * @@ -215,7 +191,7 @@ static void g_arch_instruction_dispose(GArchInstruction *instr) rem_item_from_flat_array(&instr->operands, 0, sizeof(GArchOperand *)); - g_shared_instance_unref(G_SHARED_INSTANCE(op)); + g_object_unref(G_OBJECT(op)); } @@ -665,7 +641,7 @@ bool _g_arch_instruction_replace_operand(GArchInstruction *instr, GArchOperand * { rpl_item_in_flat_array(instr->operands, i, &new, sizeof(GArchOperand *)); - g_shared_instance_unref(G_SHARED_INSTANCE(old)); + g_object_unref(G_OBJECT(old)); } @@ -706,7 +682,7 @@ void _g_arch_instruction_detach_operand(GArchInstruction *instr, GArchOperand *t rem_item_from_flat_array(&instr->operands, i, sizeof(GArchOperand *)); - g_shared_instance_unref(G_SHARED_INSTANCE(target)); + g_object_unref(G_OBJECT(target)); } |