summaryrefslogtreecommitdiff
path: root/src/arch/operand-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-05 00:08:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-05 00:08:23 (GMT)
commit0320d85e480882c58f254640a54c6c6e190dbf47 (patch)
treed1683e4c6704cb442ff826266e86406759c6a5a8 /src/arch/operand-int.h
parent94792f74a850cf6bb119c59ac0675591f4ef6c0f (diff)
Compressed the size of operands with no alternative rendering.
Diffstat (limited to 'src/arch/operand-int.h')
-rw-r--r--src/arch/operand-int.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/arch/operand-int.h b/src/arch/operand-int.h
index 6aa15e8..eb1a1d7 100644
--- a/src/arch/operand-int.h
+++ b/src/arch/operand-int.h
@@ -37,16 +37,23 @@ typedef int (* operand_compare_fc) (const GArchOperand * const *, const GArchOpe
typedef void (* operand_print_fc) (const GArchOperand *, GBufferLine *, AsmSyntax);
+/* Adjonction de rendu alternatif */
+typedef struct _alt_rendering
+{
+ RenderingTagType tag; /* Type de rendu */
+ char text[0]; /* Texte alternatif */
+
+} alt_rendering;
+
+
/* Définition générique d'un opérande d'architecture (instance) */
struct _GArchOperand
{
GObject parent; /* A laisser en premier */
- unsigned int shared_count; /* Compteur de partages */
+ alt_rendering *alt_info; /* Autre rendu éventuel */
- char *alt_text; /* Eventuel texte alternatif */
- size_t alt_len; /* Taille de ce texte */
- RenderingTagType alt_tag; /* Type de rendu */
+ unsigned int shared_count; /* Compteur de partages */
};