summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-08-02 22:25:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-08-02 22:25:15 (GMT)
commit8c84aa2e41305fd388b7dac49f29ae17ee0554fb (patch)
tree52830a7d896e2d9272e7c71677c72ce9d62cf26c /src/gui
parent30fc2ba22b469e38bc40e47f517988e418c178f3 (diff)
Introduced symbols dedicated to strings.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/panels/strings.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index 6e9324f..895a1b9 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -39,6 +39,7 @@
#include "../../core/params.h"
#include "../../core/queue.h"
#include "../../format/format.h"
+#include "../../format/strsym.h"
#include "../../format/symiter.h"
#include "../../gtkext/easygtk.h"
#include "../../gtkext/gtkdisplaypanel.h"
@@ -766,7 +767,7 @@ static void reload_strings_for_new_list_view(const GStringsPanel *panel, GtkStat
symbol != NULL;
symbol = get_symbol_iterator_next(siter))
{
- if (g_binary_symbol_get_target_type(symbol) != STP_RO_STRING)
+ if (!G_IS_STR_SYMBOL(symbol))
goto rsfnlv_next;
range = g_binary_symbol_get_range(symbol);
@@ -1378,21 +1379,10 @@ static bool is_string_name_matching(const strings_update_data *data, GtkTreeMode
{
bool result; /* Bilan à retourner */
GBinSymbol *symbol; /* Symbole manipulé */
-#ifndef NDEBUG
- SymbolType type; /* Type associé au symbole */
-#endif
char *label; /* Etiquette à analyser */
gtk_tree_model_get(model, iter, STC_SYMBOL, &symbol, -1);
- assert(symbol != NULL);
-
-#ifndef NDEBUG
-
- type = g_binary_symbol_get_target_type(symbol);
-
- assert(type == STP_RO_STRING);
-
-#endif
+ assert(G_IS_STR_SYMBOL(symbol));
label = g_binary_symbol_get_label(symbol);