summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
Diffstat (limited to 'src/format')
-rw-r--r--src/format/dex/method.h2
-rw-r--r--src/format/format.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/format/dex/method.h b/src/format/dex/method.h
index e4e483b..472e42d 100644
--- a/src/format/dex/method.h
+++ b/src/format/dex/method.h
@@ -32,6 +32,8 @@
#include "dex_def.h"
+#include "../part.h"
+
#define G_TYPE_DEX_METHOD (g_dex_method_get_type())
#define G_DEX_METHOD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_DEX_METHOD, GDexMethod))
diff --git a/src/format/format.c b/src/format/format.c
index ff62b80..cb43a94 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -198,6 +198,12 @@ void g_binary_format_add_symbol(GBinFormat *format, GBinSymbol *symbol)
format->symbols[format->symbols_count - 1] = symbol;
+
+ qsort(format->symbols, format->symbols_count,
+ sizeof(GBinSymbol *), (__compar_fn_t)g_binary_symbol_cmp);
+
+
+
}