mescc: Tinycc support: Structured type with char or short on heap.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 May 2018 12:53:05 +0000 (14:53 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 May 2018 12:53:05 +0000 (14:53 +0200)
commitdef730d74a41bfd86ad0ba1f3ba889028f0da964
treefa63346eec793ba3bbc6d8a84eb34227a55f6c83
parentbbfe7de3da31a64a5a3e414fdc18594f72a6311f
mescc: Tinycc support: Structured type with char or short on heap.

* module/language/c99/compiler.mes (int->bv): New function.
  (init->data): Use it.  Add parameter.  Update callers.
  (array-init->data): Add type parmeter.
  (array-init-element->data): Likewise.
* module/mes/bytevectors.mes (bytevector-u8-set!): New function.
* module/mes/bytevectors.scm (mes): Export it.
* module/mes/as.mes (int->bv8): New function.
build-aux/check-mescc.sh
module/language/c99/compiler.mes
module/mes/as.mes
module/mes/as.scm
module/mes/bytevectors.mes
module/mes/bytevectors.scm
scaffold/tests/4a-char-array.c
scaffold/tests/7s-struct-short.c [new file with mode: 0644]