summaryrefslogtreecommitdiff
path: root/src/analysis/line_comment.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-04-11 16:55:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-04-11 16:55:16 (GMT)
commit49468379e912806400c5874f8e359cb934516228 (patch)
treebf0c8d3b83410e687a3aaebfd622c4e2e29d682a /src/analysis/line_comment.c
parent30258fa96ad48eed68924f259ec5464fc4fd8094 (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/analysis/line_comment.c')
-rw-r--r--src/analysis/line_comment.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/analysis/line_comment.c b/src/analysis/line_comment.c
index 8af1777..5bdf29a 100644
--- a/src/analysis/line_comment.c
+++ b/src/analysis/line_comment.c
@@ -60,9 +60,6 @@ static void g_comment_line_init(GCommentLine *);
/* Ajoute du texte simple à un fichier ouvert en écriture. */
static void g_comment_line_add_text(GCommentLine *, GRenderingOptions *, MainRendering, FILE *);
-/* Ajoute à un texte GTK le contenu de la ligne de commentaires. */
-static void g_comment_line_add_to_gtk_buffer(GCommentLine *, MainRendering, GtkTextBuffer *, GtkTextIter *, size_t [SAR_COUNT]);
-
/* Indique le type définit par la GLib pour la ligne. */
@@ -108,7 +105,6 @@ static void g_comment_line_init(GCommentLine *line)
exporter_parent = G_CONTENT_EXPORTER(line);
exporter_parent->add_text = (add_text_fc)g_comment_line_add_text;
- exporter_parent->add_to_gtk_buffer = (add_to_gtk_buffer_fc)g_comment_line_add_to_gtk_buffer;
line_parent = G_RENDERING_LINE(line);
@@ -177,68 +173,6 @@ static void g_comment_line_add_text(GCommentLine *line, GRenderingOptions *optio
/******************************************************************************
* *
-* Paramètres : line = ligne de représentation à actualiser. *
-* rendering = support effectif final des lignes de code. *
-* buffer = zone de texte à venir compléter. *
-* iter = point d'insertion du nouveau texte. *
-* lengths = taille des différentes composantes de la ligne. *
-* *
-* Description : Ajoute à un texte GTK le contenu de la ligne de commentaires.*
-* *
-* Retour : - *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static void g_comment_line_add_to_gtk_buffer(GCommentLine *line, MainRendering rendering, GtkTextBuffer *buffer, GtkTextIter *iter, size_t lengths[SAR_COUNT])
-{
- bool show_address; /* Affichage de l'adresse ? */
- bool show_code; /* Affichage du code brut ? */
- MemoryDataSize msize; /* Taille du bus d'adresses */
- char address[VMPA_MAX_SIZE]; /* Adresse au format texte */
- size_t len; /* Taille de l'élément inséré */
-
- show_address = g_rendering_options_has_to_show_address(line->options, rendering);
- show_code = g_rendering_options_has_to_show_code(line->options, rendering);
-
- /* Eventuelle adresse virtuelle ou physique */
-
- if (show_address)
- {
- msize = g_arch_processor_get_memory_size(g_rendering_options_get_processor(line->options));
-
- len = vmpa_to_string(G_RENDERING_LINE(line)->offset, msize, address);
-
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(line), buffer, iter,
- address, len, RTT_NONE);
-
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(line), buffer, iter,
- "\t", 1, RTT_NONE);
-
- }
-
- /* Eventuel code brut (sauté) */
-
- if (show_code)
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(line), buffer, iter,
- "\t", 1, RTT_NONE);
-
- /* Commentaire proprement dit */
-
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(line), buffer, iter,
- "; ", 2, RTT_COMMENT);
-
- len = strlen(line->comment);
-
- g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(line), buffer, iter,
- line->comment, len, RTT_COMMENT);
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : offset = emplacement physique ou en mémoire. *
* comment = texte à afficher au final. *
* options = paramétrage du rendu. *