diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-08-12 23:32:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-08-12 23:32:21 (GMT) |
commit | 9cfe738c2e9bb49eb2872e92bc4422c548edb517 (patch) | |
tree | ee8dbe5965b9d46394395b8beee87676e098a9f1 /src/analysis/decomp | |
parent | fc49e98dc2b3e0ae08a5874ecacaef046a0f3ec1 (diff) |
Cleaned the code and handled file binaries properly.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@259 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/decomp')
-rw-r--r-- | src/analysis/decomp/decompiler.c | 10 | ||||
-rw-r--r-- | src/analysis/decomp/decompiler.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/analysis/decomp/decompiler.c b/src/analysis/decomp/decompiler.c index 42dc1ff..8e574c0 100644 --- a/src/analysis/decomp/decompiler.c +++ b/src/analysis/decomp/decompiler.c @@ -42,7 +42,7 @@ static void build_decomp_prologue(GCodeBuffer *, const char *); /* S'assure de la transcription de routines en expressions. */ -static void prepare_all_routines_for_decomp(const GOpenidaBinary *, const char *); +static void prepare_all_routines_for_decomp(const GLoadedBinary *, const char *); @@ -127,7 +127,7 @@ static void build_decomp_prologue(GCodeBuffer *buffer, const char *filename) * * ******************************************************************************/ -static void prepare_all_routines_for_decomp(const GOpenidaBinary *binary, const char *filename) +static void prepare_all_routines_for_decomp(const GLoadedBinary *binary, const char *filename) { GExeFormat *format; /* Format du binaire fourni */ GArchProcessor *proc; /* Architecture du binaire */ @@ -140,7 +140,7 @@ static void prepare_all_routines_for_decomp(const GOpenidaBinary *binary, const GDecContext *context; /* Contexte pour la décompil. */ GDecInstruction *instr; - format = g_openida_binary_get_format(binary); + format = g_loaded_binary_get_format(binary); proc = get_arch_processor_from_format(G_EXE_FORMAT(format)); @@ -179,7 +179,7 @@ static void prepare_all_routines_for_decomp(const GOpenidaBinary *binary, const * * ******************************************************************************/ -GCodeBuffer *decompile_all_from_file(const GOpenidaBinary *binary, const char *filename) +GCodeBuffer *decompile_all_from_file(const GLoadedBinary *binary, const char *filename) { GCodeBuffer *result; /* Tampon constitué à renvoyer */ GExeFormat *format; /* Format du binaire fourni */ @@ -195,7 +195,7 @@ GCodeBuffer *decompile_all_from_file(const GOpenidaBinary *binary, const char *f - format = g_openida_binary_get_format(binary); + format = g_loaded_binary_get_format(binary); g_binary_format_decompile(G_BIN_FORMAT(format), result, filename); return result; diff --git a/src/analysis/decomp/decompiler.h b/src/analysis/decomp/decompiler.h index 363ad27..5233b74 100644 --- a/src/analysis/decomp/decompiler.h +++ b/src/analysis/decomp/decompiler.h @@ -30,7 +30,7 @@ /* Procède à la décompilation des routines d'un fichier donné. */ -GCodeBuffer *decompile_all_from_file(const GOpenidaBinary *, const char *); +GCodeBuffer *decompile_all_from_file(const GLoadedBinary *, const char *); |