diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2010-04-11 16:55:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2010-04-11 16:55:16 (GMT) |
commit | 49468379e912806400c5874f8e359cb934516228 (patch) | |
tree | bf0c8d3b83410e687a3aaebfd622c4e2e29d682a /src/arch/instruction.c | |
parent | 30258fa96ad48eed68924f259ec5464fc4fd8094 (diff) |
Cleaned the code by removing all references to the old GtkTextBuffer usage.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@151 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 58 |
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. * |