diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-12-16 21:13:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-12-16 21:13:42 (GMT) |
commit | 04dfbc68e7cd5036017f097a67ba5f0288ddace0 (patch) | |
tree | 2cf10137c3c47c1c0877c67b48f7aeb86d9cbfcb /src/format | |
parent | a1c2bc0c3b6f4b4fda9c50beeb09a1f699419e2a (diff) |
Created operands for resolving symbols in disassembly code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@442 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/dex/method.h | 2 | ||||
-rw-r--r-- | src/format/format.c | 6 |
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); + + + } |