summaryrefslogtreecommitdiff
path: root/src/arch/instruction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r--src/arch/instruction.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c
index eb8ec28..14b0038 100644
--- a/src/arch/instruction.c
+++ b/src/arch/instruction.c
@@ -44,9 +44,6 @@ static void g_arch_instruction_add_text(const GArchInstruction *, GRenderingOpti
/* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */
static void g_arch_instruction_to_buffer(const GArchInstruction *, GBufferLine *, GRenderingOptions *);
-/* Ajoute à un texte GTK le contenu d'une instruction. */
-static void g_arch_instruction_add_to_gtk_buffer(const GArchInstruction *, const GExeFormat *, AsmSyntax, GtkTextBuffer *, GtkTextIter *);
-
/* Indique le type défini pour une instruction d'architecture. */
@@ -91,7 +88,6 @@ static void g_arch_instruction_init(GArchInstruction *instr)
parent->add_text = (add_text_fc)g_arch_instruction_add_text;
parent->export_buffer = (export_buffer_fc)g_arch_instruction_to_buffer;
- parent->add_arch_to_gtk_buffer = (add_arch_to_gtk_buffer_fc)g_arch_instruction_add_to_gtk_buffer;
}
@@ -206,60 +202,6 @@ static void g_arch_instruction_to_buffer(const GArchInstruction *instr, GBufferL
/******************************************************************************
* *
-* Paramètres : instr = instruction à transcrire. *
-* format = format du binaire manipulé. *
-* syntax = type de représentation demandée. *
-* buffer = zone de texte à venir compléter. *
-* iter = point d'insertion du nouveau texte. *
-* *
-* Description : Ajoute à un texte GTK le contenu d'une instruction. *
-* *
-* Retour : - *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static void g_arch_instruction_add_to_gtk_buffer(const GArchInstruction *instr, const GExeFormat *format, AsmSyntax syntax, GtkTextBuffer *buffer, GtkTextIter *iter)
-{
- const char *key; /* Mot clef principal */
- size_t klen; /* Taille de ce mot clef */
- size_t i; /* Boucle de parcours */
-
- key = instr->get_text(instr, format, syntax);
- klen = strlen(key);
-
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(instr), buffer, iter,
- key, klen, RTT_INSTRUCTION);
-
- if (instr->operands_count > 0)
- {
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(instr), buffer, iter,
- "\t", 1, RTT_NONE);
-
- g_content_exporter_add_arch_to_gtk_buffer(G_CONTENT_EXPORTER(G_ARCH_INSTRUCTION(instr)->operands[0]),
- format, syntax, buffer, iter);
-
- for (i = 1; i < instr->operands_count; i++)
- {
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(instr), buffer, iter,
- ",", 1, RTT_NONE/* FIXME */);
-
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(instr), buffer, iter,
- " ", 1, RTT_NONE);
-
- g_content_exporter_add_arch_to_gtk_buffer(G_CONTENT_EXPORTER(G_ARCH_INSTRUCTION(instr)->operands[i]),
- format, syntax, buffer, iter);
-
- }
-
- }
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : instr = instruction quelconque à modifier. *
* offset = position physique dans le code binaire. *
* length = taille de l'instruction. *