mescc: Tinycc support: support foo.bar[baz], foo->bar[baz] for struct bar.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 1 Aug 2017 09:26:00 +0000 (11:26 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 1 Aug 2017 09:26:00 +0000 (11:26 +0200)
commit0b60a588090d1d645f1110236af34d4b202eaea9
tree100b981ba321d99de95d65673bc502d0e2a97186
parentc23a9ee01ff578b2dd7a0218e943e4a4bc0aa7ff
mescc: Tinycc support: support foo.bar[baz], foo->bar[baz] for struct bar.

* module/language/c99/compiler.mes (struct-field): Use negative
  pointer for struct array fields.
  (expr->accu): support: support foo.bar[baz], foo->bar[baz] for struct bar.
* scaffold/tests/7c-dynarray.c: Test it.
make.scm
module/language/c99/compiler.mes
scaffold/tests/7c-dynarray.c [new file with mode: 0644]