diff options
Diffstat (limited to 'src/arch/immediate.c')
-rw-r--r-- | src/arch/immediate.c | 70 |
1 files changed, 1 insertions, 69 deletions
diff --git a/src/arch/immediate.c b/src/arch/immediate.c index 72faf4c..e8f0212 100644 --- a/src/arch/immediate.c +++ b/src/arch/immediate.c @@ -90,12 +90,6 @@ static void g_imm_operand_init(GImmOperand *); /* Construit la chaîne de caractères correspondant à l'opérande. */ static size_t g_imm_operand_to_string(const GImmOperand *, AsmSyntax, char [VMPA_MAX_SIZE]); -/* Ajoute du texte simple à un fichier ouvert en écriture. */ -static void g_imm_operand_add_text(const GImmOperand *, GRenderingOptions *, MainRendering, FILE *); - -/* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */ -static void g_imm_operand_to_buffer(const GImmOperand *, GBufferLine *, GRenderingOptions *); - /* Traduit un opérande en version humainement lisible. */ static void g_imm_operand_print(const GImmOperand *, GBufferLine *, AsmSyntax); @@ -138,13 +132,7 @@ static void g_imm_operand_class_init(GImmOperandClass *klass) static void g_imm_operand_init(GImmOperand *operand) { - GContentExporter *parent; /* Instance parente #1 */ - GArchOperand *arch; /* Instance parente #2 */ - - parent = G_CONTENT_EXPORTER(operand); - - parent->add_text = (add_text_fc)g_imm_operand_add_text; - parent->export_buffer = (export_buffer_fc)g_imm_operand_to_buffer; + GArchOperand *arch; /* Instance parente */ arch = G_ARCH_OPERAND(operand); @@ -722,62 +710,6 @@ static size_t g_imm_operand_to_string(const GImmOperand *operand, AsmSyntax synt /****************************************************************************** * * -* Paramètres : operand = opérande à transcrire. * -* options = options de rendu. * -* rendering = support effectif final des lignes de code. * -* stream = flux ouvert en écriture. * -* * -* Description : Ajoute du texte simple à un fichier ouvert en écriture. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -static void g_imm_operand_add_text(const GImmOperand *operand, GRenderingOptions *options, MainRendering rendering, FILE *stream) -{ - char value[VMPA_MAX_SIZE]; /* Chaîne à imprimer */ - size_t len; /* Taille de l'élément inséré */ - - len = g_imm_operand_to_string(operand, g_rendering_options_get_syntax(options), value); - - g_content_exporter_insert_text(G_CONTENT_EXPORTER(operand), stream, value, len, RTT_IMMEDIATE); - -} - - -/****************************************************************************** -* * -* Paramètres : operand = opérande à transcrire. * -* buffer = espace où placer ledit contenu. * -* options = options de rendu. * -* * -* Description : Ajoute à un tampon GLib le contenu de l'instance spécifiée. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -static void g_imm_operand_to_buffer(const GImmOperand *operand, GBufferLine *buffer, GRenderingOptions *options) -{ - AsmSyntax syntax; /* Choix de l'exportation */ - char value[VMPA_MAX_SIZE]; /* Chaîne à imprimer */ - size_t len; /* Taille de l'élément inséré */ - - syntax = (options == NULL ? ASX_COUNT : g_rendering_options_get_syntax(options)); - len = g_imm_operand_to_string(operand, syntax, value); - - g_content_exporter_insert_into_buffer(G_CONTENT_EXPORTER(operand), buffer, BLC_ASSEMBLY, - value, len, RTT_IMMEDIATE); - -} - - -/****************************************************************************** -* * * Paramètres : operand = opérande à traiter. * * line = ligne tampon où imprimer l'opérande donné. * * syntax = type de représentation demandée. * |