diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-30 10:38:52 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-30 10:38:52 (GMT) |
commit | 932ea7c83c07d3982fee605c6dd9895fd2753874 (patch) | |
tree | 766ad53bab9e3e3005334c30e823493de8e84168 /src/gui/dialogs | |
parent | 1b5d39bfbc48c33a0ea0924b60e48448c8b45dd4 (diff) |
Rewritten the line buffers using generators and on-demand building to save memory.
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/export.c | 11 | ||||
-rw-r--r-- | src/gui/dialogs/gotox.c | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/gui/dialogs/export.c b/src/gui/dialogs/export.c index c16e7d8..b39a5c1 100644 --- a/src/gui/dialogs/export.c +++ b/src/gui/dialogs/export.c @@ -49,7 +49,7 @@ static void export_assistant_cancel(GtkAssistant *, gpointer); static void export_assistant_close(GtkAssistant *, GObject *); /* Réalise l'exportation d'un contenu binaire comme demandé. */ -static void do_binary_export(GCodeBuffer *, const vmpa2t *, const vmpa2t *, buffer_export_context *, BufferExportType, const bool *); +static void do_binary_export(void/*GCodeBuffer*/ *, const vmpa2t *, const vmpa2t *, buffer_export_context *, BufferExportType, const bool *); @@ -181,6 +181,8 @@ static void export_assistant_cancel(GtkAssistant *assistant, gpointer data) static void export_assistant_close(GtkAssistant *assistant, GObject *ref) { +#if 0 + GtkComboBox *combo; /* Selection du format */ BufferExportType type; /* Type d'exportation requise */ buffer_export_context ctx; /* Contexte à constituer */ @@ -283,7 +285,7 @@ static void export_assistant_close(GtkAssistant *assistant, GObject *ref) support = G_OBJECT(g_object_get_data(G_OBJECT(assistant), "html_options")); if (support != NULL) g_object_unref(support); - +#endif gtk_widget_destroy(GTK_WIDGET(assistant)); } @@ -306,8 +308,9 @@ static void export_assistant_close(GtkAssistant *assistant, GObject *ref) * * ******************************************************************************/ -static void do_binary_export(GCodeBuffer *buffer, const vmpa2t *start, const vmpa2t *end, buffer_export_context *ctx, BufferExportType type, const bool *display) +static void do_binary_export(void/*GCodeBuffer*/ *buffer, const vmpa2t *start, const vmpa2t *end, buffer_export_context *ctx, BufferExportType type, const bool *display) { +#if 0 typedef struct _export_data { buffer_export_context *ctx; /* Contexte d'exportation */ @@ -373,7 +376,7 @@ static void do_binary_export(GCodeBuffer *buffer, const vmpa2t *start, const vmp default: break; } - +#endif } diff --git a/src/gui/dialogs/gotox.c b/src/gui/dialogs/gotox.c index 872cd4f..abd9377 100644 --- a/src/gui/dialogs/gotox.c +++ b/src/gui/dialogs/gotox.c @@ -342,6 +342,7 @@ GtkWidget *create_gotox_dialog_for_cross_references(GtkWindow *parent, GLoadedBi static void add_new_location_to_list(GtkTreeStore *store, GLoadedBinary *binary, const vmpa2t *addr, GBinSymbol *hint) { +#if 0 GCodeBuffer *buffer; /* Tampon de désassemblage */ GBufferLine *line; /* Ligne présente à l'adresse */ char *virtual; /* Transcription d'adresse */ @@ -465,7 +466,7 @@ static void add_new_location_to_list(GtkTreeStore *store, GLoadedBinary *binary, if (line != NULL) g_object_unref(G_OBJECT(line)); - +#endif } |