diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2010-03-28 16:37:00 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2010-03-28 16:37:00 (GMT) | 
| commit | d5e55f2ad015781bd7bee0e3216e47d6218e0841 (patch) | |
| tree | fe23d48509be3b4acb88b980539c271d699523e4 /src/analysis | |
| parent | 8123d9342f92a2cf6fd999b350252c001f403092 (diff) | |
Made the g_rendering_options_new() function simple.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@145 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis')
| -rw-r--r-- | src/analysis/binary.c | 2 | ||||
| -rw-r--r-- | src/analysis/roptions.c | 5 | ||||
| -rw-r--r-- | src/analysis/roptions.h | 2 | 
3 files changed, 4 insertions, 5 deletions
| diff --git a/src/analysis/binary.c b/src/analysis/binary.c index 2b392bd..66cc26d 100644 --- a/src/analysis/binary.c +++ b/src/analysis/binary.c @@ -738,7 +738,7 @@ GOpenidaBinary *g_openida_binary_new_from_file(const char *filename)      result->proc = get_arch_processor_from_format(result->format); -    result->options = g_rendering_options_new(result->format, result->proc); +    result->options = g_rendering_options_new(result->format);      g_rendering_options_show_address(result->options, MRD_BLOCK, true);      g_rendering_options_show_code(result->options, MRD_BLOCK, true); diff --git a/src/analysis/roptions.c b/src/analysis/roptions.c index 6aa4262..be7e1e9 100644 --- a/src/analysis/roptions.c +++ b/src/analysis/roptions.c @@ -97,7 +97,6 @@ static void g_rendering_options_init(GRenderingOptions *options)  /******************************************************************************  *                                                                             *  *  Paramètres  : format = format du contenu binaire.                          * -*                proc   = architecture utilisée par le binaire.               *  *                                                                             *  *  Description : Crée un un groupe d'options pour le rendu des lignes.        *  *                                                                             * @@ -107,14 +106,14 @@ static void g_rendering_options_init(GRenderingOptions *options)  *                                                                             *  ******************************************************************************/ -GRenderingOptions *g_rendering_options_new(GExeFormat *format, GArchProcessor *proc) +GRenderingOptions *g_rendering_options_new(GExeFormat *format)  {      GRenderingOptions *result;              /* Structure à retourner       */      result = g_object_new(G_TYPE_RENDERING_OPTIONS, NULL);      result->format = format; -    result->proc = proc; +    result->proc = get_arch_processor_from_format(format);      return result; diff --git a/src/analysis/roptions.h b/src/analysis/roptions.h index d2fbe0b..392d740 100644 --- a/src/analysis/roptions.h +++ b/src/analysis/roptions.h @@ -75,7 +75,7 @@ typedef struct _GRenderingOptionsClass GRenderingOptionsClass;  GType g_rendering_options_get_type(void);  /* Crée un un groupe d'options pour le rendu des lignes. */ -GRenderingOptions *g_rendering_options_new(GExeFormat *, GArchProcessor *); +GRenderingOptions *g_rendering_options_new(GExeFormat *);  /* Fournit le format du contenu binaire représenté. */  GExeFormat *g_rendering_options_get_format(const GRenderingOptions *); | 
