mescc: Basic printf support.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 2 May 2017 15:00:07 +0000 (17:00 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 2 May 2017 15:00:07 +0000 (17:00 +0200)
commit4e0042cae603a05bda8312adfa6007c53f7e2f65
treea1dec2ad7cd3be2d610a39c6cd46a75d793891a7
parentb811cc0c506002850c69584bece6772b148db474
mescc: Basic printf support.

* module/mes/libc-i386.mes (i386:va-arg): New function.
* module/mes/libc-i386.scm (mes): Export it.
* module/mes/libc.mes (printf): New function.
  (libc): Add it.
* libc/include/stdio.h: New file.
* module/language/c99/compiler.mes (c99-input->ast): Add libc/include
  to include path.
  (ast-info): Handle (skip) ellipsis in function declaration.
libc/include/stdio.h [new file with mode: 0644]
libc/mlibc.c
module/language/c99/compiler.mes
module/mes/libc-i386.mes
module/mes/libc-i386.scm
module/mes/libc.mes