summaryrefslogtreecommitdiff
path: root/src/format/dex
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-12-30 10:38:52 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-12-30 10:38:52 (GMT)
commit932ea7c83c07d3982fee605c6dd9895fd2753874 (patch)
tree766ad53bab9e3e3005334c30e823493de8e84168 /src/format/dex
parent1b5d39bfbc48c33a0ea0924b60e48448c8b45dd4 (diff)
Rewritten the line buffers using generators and on-demand building to save memory.
Diffstat (limited to 'src/format/dex')
-rwxr-xr-xsrc/format/dex/dex.c4
-rw-r--r--src/format/dex/pool.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/format/dex/dex.c b/src/format/dex/dex.c
index df920b2..d93346a 100755
--- a/src/format/dex/dex.c
+++ b/src/format/dex/dex.c
@@ -79,7 +79,7 @@ static bool g_dex_format_get_section_range_by_name(const GDexFormat *, const cha
//static void g_dex_format_find_all_sources(GDexFormat *);
/* Procède à la décompilation complète du format. */
-static void g_dex_format_decompile(const GDexFormat *, GCodeBuffer *, const char *);
+static void g_dex_format_decompile(const GDexFormat *, void/*GCodeBuffer*/ *, const char *);
@@ -470,7 +470,7 @@ static void g_dex_format_find_all_sources(GDexFormat *format)
* *
******************************************************************************/
-static void g_dex_format_decompile(const GDexFormat *format, GCodeBuffer *buffer, const char *filename)
+static void g_dex_format_decompile(const GDexFormat *format, void/*GCodeBuffer*/ *buffer, const char *filename)
{
#if 0
diff --git a/src/format/dex/pool.h b/src/format/dex/pool.h
index 38065fa..b819156 100644
--- a/src/format/dex/pool.h
+++ b/src/format/dex/pool.h
@@ -29,6 +29,7 @@
#include "dex.h"
#include "method.h"
#include "../../analysis/routine.h"
+#include "../../glibext/delayed.h"