diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-12-05 22:32:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-12-05 22:32:21 (GMT) |
commit | 0a7b9b66bdcf386a36ec13ec480b52aa17406385 (patch) | |
tree | 95b9cfac29b50aa92eac9cbc9e754c9787f55438 /tools/d2c/conv.c | |
parent | 12154652c576144405011b5bd267c15c9667f223 (diff) |
Defined a new kind of operands for memory accesses.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@436 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'tools/d2c/conv.c')
-rw-r--r-- | tools/d2c/conv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/d2c/conv.c b/tools/d2c/conv.c index 6676edc..e103c93 100644 --- a/tools/d2c/conv.c +++ b/tools/d2c/conv.c @@ -686,7 +686,11 @@ static bool ensure_conv_expr_content_fully_declared(conv_expr_t *expr, int fd, c if (found && func != NULL) { - dprintf(_f, "\t\tuint%u_t val_%s;\n", _wide, name); + if (func->is_expr) + dprintf(_f, "\t\tuint%u_t val_%s;\n", _wide, name); + else + dprintf(_f, "\t\tGArchOperand *val_%s;\n", name); + printf("========= DECLARE for '%s'\n", name); found = declare_conv_func(func, _f, _bts, _lst, _wide); printf("========= END DECLARE for '%s'\n", name); |