mescc: Tinycc support: Export nested struct definitions.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 May 2018 18:49:56 +0000 (20:49 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 May 2018 18:49:56 +0000 (20:49 +0200)
commit03ba0e18df1d32fe39a33b1842fef50656fe4363
tree1ad383f21c630d4971ba139a095c070487ea1060
parentb4d1c40aa8d7e025426cfc28d1c74e5d16830614
mescc: Tinycc support: Export nested struct definitions.

* module/language/c99/compiler.mes (struct-field): Support nested,
  named and anonymous enums.
  (field->info): New function.
  (type->info): Use it to reap nestedly defined enums, structs, unions.
  (decl->info): Likewise.
* scaffold/tests/t.c: Test it.
module/language/c99/compiler.mes
scaffold/tests/t.c