diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2014-12-02 21:51:13 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2014-12-02 21:51:13 (GMT) | 
| commit | c72f4d81bff9d6b8fa2317823a86742cb59e0544 (patch) | |
| tree | dfa7dd5578eb5c347a6930c6578a5c7f27d2b2d5 /tools/d2c/spec.c | |
| parent | 5b5b36dc862a3c7bcfa3e0db74efcf2806988706 (diff) | |
Extended the compiler by allowing more than one type of Thumb.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@431 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'tools/d2c/spec.c')
| -rw-r--r-- | tools/d2c/spec.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/d2c/spec.c b/tools/d2c/spec.c index a957587..675fd05 100644 --- a/tools/d2c/spec.c +++ b/tools/d2c/spec.c @@ -53,6 +53,7 @@  struct _encoding_spec  {      char *prefix;                           /* Distinction principale      */ +    char *lprefix;                          /* Distinction en minuscules   */      unsigned int index;                     /* Distinction secondaire      */      coding_bits *bits;                      /* Encodage des bits associƩs  */ @@ -138,6 +139,7 @@ void delete_encoding_spec(encoding_spec *spec)  void define_encoding_spec_code_name(encoding_spec *spec, char *prefix, unsigned int index)  {      spec->prefix = prefix; +    spec->lprefix = make_string_lower(strdup(prefix));      spec->index = index;  } @@ -269,7 +271,7 @@ bool write_encoding_spec_disass(const encoding_spec *spec, int fd, const char *a      keyword = make_callable(ins, false);      dprintf(fd, "\tGArchInstruction *%s_decode_%s%s_%s%u(uint%u_t _raw)\n", -            arch, keyword, details, spec->prefix, spec->index, wide); +            arch, keyword, details, spec->lprefix, spec->index, wide);      dprintf(fd, "\t{\n"); @@ -338,7 +340,7 @@ bool write_encoding_spec_disass(const encoding_spec *spec, int fd, const char *a      dprintf(fd, "\tif (result == NULL)\n");      dprintf(fd, "\t\tresult = %s_decode_%s%s_%s%u(raw);\n", -            arch, keyword, details, spec->prefix, spec->index); +            arch, keyword, details, spec->lprefix, spec->index);      dprintf(fd, "\n");  | 
