mescc: Handle && in if and while.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 8 Jan 2017 16:51:40 +0000 (17:51 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 8 Jan 2017 16:51:40 +0000 (17:51 +0100)
commitb98a2dda6ed6fddb379f975d59f86ae9db5d5cee
treef77b5e36f5fd97ef74e11db554f4b9fb28b627c9
parent7667fb95c05030f6d8fb4aa2a678f3de0a1a93fd
mescc: Handle && in if and while.

* scaffold/t.c (test): Add strcmp tests.
* module/language/c99/compiler.mes (expr->arg):
  (test->jump->info): New function.
  (ast->info): Use it.
* module/mes/libc-i386.mes (i386:global->accu):
  (i386:base-mem->accu): Rename from i386:mem->accu.
  (i386:byte-base-mem->accu): Rename from i386:base-mem->accu.
  (i386:accu-not, i386:global->accu, i386:xor-accu): New functions.
* module/mes/libc-i386.scm: Export them.
doc/examples/main.c
module/language/c99/compiler.mes
module/mes/libc-i386.mes
module/mes/libc-i386.scm
scaffold/micro-mes.c
scaffold/t.c