summaryrefslogtreecommitdiff
path: root/src/arch/mips
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-11-05 19:45:08 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-11-05 19:45:08 (GMT)
commitc35d5d4ce62b812ec0aa4a5ebbacb84cd0901d53 (patch)
treeca0262ce4f0a24bdfbc1b9a4ffa1bbb202d47820 /src/arch/mips
parentf5df6496fa50927d3d274c939a888afde652b7ad (diff)
Removed the old interface for rendering lines.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@278 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/mips')
-rw-r--r--src/arch/mips/operand.c34
1 files changed, 9 insertions, 25 deletions
diff --git a/src/arch/mips/operand.c b/src/arch/mips/operand.c
index c470e74..a976543 100644
--- a/src/arch/mips/operand.c
+++ b/src/arch/mips/operand.c
@@ -88,9 +88,6 @@ static void g_mips_register_operand_class_init(GMipsRegisterOperandClass *);
/* Initialise une instance d'opérande de registre MIPS. */
static void g_mips_register_operand_init(GMipsRegisterOperand *);
-/* Traduit un opérande en version humainement lisible. */
-static char *g_mips_register_operand_get_text(const GMipsRegisterOperand *, const GExeFormat *, AsmSyntax);
-
/* -------------------------- OPERANDES DE CONTENU MEMOIRE -------------------------- */
@@ -121,9 +118,6 @@ static void g_mips_mem_content_operand_class_init(GMipsMemContentOperandClass *)
/* Initialise une instance d'opérande MIPS de contenu mémoire. */
static void g_mips_mem_content_operand_init(GMipsMemContentOperand *);
-/* Traduit un opérande en version humainement lisible. */
-static char *g_mips_mem_content_operand_get_text(const GMipsMemContentOperand *, const GExeFormat *, AsmSyntax);
-
/* ----------------------------- OPERANDES DE DECALLAGE ----------------------------- */
@@ -153,9 +147,6 @@ static void g_mips_offset_operand_class_init(GMipsOffsetOperandClass *);
/* Initialise une instance d'opérande MIPS de décallage. */
static void g_mips_offset_operand_init(GMipsOffsetOperand *);
-/* Traduit un opérande en version humainement lisible. */
-static char *g_mips_offset_operand_get_text(const GMipsOffsetOperand *, const GExeFormat *, AsmSyntax);
-
/* ---------------------------------------------------------------------------------- */
@@ -245,11 +236,6 @@ static void g_mips_register_operand_class_init(GMipsRegisterOperandClass *klass)
static void g_mips_register_operand_init(GMipsRegisterOperand *operand)
{
- GArchOperand *parent; /* Instance parente */
-
- parent = G_ARCH_OPERAND(operand);
-
- parent->get_text = (get_operand_text_fc)g_mips_register_operand_get_text;
}
@@ -287,6 +273,7 @@ GArchOperand *g_mips_register_operand_new(bin_t index)
}
+#if 0
/******************************************************************************
* *
* Paramètres : operand = opérande à traiter. *
@@ -310,6 +297,7 @@ static char *g_mips_register_operand_get_text(const GMipsRegisterOperand *operan
return result;
}
+#endif
/******************************************************************************
@@ -373,11 +361,6 @@ static void g_mips_mem_content_operand_class_init(GMipsMemContentOperandClass *k
static void g_mips_mem_content_operand_init(GMipsMemContentOperand *operand)
{
- GArchOperand *parent; /* Instance parente */
-
- parent = G_ARCH_OPERAND(operand);
-
- parent->get_text = (get_operand_text_fc)g_mips_mem_content_operand_get_text;
}
@@ -417,6 +400,7 @@ GArchOperand *g_mips_mem_content_operand_new(bin_t index, int16_t offset)
}
+#if 0
/******************************************************************************
* *
* Paramètres : operand = opérande à traiter. *
@@ -443,15 +427,18 @@ static char *g_mips_mem_content_operand_get_text(const GMipsMemContentOperand *o
if (g_imm_operand_is_negative(operand->offset)) result = stradd(result, "-");
else result = stradd(result, "+");
+ /* FIXME !
tmp = g_arch_operand_get_text(G_ARCH_OPERAND(operand->offset), format, syntax);
result = stradd(result, tmp);
free(tmp);
+ */
result = stradd(result, "]");
return result;
}
+#endif
@@ -496,11 +483,6 @@ static void g_mips_offset_operand_class_init(GMipsOffsetOperandClass *klass)
static void g_mips_offset_operand_init(GMipsOffsetOperand *operand)
{
- GArchOperand *parent; /* Instance parente */
-
- parent = G_ARCH_OPERAND(operand);
-
- parent->get_text = (get_operand_text_fc)g_mips_offset_operand_get_text;
}
@@ -530,6 +512,7 @@ GArchOperand *g_mips_offset_operand_new(int16_t offset)
}
+#if 0
/******************************************************************************
* *
* Paramètres : operand = opérande à traiter. *
@@ -546,9 +529,10 @@ GArchOperand *g_mips_offset_operand_new(int16_t offset)
static char *g_mips_offset_operand_get_text(const GMipsOffsetOperand *operand, const GExeFormat *format, AsmSyntax syntax)
{
- return g_arch_operand_get_text(G_ARCH_OPERAND(operand->offset), format, syntax);
+ return strdup("");/* FIXME g_arch_operand_get_text(G_ARCH_OPERAND(operand->offset), format, syntax); */
}
+#endif