summaryrefslogtreecommitdiff
path: root/tools/d2c/spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/d2c/spec.c')
-rw-r--r--tools/d2c/spec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/d2c/spec.c b/tools/d2c/spec.c
index 867df37..9990881 100644
--- a/tools/d2c/spec.c
+++ b/tools/d2c/spec.c
@@ -266,6 +266,7 @@ bool write_encoding_spec_disass(const encoding_spec *spec, int fd, const char *a
bool result; /* Bilan à retourner */
char *keyword; /* Mot clef appelable en code */
bool exit; /* Inclusion de sortie rapide ?*/
+ const char *new_ins; /* Nouvelle définition de nom */
result = true;
@@ -306,7 +307,9 @@ bool write_encoding_spec_disass(const encoding_spec *spec, int fd, const char *a
/* Création de l'instruction en elle-même */
- dprintf(fd, "\t\tinstr = g_%s_instruction_new(\"%s\");\n", arch, ins);
+ new_ins = get_new_keyword_from_syntax_items(spec->syntax);
+
+ dprintf(fd, "\t\tinstr = g_%s_instruction_new(\"%s\");\n", arch, new_ins != NULL ? new_ins : ins);
dprintf(fd, "\n");