mescc: Tinycc support: fixes for foo->bar[baz].
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 5 Aug 2017 17:10:00 +0000 (19:10 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 5 Aug 2017 17:10:00 +0000 (19:10 +0200)
commit95f107282d63e9c1253a6f14f06b2b2e2c62d566
tree5b3e0aa41b915787f6c68d190595ea65f94782e2
parent31c69b8b0044a82ee3750739968f3a8a8a652cb1
mescc: Tinycc support: fixes for foo->bar[baz].

* module/language/c99/compiler.mes (expr->accu, expr->accu*): fixes
  for foo->bar[baz].
  (expr->pointer): Support i-sel.
  (p-expr->type): Support add, sub, de-ref, ref-to.
* scaffold/tests/7f-struct-pointer-arithmetic.c: Test it.
* make.scm (add-scaffold-test): Build it.
make.scm
module/language/c99/compiler.mes
scaffold/tests/7f-struct-pointer-arithmetic.c [new file with mode: 0644]