summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-28 22:25:26 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-28 22:25:26 (GMT)
commit2700e6892a0c0d78baf7228040aa07a1e21c6f53 (patch)
treec8c74971b53ec4333c7c7eef2b6e102a33f57fe5 /src/arch
parent614b0d9febfffc8c8ee6c554d5132b9ecd9bff78 (diff)
Adapted the API for renamed operands.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/operands/rename-int.h2
-rw-r--r--src/arch/operands/rename.c4
-rw-r--r--src/arch/operands/rename.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/operands/rename-int.h b/src/arch/operands/rename-int.h
index 28653b9..d0551d0 100644
--- a/src/arch/operands/rename-int.h
+++ b/src/arch/operands/rename-int.h
@@ -33,7 +33,7 @@
/* Obtient l'adresse de la cible visée par un opérande. */
-typedef const char * (* get_renamed_text_fc) (const GRenamedOperand *);
+typedef char * (* get_renamed_text_fc) (const GRenamedOperand *);
/* Opérande renommé avec un texte alternatif (interface) */
diff --git a/src/arch/operands/rename.c b/src/arch/operands/rename.c
index e865b63..f87c566 100644
--- a/src/arch/operands/rename.c
+++ b/src/arch/operands/rename.c
@@ -83,9 +83,9 @@ static void g_renamed_operand_default_init(GRenamedOperandInterface *iface)
* *
******************************************************************************/
-const char *g_renamed_operand_get_text(const GRenamedOperand *operand)
+char *g_renamed_operand_get_text(const GRenamedOperand *operand)
{
- const char *result; /* Texte à retourner */
+ char *result; /* Texte à retourner */
GRenamedOperandIface *iface; /* Interface utilisée */
iface = G_RENAMED_OPERAND_GET_IFACE(operand);
diff --git a/src/arch/operands/rename.h b/src/arch/operands/rename.h
index a6b99d7..31314ca 100644
--- a/src/arch/operands/rename.h
+++ b/src/arch/operands/rename.h
@@ -51,7 +51,7 @@ typedef struct _GRenamedOperandIface GRenamedOperandIface;
GType g_renamed_operand_get_type(void) G_GNUC_CONST;
/* Fournit un texte comme représentation alternative d'opérande. */
-const char *g_renamed_operand_get_text(const GRenamedOperand *);
+char *g_renamed_operand_get_text(const GRenamedOperand *);