mescc: Support [for] itoa.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Mar 2017 10:05:20 +0000 (11:05 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Mar 2017 10:05:20 +0000 (11:05 +0100)
commit1322d99c22f53a93c7287408b47fa825c02d0de5
tree03c99faf51af11575ee1fe70887af57ef3d5d347
parent3268027e46fb783c7f203435da52d02d2cc100ff
mescc: Support [for] itoa.

* module/mes/libc-i386.mes (i386:accu%base): New function.
* module/mes/libc-i386.scm: Export it.
* module/language/c99/compiler.mes (expr->accu): Use it to support mod.
* doc/examples/t.c (itoa): New function.
  (test): Test it.
* doc/examples/mini-mes.c (itoa)[!__GNUC__]: New function.
module/language/c99/compiler.mes
module/mes/libc-i386.mes
module/mes/libc-i386.scm
scaffold/mini-mes.c
scaffold/t.c