mescc: Enhance [int/pointer] array support.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 5 May 2017 07:24:19 +0000 (09:24 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 5 May 2017 07:24:19 +0000 (09:24 +0200)
commitf5372bdeff67d8f56aec29e98e26793d9cd26540
tree480189ea338819dc53e612172624f1ebdd5f35d9
parent03211ee91df4505e5fbf61378d51686929bed4dc
mescc: Enhance [int/pointer] array support.

* module/language/c99/compiler.mes (p-expr->type): Handle array-ref
  with any index.
  (ast->info): Support plain array declerations.
  (expr->accu): For size == 4, assume value in accu.  Fixes int/pointer arrays.
* scaffold/t.c: Test it.
module/language/c99/compiler.mes
scaffold/t.c